Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- set_time_limit();
- ob_start();
- /*
- Name : Google Scanner v3
- Author : Shor7cut
- Link : http://facebook.com/bug7sec
- Comment : GO TO HELL script kiddies
- {
- Live Coding :
- Author : Shor7cut
- View : Wisnu404
- }
- \----
- IndoXploit , Tuban Cyber Team , Defacer Tersakiti Team
- ----/
- */
- function google_scan($dork,$page)
- {
- $kunAPI = "AIzaSyDPvzsGK3sdWUq8nHFzmYxu3mxrByjH2L8";
- $dork = urlencode($dork);
- $ch = curl_init();
- curl_setopt($ch,CURLOPT_URL,"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&hl=iw&rsz=8&q={$dork}&key=$kunAPI&start={$page}");
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
- $output=curl_exec($ch);
- curl_close($ch);
- $output = json_decode($output,true);
- if($output){
- return $output;
- }else{
- return false;
- }
- }
- if(isset($argv['1'])){
- $data = google_scan(urlencode($argv['1']),"0");
- if($data){
- foreach ($data['responseData']['cursor']['pages'] as $key => $data_page) {
- $data = google_scan(urlencode($argv['1']),$data_page['start']);
- foreach ($data['responseData']['results'] as $key => $load_data) {
- /* anti double result */
- if($_SESSION[$load_data['unescapedUrl']]){
- }else{
- $_SESSION[$load_data['unescapedUrl']]="1";
- echo $load_data['unescapedUrl']."\r\n";
- }
- /*-------------------*/
- }
- }
- }else{
- echo "google caph\r\n";
- }
- }else{
- echo "php ".$argv[0]." {dork}\r\n";
- }
- ?>
Add Comment
Please, Sign In to add comment