Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- [PHP] Google SQLi Scanner
- Dorker & Scanner SQLi
- coder: Dr.1n73ct10n
- */
- error_reporting(0);
- set_time_limit(0);
- echo"
- (_) _ _ _________ ___________
- | | | | | | /--------- ___________
- | | | | | | || coder by : | |
- | | | |------| | || Dr.1n73ct10n | |
- | | | |------| | ||________ | |
- |_| |_| |_| \--------- |_|
- \n";
- echo "Usage : php ".$_SERVER["PHP_SELF"]." dork untilpage\n\n";
- $b = "https://www.google.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";
- }
- }}
- ?>
Add Comment
Please, Sign In to add comment