Bing SQL Scanner 10-21-2015, 10:24 AM
#1
PHP Code:
Code:
<?php
/*
[PHP] BingSql Scanner
Dorker & Scanner SQLi
Coder: inj3ctor_m4
*/
error_reporting(0);
set_time_limit(0);
echo"
____ ____ ___
/\ _`\ __ /\ _`\ /\_ \
\ \ \L\ \ /\_\ ___ __\ \,\L\_\ __ \//\ \
\ \ _ <'\/\ \ /' _ `\ /'_ `\/_\__ \ /'__`\ \ \ \
\ \ \L\ \\ \ \/\ \/\ \/\ \L\ \/\ \L\ \/\ \L\ \ \_\ \_
\ \____/ \ \_\ \_\ \_\ \____ \ `\____\ \___, \/\____\
\/___/ \/_/\/_/\/_/\/___L\ \/_____/\/___/\ \/____/
/\____/ \ \_\
\_/__/ \/_/
\n";
echo "Usage : php ".$_SERVER["PHP_SELF"]." dork untilpage\n\n";
$b = "http://www.bing.com/search?q=";
$i = urlencode($argv[1]);
$n = "&first=";
$g = 1;
$id = $argv[2]*10-9;
while($g <= $id){
$gt = file_get_contents($b.$i.$n.$g);
preg_match_all('(<div class="sb_tlst">.*<h3>.*<a href="(.*)".*>.*</a>.*</h3>.*</div>)siU',$gt,$get);
$g=$g+10;
foreach($get[1] as $go){
$ctx = stream_context_create(array('http' => array('timeout' => 4)));
$ft = file_get_contents($go,false,$ctx);
if (preg_match("/error in your SQL syntax|mysql_fetch_array()|execute query|mysql_fetch_object()|mysql_num_rows()|mysql_fetch_assoc()|mysql_fetch_row()|SELECT * FROM|supplied argument is not a valid MySQL|Microsoft OLE DB Provider for ODBC Drivers error|Syntax error|Fatal error/i",$ft)) {
echo urldecode($go)." >> Infected\n";
}
else{
echo urldecode("$go")."\n";
}
}}
?>

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)














![[Image: F4Z9Dqw.png]](https://i.imgur.com/F4Z9Dqw.png)










![[Image: 7ajmN5P.jpg]](https://i.imgur.com/7ajmN5P.jpg)
