Return to Snippet

Revision: 47352
at June 6, 2011 09:22 by hayaletkral


Initial Code
<style type="text/css">
<!--
body,td,th {
	color: #000000;
}
body {
	background-color: #CCCCCC;
}
a:link {
	color: #FFFFFF;
	text-decoration: none;
}
a:visited {
	color: #FFFFFF;
	text-decoration: none;
}
a:hover {
	color: #FFFFFF;
	text-decoration: none;
}
a:active {
	color: #FFFFFF;
	text-decoration: none;
}
.style1 {color: #00FF00}
.style2 {color: #000000}
-->
</style>
<title>Sql Açik Tarayici // hayaletkral</title>
<?php
/*
hayaletkral // Cyber-Warrior
*/

@ini_set('error_reporting',E_ALL & ~E_NOTICE);
@error_reporting(E_ALL & ~E_NOTICE);

function Anasayfa(){
echo "<center>
<form action=\"index.php?Git=Sonuc\" method=\"POST\">
<table width=\"30%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
  <tr>
    <td colspan=\"3\"><div align=\"center\"><strong>Sql A&ccedil;&#305;k Taray&#305;c&#305; </strong></div></td>
    </tr>
  <tr>
    <td><strong>Sald&#305;r&#305;lacak Siteler </strong></td>
    <td><strong>:</strong></td>
    <td><strong>acik.txt <a href=\"acik.txt\">(Bak)</a> <a href=\"index.php?Git=Duzenle\">(D&uuml;zenle) </a></strong></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><input type=\"submit\" value=\"Sql Tara\"></td>
  </tr>
  <tr>
    <td colspan=\"3\"><div align=\"right\"><strong>hayaletkral // Cyber-Warrior</strong></div></td>
    </tr>
</table>
</form>
</center>";
}

function Sonuc(){

$kod 	= "'";
echo "<center><strong>A&#351;a&#287;&#305;daki Sitelerde Sql A&ccedil;&#305;&#287;&#305; Vard&#305;r... </strong></center><br>";

$dosya = "acik.txt";
$dosyaac = fopen($dosya, "r");
	while(! feof($dosyaac)){

		$yaz 		 = fgets($dosyaac, 1024);
		$tamadres	 = $yaz.$kod;
		$html 		 = file_get_contents($tamadres);

			if(strpos($html,"SQL")){
			echo "<strong>$tamadres</strong><br>";
			}

	}

fclose($dosyaac);
}

function Duzenle(){
echo "<form action=\"index.php?Git=Onay\" method=\"post\">
<center><table width=\"30%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
  <tr>
    <td width=\"18%\" valign=\"top\"><strong>A&ccedil;&#305;klar</strong></td>
    <td width=\"1%\" valign=\"top\"><strong>:</strong></td>
    <td width=\"81%\"><textarea rows=\"6\" name=\"acik\" cols=\"155\"></textarea></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align=\"right\"><input type=\"submit\" value=\"Güncelle\"></td>
  </tr>
</table>
</center>
</form>";
}



function Onay(){
$acik = $_POST["acik"];
$dosya = "acik.txt";
$baglan = fopen($dosya, 'w') or die ("Dosya Açilamiyor...");
fwrite($baglan, $acik);
fclose($baglan);
echo "<strong><br><br><center>Açik Listeniz Yüklendi...</center></strong>";
header("Refresh: 2; url=index.php");

}


	$Git = $_GET["Git"];
	
	Switch("$Git"){
	default;
     Anasayfa();
	break;
	
	case "Sonuc";
	 Sonuc();
	break;
	
	case "Duzenle";
	Duzenle();
	break;
	
	case "Onay";
	Onay();
	break;
	
    }
?>
<center><img src="http://img2.blogcu.com/images/c/w/t/cwteox/tim_logos.gif"/></center>

Initial URL


Initial Description


Initial Title
Php Sql Scanner

Initial Tags


Initial Language
PHP