andripzf

Scan Vuln WHMCS 5.2.7 + Curl

Apr 12th, 2014
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.29 KB | None | 0 0
  1. <head><title>./Scan 5.2.7</title></head>
  2. <form method=POST><center><br />
  3. <h3>LIST WEBHOSTING WHMCS </h3>
  4. <textarea rows="15" cols="50" name="listwebtarget"/></textarea><br/><br/>
  5. <input type=submit name=marimulai value=" Start Scan "></form></center>
  6. <?php
  7. @session_start();
  8. @set_time_limit(0);
  9. @error_reporting(0);
  10. @ini_set('memory_limit', '64M');
  11. @ini_set('max_execution_time',0);
  12. if(isset($_POST['marimulai'])) {
  13. if($_POST['listwebtarget'] == "") {
  14. echo '<script type="text/javascript">
  15. var x=window.confirm("List Website Belum Di Isi, Apakah Anda Ingin Coba Lagi  ? ")
  16. if (x)window.alert(" Terima Kasih, Anda Memang Ganteng :P")
  17. else
  18. window.alert(" Terima Kasih, Anda Dafuq Sekali :P ")
  19. </script>';
  20. break;
  21. }
  22. echo "<br /><br />";
  23. $urltarget = explode("\n",$_POST['listwebtarget']);
  24. foreach($urltarget as $urlvictim) {
  25. $urlsite = trim($urlvictim);
  26. $urlvictimm = dirname($urlsite) . '/login.php';
  27. $urlvictimmm= str_replace("/admin","",$urlvictimm);
  28. $urlvictimclear1 = ereg_replace("(https?)://", "", $urlvictimmm);
  29. $urlvictimclear2 = ereg_replace("www.", "", $urlvictimclear1);
  30. $urltargetvictim = "http://".$urlvictimclear2;
  31. $mycurl = curl_init();
  32. curl_setopt($mycurl, CURLOPT_URL, $urltargetvictim);
  33. curl_setopt($mycurl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
  34. curl_setopt($mycurl, CURLOPT_FOLLOWLOCATION, true);
  35. curl_setopt($mycurl, CURLOPT_SSL_VERIFYPEER, false);
  36. curl_setopt($mycurl, CURLOPT_RETURNTRANSFER, true);
  37. $hasil = curl_exec($mycurl);
  38. if(eregi('name="token" value="', $hasil)) {
  39. $site = ereg_replace("(https?)://","", $urltargetvictim);
  40. $siteclear = ereg_replace("login.php", "register.php",$site);
  41. $websitevictim ="http://".$siteclear;
  42. echo "<nobr>[~] VICTIM : <a href='$websitevictim' style='text-decoration: none'>{$websitevictim}</a></nobr><br/>
  43. <nobr>[~] STATUS : <font color=green>Try 5.2.7 SQL Injection</font></nobr><br /><br />";
  44. } else {
  45. echo "<nobr>[~] VICTIM : $urlvictim</nobr><br/>
  46. <nobr>[~] STATUS : <font color=red>Not Vulnerable 5.2.7 Injection</font></nobr><br /><br />";
  47. }
  48. flush();
  49. flush();
  50. }
  51. }
  52. ?>
  53. <br/><br/><center><h3>Coded By <a href="http://www.facebook.com/PeZeEf">Andripzf</a><br /><a href="http://www.facebook.com/groups/D.MASTERPIECE">D'MASTERPIECE [DM]</a></h3></center>
Advertisement
Add Comment
Please, Sign In to add comment