mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-23 20:43:03 +00:00
Create Input as a Service.md
This commit is contained in:
parent
5ee3da1975
commit
f97fb35352
1 changed files with 27 additions and 0 deletions
27
HTB Cyber Apocalypse/Input as a Service.md
Normal file
27
HTB Cyber Apocalypse/Input as a Service.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
## Input as a Service
|
||||
|
||||
<img src="https://imgur.com/iowzjOV.png"/>
|
||||
|
||||
On connecting with the port it shows a python2 shell , giving it an input it shows an error
|
||||
|
||||
<img src="https://imgur.com/xVGZbfx.png"/>
|
||||
|
||||
But if we supply a string it won't break
|
||||
|
||||
<img src="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
|
||||
|
||||
<img src="https://imgur.com/UwduQcf.png"/>
|
||||
|
||||
<img src="https://imgur.com/uoNabgx.png"/>
|
||||
|
||||
And we'll get the flag
|
||||
|
||||
<img src="https://imgur.com/ecNQSGg.png"/>
|
||||
|
||||
We can also look at the source
|
||||
|
||||
<img src="https://imgur.com/CgXIak7.png"/>
|
||||
|
||||
With this we solved the challenge !!
|
Loading…
Reference in a new issue