Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center><font style="font-size:40px">Local domain path scanner</font><br /><br />
- <form action="" method="post">
- Path to scan:<input name="path" value="/assets/uploadify/old/"><br />
- <input type="submit">
- </form>
- <?php
- error_reporting(0);
- set_time_limit(0);
- ini_set('max_execution_time', 0);
- $path = $_POST["path"];
- if($path != null)
- {
- $domi = implode(file("/etc/named.conf"));
- if(!$domi)
- {
- die("web ni xleh bca list domain");
- }
- preg_match_all("#named/(.*?).db#",$domi ,$anu);
- $phcc = array_unique($anu[1]);
- echo "Loading";
- foreach($phcc as $phc)
- {
- //detektor page
- $cj = curl_init("http://".$phc."/".$path);
- curl_setopt($cj, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($cj, CURLOPT_TIMEOUT, 5);
- $res = curl_exec($cj);
- if($res === false)
- {
- echo "<br /><a href='http://".$phc."/".$path."'>".$phc."/".$path."</a>:[<font style='color:grey;'>xde bro]</font><br />Loading";
- }
- else
- {
- $che = strripos($res, "403");
- $che2 = strripos($res, "404");
- $che3 = strripos($res, "method not allowed");
- $che4 = strripos($res, "Webmaster please contact");
- $che5 = strripos($res, "Not found");
- $che6 = strripos($res, "Account Suspended");
- if($che or $che2 or $che3 or $che4 or $che5 or $che6 > 1)
- {
- $cr = curl_init();
- curl_setopt($cr, CURLOPT_URL, "http://".$phc."/".$path);
- curl_setopt($cr, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($cr, CURLOPT_TIMEOUT, 5);
- $respons = curl_exec($cr);
- $errno = curl_errno($cr);
- $error = curl_error($cr);
- $response = $response;
- $info = curl_getinfo($cr);
- $chek = $info['http_code'];
- curl_close($cr);
- if($chek < 400)
- {
- echo "<br /><a href='http://".$phc."/".$path."'>".$phc."/".$path."</a>:[<font style='color:red;'>mungkin ada]</font><br />Loading";
- }
- else
- {
- echo ".";
- }
- //end detektor page
- }
- }
- }
- }
- ?>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement