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 '
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- </head>
- <style>
- body
- {
- background-color:black;
- }
- .fon
- {
- color:green;
- }
- .tes
- {
- border-size:3px;
- border-color:green;
- color:green;
- background-color:black;
- width:100%;
- }
- .tj
- {
- color:white;
- font-size:20px;
- }
- .topright{
- position: absolute;
- right: 0;
- width: 50%;
- height: 120px;
- }
- .topleft{
- position: absolute;
- left: 0px;
- width: 40%;
- height: 120px;
- }
- .bo{
- position: relative;
- width: 100%;
- height :120px;
- border: 3px solid green;
- }
- .to{
- position: relative;
- width: 100%;
- height :500%;
- border: 3px solid green;
- }
- .btn
- {
- background-color:green;
- color:black;
- border-width:2px;
- border-color:green;
- width:100%;
- }
- .re
- {
- color:red;
- font-size:20px;
- font-style:italic;
- }
- </style>
- <body>
- <font class="tj">
- Hejes Directory Scanner </font>
- <br /><br /><br />
- <div class="bo">
- <form action="" method="post">
- <div class="full">
- <div class="topleft">
- <font class="fon">wordlist source:
- <br />
- custom error word:
- <br />
- Target Url:
- <br />
- file scan
- (.php, .asp, .html):
- <br />
- <button class="btn" type="submit">SCAN</button>
- </font>
- </div>
- <div class="topright">
- <input class="tes" name="wl" value="wordlist.txt" />
- <br />
- <input class="tes" name="myer" value="404" />
- <br />
- <input class="tes" name="urljom" value="http://">
- <br />
- <input class="tes" name="ext" value="">
- </div>
- </form>
- </div>
- </div>
- ';
- $wlist = $_POST["wl"];
- $urljom = $_POST["urljom"];
- $myerr = $_POST["myer"];
- $ext = $_POST["ext"];
- function cekeror($taz, $tuz, $word)
- {
- $ti = strripos($taz, "not be found");
- $ta = strripos($taz, "not exist");
- $te = strripos($taz, "not found");
- $tazz = strripos($taz, "404");
- $tazz1 = strripos($taz, "error");
- $tazz2 = strripos($taz, $tuz);
- if($ti === false && $ta === false && $te === false && $tazz === false && $tazz1 === false && $tazz2 === false)
- {
- return "<font class='fon'>found:<font class='re'>/".$word.$ext."</font></font><br />";
- }
- }
- if($urljom != null)
- {
- $comx = file_get_contents($wlist);
- $arrayjom = preg_split('/(\r?\n)+/', $comx);
- echo "<div class='to'>";
- echo "<font class='fon'>import dictionary: ".$wlist."</font><br />";
- if($ext != null)
- {
- echo "<font class='fon'>file scan : ".$ext."</font><br />";
- }
- else
- {
- echo "<font class='fon'>directory scan :</font><br />";
- }
- echo "<font class='fon'>scanning..</font><font class='re'>".$urljom."</font><br />";
- $x = 0;
- foreach($arrayjom as $allcom)
- {
- $tazjom = curl_init($urljom."/".$allcom.$ext);
- curl_setopt($tazjom, CURLOPT_RETURNTRANSFER, true);
- curl_setopt ($tazjom, CURLOPT_CONNECTTIMEOUT, 6);
- curl_setopt($tazjom, CURLOPT_TIMEOUT, 6);
- curl_setopt($tazjom, CURLOPT_FOLLOWLOCATION, true);
- $tobjom = curl_exec($tazjom);
- curl_close($tazjom);
- if($tobjom === false)
- {
- echo "<font class='fon'>Error...</font><br />";
- }
- else
- {
- $x = $x + 1;
- echo cekeror($tobjom, $myerr, $allcom);
- if($x > 100)
- {
- echo "<font class='fon'>scanning.....100+ word</font><br />";
- $x = 0;
- }
- }
- }
- }
- echo "</div>";
- ?>
Add Comment
Please, Sign In to add comment