Php Sql Scanner


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. <!--
  3. body,td,th {
  4. color: #000000;
  5. }
  6. body {
  7. background-color: #CCCCCC;
  8. }
  9. a:link {
  10. color: #FFFFFF;
  11. text-decoration: none;
  12. }
  13. a:visited {
  14. color: #FFFFFF;
  15. text-decoration: none;
  16. }
  17. a:hover {
  18. color: #FFFFFF;
  19. text-decoration: none;
  20. }
  21. a:active {
  22. color: #FFFFFF;
  23. text-decoration: none;
  24. }
  25. .style1 {color: #00FF00}
  26. .style2 {color: #000000}
  27. -->
  28. </style>
  29. <title>Sql Açik Tarayici // hayaletkral</title>
  30. <?php
  31. /*
  32. hayaletkral // Cyber-Warrior
  33. */
  34.  
  35. @ini_set('error_reporting',E_ALL & ~E_NOTICE);
  36. @error_reporting(E_ALL & ~E_NOTICE);
  37.  
  38. function Anasayfa(){
  39. echo "<center>
  40. <form action=\"index.php?Git=Sonuc\" method=\"POST\">
  41. <table width=\"30%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
  42. <tr>
  43. <td colspan=\"3\"><div align=\"center\"><strong>Sql A&ccedil;&#305;k Taray&#305;c&#305; </strong></div></td>
  44. </tr>
  45. <tr>
  46. <td><strong>Sald&#305;r&#305;lacak Siteler </strong></td>
  47. <td><strong>:</strong></td>
  48. <td><strong>acik.txt <a href=\"acik.txt\">(Bak)</a> <a href=\"index.php?Git=Duzenle\">(D&uuml;zenle) </a></strong></td>
  49. </tr>
  50. <tr>
  51. <td>&nbsp;</td>
  52. <td>&nbsp;</td>
  53. <td><input type=\"submit\" value=\"Sql Tara\"></td>
  54. </tr>
  55. <tr>
  56. <td colspan=\"3\"><div align=\"right\"><strong>hayaletkral // Cyber-Warrior</strong></div></td>
  57. </tr>
  58. </table>
  59. </form>
  60. </center>";
  61. }
  62.  
  63. function Sonuc(){
  64.  
  65. $kod = "'";
  66. echo "<center><strong>A&#351;a&#287;&#305;daki Sitelerde Sql A&ccedil;&#305;&#287;&#305; Vard&#305;r... </strong></center><br>";
  67.  
  68. $dosya = "acik.txt";
  69. $dosyaac = fopen($dosya, "r");
  70. while(! feof($dosyaac)){
  71.  
  72. $yaz = fgets($dosyaac, 1024);
  73. $tamadres = $yaz.$kod;
  74. $html = file_get_contents($tamadres);
  75.  
  76. if(strpos($html,"SQL")){
  77. echo "<strong>$tamadres</strong><br>";
  78. }
  79.  
  80. }
  81.  
  82. fclose($dosyaac);
  83. }
  84.  
  85. function Duzenle(){
  86. echo "<form action=\"index.php?Git=Onay\" method=\"post\">
  87. <center><table width=\"30%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
  88. <tr>
  89. <td width=\"18%\" valign=\"top\"><strong>A&ccedil;&#305;klar</strong></td>
  90. <td width=\"1%\" valign=\"top\"><strong>:</strong></td>
  91. <td width=\"81%\"><textarea rows=\"6\" name=\"acik\" cols=\"155\"></textarea></td>
  92. </tr>
  93. <tr>
  94. <td>&nbsp;</td>
  95. <td>&nbsp;</td>
  96. <td align=\"right\"><input type=\"submit\" value=\"Güncelle\"></td>
  97. </tr>
  98. </table>
  99. </center>
  100. </form>";
  101. }
  102.  
  103.  
  104.  
  105. function Onay(){
  106. $acik = $_POST["acik"];
  107. $dosya = "acik.txt";
  108. $baglan = fopen($dosya, 'w') or die ("Dosya Açilamiyor...");
  109. fwrite($baglan, $acik);
  110. fclose($baglan);
  111. echo "<strong><br><br><center>Açik Listeniz Yüklendi...</center></strong>";
  112. header("Refresh: 2; url=index.php");
  113.  
  114. }
  115.  
  116.  
  117. $Git = $_GET["Git"];
  118.  
  119. Switch("$Git"){
  120. default;
  121. Anasayfa();
  122. break;
  123.  
  124. case "Sonuc";
  125. Sonuc();
  126. break;
  127.  
  128. case "Duzenle";
  129. Duzenle();
  130. break;
  131.  
  132. case "Onay";
  133. Onay();
  134. break;
  135.  
  136. }
  137. ?>
  138. <center><img src="http://img2.blogcu.com/images/c/w/t/cwteox/tim_logos.gif"/></center>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.