Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //browse https websites in an old System 7 browser
- <html>
- <body>
- <br>
- <br>
- <center>
- <form method="post" action="">
- <input type="text" name="murl">
- <input type="submit" value="GO">
- </form>
- </center>
- </body>
- </html>
- <?php
- $setVar = 0;
- function download_website()
- {
- $url = ''.$_POST["murl"];
- $outputfile = "dl.html";
- shell_exec('rm -rf '.$outputfile.'');
- $cmd = "wget \"$url\" -O $outputfile";
- echo "<center>========= Your Website Loaded Here ==========</center>";
- shell_exec($cmd);
- echo file_get_contents($outputfile);
- echo '<base href="'.$url.'" />' .file_get_contents($outputfile);
- $url = '';
- $outputfile = '';
- }
- if(isset($_POST['murl']))
- {
- download_website( );
- unset($_POST['murl']);
- $_POST = array();
- }
- else
- {
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement