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 if (!extension_loaded('curl')){ die("Sistemin almas iin sunucunuzda cURL ykl olma..
Decoded Output download
<?php
if (!extension_loaded('curl')){
die("Sistemin almas iin sunucunuzda cURL ykl olmaldr.");
}
function get_custom_date($timezone = "UTC", $format = "d.m.Y, H:i:s") {
$dt = new DateTime("now", new DateTimeZone($timezone));
$dt->setTimestamp(time());
return $dt->format($format);
unset($timezone, $format, $dt);
}
$sistem_timezone = "Europe/Istanbul";
function curlCall($strURL)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $strURL);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$rsData = curl_exec($ch);
curl_close($ch);
return $rsData;
}
$domain = ltrim($_SERVER["HTTP_HOST"],"www.");
$json = json_decode(curlCall('https://aktifsunucum.com.tr/yonetim/api/checker.php?domain=' . $domain . '&ip=' . $_SERVER["REMOTE_ADDR"] . ''));
if (!file_exists(__DIR__ . "/lisans.lis"))
touch(__DIR__ . "/lisans.lis");
$scriptFolder = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://';
$scriptFolder .= $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']);
$gecerli_yerel_hash = curlCall($scriptFolder . "/lisans.lis");
$hash_guvenlik_anahtari = "757831928281420180d09c491a8bc79b";
$yerel_hash = wordwrap(strtoupper(sha1(get_custom_date($sistem_timezone, "Ymd") . $hash_guvenlik_anahtari)), 8, "-", true);
unset($hash_guvenlik_anahtari);
if ($gecerli_yerel_hash !== $yerel_hash) {
//KONTROL
if ($json->lisans == "error") {
if ($json->trial == "false") {
die(curlCall('https://aktifsunucum.com.tr/yonetim/api/hata/lisanssiz-kullanim.html'));
}
} else {
if ($json->ban) {
die(curlCall('https://aktifsunucum.com.tr/yonetim/api/hata/yasakli.html'));
} else {
if ($json->bitis != "UL") {
if ($json->bitis == "BAD") {
die(curlCall('https://aktifsunucum.com.tr/yonetim/api/hata/sure-doldu.html'));
}
}
}
}
}
unset($json);
$lisans_aktiflik_durumu = true;
if ($lisans_aktiflik_durumu === true) {
file_put_contents(__DIR__ . "/lisans.lis", $yerel_hash);
}
unset($lisans_aktiflik_durumu);
unset($yerel_hash);
unset($hash_guvenlik_anahtari);
unset($gecerli_yerel_hash);
?>
Did this file decode correctly?
Original Code
<?php
if (!extension_loaded('curl')){
die("Sistemin almas iin sunucunuzda cURL ykl olmaldr.");
}
function get_custom_date($timezone = "UTC", $format = "d.m.Y, H:i:s") {
$dt = new DateTime("now", new DateTimeZone($timezone));
$dt->setTimestamp(time());
return $dt->format($format);
unset($timezone, $format, $dt);
}
$sistem_timezone = "Europe/Istanbul";
function curlCall($strURL)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $strURL);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$rsData = curl_exec($ch);
curl_close($ch);
return $rsData;
}
$domain = ltrim($_SERVER["HTTP_HOST"],"www.");
$json = json_decode(curlCall('https://aktifsunucum.com.tr/yonetim/api/checker.php?domain=' . $domain . '&ip=' . $_SERVER["REMOTE_ADDR"] . ''));
if (!file_exists(__DIR__ . "/lisans.lis"))
touch(__DIR__ . "/lisans.lis");
$scriptFolder = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://';
$scriptFolder .= $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']);
$gecerli_yerel_hash = curlCall($scriptFolder . "/lisans.lis");
$hash_guvenlik_anahtari = "757831928281420180d09c491a8bc79b";
$yerel_hash = wordwrap(strtoupper(sha1(get_custom_date($sistem_timezone, "Ymd") . $hash_guvenlik_anahtari)), 8, "-", true);
unset($hash_guvenlik_anahtari);
if ($gecerli_yerel_hash !== $yerel_hash) {
//KONTROL
if ($json->lisans == "error") {
if ($json->trial == "false") {
die(curlCall('https://aktifsunucum.com.tr/yonetim/api/hata/lisanssiz-kullanim.html'));
}
} else {
if ($json->ban) {
die(curlCall('https://aktifsunucum.com.tr/yonetim/api/hata/yasakli.html'));
} else {
if ($json->bitis != "UL") {
if ($json->bitis == "BAD") {
die(curlCall('https://aktifsunucum.com.tr/yonetim/api/hata/sure-doldu.html'));
}
}
}
}
}
unset($json);
$lisans_aktiflik_durumu = true;
if ($lisans_aktiflik_durumu === true) {
file_put_contents(__DIR__ . "/lisans.lis", $yerel_hash);
}
unset($lisans_aktiflik_durumu);
unset($yerel_hash);
unset($hash_guvenlik_anahtari);
unset($gecerli_yerel_hash);
?>
Function Calls
ltrim | 1 |
extension_loaded | 1 |
Stats
MD5 | 9251a20fef614c835debbd0f5fd22e21 |
Eval Count | 0 |
Decode Time | 70 ms |