facebook facebook twitter rss

PHP Script Find Any Path You Want

Author: s0w , Published: 23-03-2015

[+] Author: s0w


[+] Pastebin Source: http://pastebin.com/e5MwcxVG

# You must create a file Txt any name, paths.txt.

# Use: php finder.php http://www.target.com paths.txt


[Tools]...


<?php
@set_time_limit(0);
@
error_reporting(0);
echo 
'
\*=================================*/
  # Finder Paths Script
  # Coded  By s0w
  # FB.com/s0w.egy  
  # [+] Results Save in /panel.txt [+]
  # [+] Egyptian Shell Team [+]
\*=================================*/
'
;

function 
save($site,$path2){
        
$s0w fopen("panel.txt","a+");
        
fwrite($s0w,"[+] $site/$path2\n");
        
fclose($s0w);
          }

if(
$argc 3) {
     print 
"\nUsage   : php $argv[0] <site to scan> <list.txt>\n";
     print 
"\nExample : php $argv[0] http://www.target.com paths.txt\n";
     die();
}


if(!
file_exists($argv[2])) {
   die(
"\n[-] Couldn't find ".$argv[2]."..\n");
}

list(
$site$list) = array($argv[1], file($argv[2]));

foreach(
$list as $path) {

    
$ch curl_init();
    
curl_setopt($chCURLOPT_RETURNTRANSFER1);
    
curl_setopt($chCURLOPT_HEADER1);
    
curl_setopt($chCURLOPT_URL$site."/".$path);
    
$result curl_exec($ch);
    
curl_close($ch);

    if (
preg_match("/200 OK|401 Unauthorized|500|301|302|403/i"$result)){
        echo 
"\n[+] Done ! Found The Panel $site/$path\n";
                echo 
"! Paths Seved on panel.txt ~ enjoy ";
        
save($site,$path);
    }
    else {
        echo 
"[-] Nothing found on $site/$path";
    }
}
?>

Like us on Facebook :