Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- *************************************
- Direct0ry Brut3r by cyb3r h4ck3r This is just for learning purposes
- Use at your own risk.
- *************************************
- -->
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>~Direct0ry Brut3r @cyb3r h4ck3r</title>
- <style>
- body { color:#FFF; font-size:14px;}
- .first{ margin-top:50px; text-align:center }
- .sec{color:#F00; text-align:center; font-size:22px;}
- .f1{margin-top:4px;}
- .custom{border:1px solid #999; width:32%; height:25px;margin:30px 0 0 429px;color:#F00; text-align:center;padding-top:4px;}
- .brute{ color:#3F6; margin-left:20px; margin-top:5px; text-decoration:none;}
- .error{ color:#F00; margin-left:20px; margin-top:5px;}
- .msg{ color:#F00; margin:20px 0px 10px 20px; }
- .if{ color:#FFF;}
- .out{ border:1px solid #999; width:52%; margin:30px 0 0 325px;}
- .out:hover{ border:1px solid #3FF; width:52%; margin:30px 0 0 325px;}
- .end{ margin-bottom:10px;}
- .tree{ margin-top:5px;}
- .sel{width:205px; margin-top:5px;}
- .com{color:#C60; margin:20px 0px 10px 20px;}
- </style>
- </head>
- <body bgcolor="#000000">
- <div class="sec"> ~ Directory Brut3R ~ </div>
- <div class="first">
- <form action="" method="Post">
- Your URL : <input type="text" name="url" value="" size="31" /><br /> Your wordList :
- <input class="f1" type="file" name="list" /><br/>
- Select status : <select class='sel' name="stat" size="1" >
- <option value="open">Open Directories</option>
- <option value="all">Get All Directory Stats</option>
- </select> <br/>
- <input class="f1" type="submit" value="_Brute_ " name="submit" /> <input type="reset" value="Reset" />
- </form>
- </div>
- </body>
- </html>
- <?php
- $url = $_POST["url"];
- $list = $_POST["list"];
- $stat= $_POST['stat'];
- $url = $url."/";
- set_time_limit(0);
- error_reporting(0);
- if ($url&&$list)
- {
- if(!preg_match("/^[a-zA-Z]+[:\/\/]+[A-Za-z0-9\-_]+\\.+[A-Za-z0-9\.\/%&=\?\-_]+$/i",$url))
- {
- echo "<div class='custom'>You must supply a valid URL.</div>";
- exit;
- }
- if(!is_file($list))
- {
- echo "<div class='custom'>[-] 00ps ! $list not valid .. :( </div>";
- exit;
- }
- else
- {
- $list = file($list);
- ?>
- <div class="out">
- <?php
- echo "<div class='msg'> <font color='#00CCFF'>⇒ </font> BruteF0rce started . . . . . . . . .</div>";
- foreach($list as $dir)
- {
- $dir=str_replace("\r","",$dir);
- $dir=str_replace("\n","",$dir);
- $dir=str_replace(" ","",$dir);
- if($stat=='all')
- {
- $headers = get_headers("$url$dir/",1);
- echo "<div class='brute'>$url$dir/ <font color='#FFFFFF'>⇒ $headers[0]</font></div>";
- }
- else
- {
- $headers = get_headers("$url$dir/",1);
- if (eregi('200', $headers[0]))
- {
- echo "<div class='tree'><a class ='brute' href='$url$dir'>[+] $url$dir/</a> ⇒W00T FOUND!! <font color='#00FF00'>√</font></div>";
- }
- }
- }
- echo "<div class='com'> <font color='#00CCFF'>[</font> BruteF0rce Completed.<font color='#00CCFF'>]</font> </div>";
- ?>
- <div class='end'></div>
- </div>
- <?php
- }}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement