mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2025-02-16 20:18:24 +00:00
738 B
738 B
Input as a Service
![](https://imgur.com/iowzjOV.png)
On connecting with the port it shows a python2 shell , giving it an input it shows an error
![](https://imgur.com/xVGZbfx.png)
But if we supply a string it won't break
![](https://imgur.com/k7EVczX.png)
On googling around to import a python module I found a techique to import a module using ___import___
as the input is accepting only string so this will be accepting as string
![](https://imgur.com/UwduQcf.png)
![](https://imgur.com/uoNabgx.png)
And we'll get the flag
![](https://imgur.com/ecNQSGg.png)
We can also look at the source
![](https://imgur.com/CgXIak7.png)
With this we solved the challenge !!