Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('max_execution_time', '0');
- set_time_limit(0);
- echo '<h>Directory Scanner</h><br /><form action="" method="post">
- <font class="os">Url:</font><br /><input name="urljom" class="ibtn" value="http://targetsite.com">
- <button type="submit" class="rbtn">SCAN</button>
- </form>';
- $urljom = $_POST["urljom"];
- if($urljom != null)
- {
- $comx = file_get_contents("wordlist.txt");
- $arrayjom = preg_split('/(\r?\n)+/', $comx);
- echo "scanning";
- foreach($arrayjom as $allcom)
- {
- $tazjom = curl_init($urljom."/".$allcom);
- curl_setopt($tazjom, CURLOPT_RETURNTRANSFER, true);
- $tobjom = curl_exec($tazjom);
- curl_close($tazjom);
- if($tobjom === false)
- {
- die("xbole");
- }
- else
- {
- $ti = strripos($tobjom, "not be found");
- $ta = strripos($tobjom, "not exist");
- $te = strripos($tobjom, "not found");
- $tazz = strripos($tobjom, "404");
- if($ti === false & $ta === false & $te === false & $tazz === false)
- {
- echo "<br /><font class='os'>found:<font color='red'>".$allcom."</font></font><br />";
- }
- else
- {
- echo ".";
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement