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 system("clear"); error_reporting(0); // Code Warna const b = "\033[1;34m";..

Decoded Output download

<?php 
 
system("clear"); 
 
error_reporting(0); 
 
// Code Warna 
const b = "[1;34m"; 
const c = "[1;36m"; 
const d = "[0m"; 
const h = "[1;32m"; 
const k = "[1;33m"; 
const m = "[1;31m"; 
const n = "
"; 
const p = "[1;37m"; 
const u = "[1;35m"; 
const bg = "[44m";  // Blue background 
const bg_end = "[49m";  // Reset background 
 
$l = str_repeat(p . "", 40) . k; 
$m = str_repeat(p . "", 85) . p . n; 
$v = str_repeat(p . "_", 85) . p . n; 
 
function low($arr){ 
    $char = str_split($arr); 
    foreach($char as $animated){ 
        echo $animated; 
        usleep(22000); 
    } 
} 
 
function low1($arr){ 
    $char = str_split($arr); 
    foreach($char as $animated){ 
        echo $animated; 
        usleep(10000); 
    } 
} 
 
function fast($arr){ 
    $char = str_split($arr); 
    foreach($char as $animated){ 
        echo $animated; 
        usleep(1000); 
    } 
} 
 
// Define file paths 
$userAgentFile = 'useragent'; 
$cookieFile = 'cookies'; 
$xevilFile = 'xevil';  // Ensure $xevilFile is defined 
 
// Function to read content from a file 
function readFromFile($filename) { 
    if (file_exists($filename)) { 
        return trim(file_get_contents($filename)); 
    } 
    return false; 
} 
 
// Read Xevil API key from file or prompt for it 
$xevil = readFromFile($xevilFile); 
if (!$xevil) { 
    echo "Enter apixevil ==> "; 
    $xevil = trim(fgets(STDIN)); 
    // Optionally save the Xevil API key to a file 
    file_put_contents($xevilFile, $xevil); 
} 
 
$apikey = $xevil; 
 
// Read User-Agent from file or prompt for it 
$userAgent = readFromFile($userAgentFile); 
if (!$userAgent) { 
    echo "Enter User-Agent ==> "; 
    $userAgent = trim(fgets(STDIN)); 
    // Optionally save the User-Agent to a file 
    file_put_contents($userAgentFile, $userAgent); 
} 
 
// Read Cookies from file or prompt for it 
$cookie = readFromFile($cookieFile); 
if (!$cookie) { 
    echo "Enter Cookie ==> "; 
    $cookie = trim(fgets(STDIN)); 
    // Optionally save the cookies to a file 
    file_put_contents($cookieFile, $cookie); 
} 
 
system('clear'); 
 
// MODUL 
function Run($url, $head = 0, $post = 0) { 
    $ch = curl_init(); 
    curl_setopt($ch, CURLOPT_URL, $url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); 
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); 
 
    if ($post) { 
        curl_setopt($ch, CURLOPT_POST, true); 
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
    } 
 
    if ($head && is_array($head)) { 
        curl_setopt($ch, CURLOPT_HTTPHEADER, $head); 
    } 
 
    curl_setopt($ch, CURLOPT_HEADER, true); 
    $r = curl_exec($ch); 
    $c = curl_getinfo($ch); 
 
    if (!$r) { 
        return "Curl error: " . curl_error($ch); 
    } else { 
        $hd = substr($r, 0, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); 
        $bd = substr($r, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); 
        curl_close($ch); 
        return $bd; 
    } 
} 
 
$apikey = $xevil; 
$url = "http://api.sctg.xyz/res.php?action=userinfo&key=$apikey"; 
$r = Run($url); 
 
$responseData = json_decode($r, true); 
 
if (isset($responseData['balance'])) { 
    $apim = '' . $responseData['balance'] . ' Rub' . n; 
} else { 
    $apim = "Invalid key Balance not found" . n; 
} 
 
$header = [ 
"Host: newzcrypt.xyz", 
"Upgrade-Insecure-Requests: 1", 
"Origin: https://newzcrypt.xyz", 
"Content-Type: application/x-www-form-urlencoded", 
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", 
"Referer: https://newzcrypt.xyz/faucet", 
"Accept-Language:en-US,en;q=0.9", 
"User-Agent: $userAgent", 
"Cookie: $cookie", 
]; 
 
 
 
function banner() { 
    $banner =  m ."   ________    __________________  __ 
  / ____/ /   /  _/_  __/ ____/ / / /   " . p . "|CREATOR|  ==>  |@Uchiha_G_O_A_T|" . m . " 
 / / __/ /    / /  / / / /   / /_/ /    " . p . "|THANKS TO|  ==>   |@doowie_official|" . k . " 
/ /_/ / /____/ /  / / / /___/ __  /     " . p . "|SCRIPT_NAME|  ==>  |Newzcrypt.xyz|" . k . " 
\____/_____/___/ /_/  \____/_/ /_/      " . bg . p . "|Script-Not-For-Sale|" . d . bg_end . "
" . $m; 
    low1($banner); 
} 
banner();                                      
       
 
$dash = "https://newzcrypt.xyz/dashboard"; 
$r = Run($dash, $header); 
 
$total = explode("</h2>", explode('<h2 class="mb-2 number-font">', $r)[1])[0]; 
if ($total == ""){ 
    print "[Cookie expire, Please enter cookie again]
"; 
    sleep(3); 
    exit; 
} 
$depbal = explode("</h2>", explode('<h2 class="mb-2  number-font">', $r)[2])[0]; 
$energy = explode("</h6>", explode('<h6 class="mb-2 number-font">', $r)[2])[0]; 
$ref = explode("</h6>", explode('<h6 class="mb-2  number-font">', $r)[2])[0]; 
 
print p.'' . p . $l . n; 
print  p."[TOTAL_BALANCE] ==>"; low($total); echo "
"; 
print p."[advertise_Balance] ==>"; low($depbal); echo "
"; 
print p."[Energy] ==>"; low($energy); echo "
"; 
print p."[Rafferals] ==>"; low($ref); echo "
"; 
print p."[Api_Xevil] ==> "; low($apim); 
print p.'' . p . $l . n; 
 
while(true): 
     
     
 
$faucet = "https://newzcrypt.xyz/faucet"; 
$r = Run($faucet, $header); 
 
$wait = explode(' ', explode('var wait = ', $r)[1] ?? '')[0]; 
for ($i = $wait; $i > 0; $i --) { 
     $hours = floor($i / 3600); 
    $minutes = floor(($i % 3600) / 60); 
    $seconds = $i % 60; 
    printf("Please Wait... [%02d:%02d:%02d]", $hours, $minutes, $seconds); 
    sleep(1); 
    print "
                          
"; 
} 
 
$pgae1 = "https://newzcrypt.xyz/faucet"; 
$r = Run($pgae1, $header); 
 
$pgaefa = "https://newzcrypt.xyz/faucet"; 
$r = Run($pgaefa, $header); 
 
 
$token = explode('"', explode('<input type="hidden" name="csrf_token_name" id="token" value="', $r)[1])[0]; 
 
$abIMG = explode('"',explode('order <img src="data:image/png;base64,',$r)[1])[0]; 
$abVAR = explode('</script>',explode('<script type="text/javascript">var ablinks=',$r)[1])[0]; 
 
$abVAR = json_decode($abVAR,true); 
 
$abLinks = array(); 
 
$abLinks["main"] = trim($abIMG); 
 
for($i=0;$i<count((array)$abVAR);$i++){ 
 
    $key = explode('"',explode('rel="',$abVAR[$i])[1])[0]; 
    $img = explode('"',explode('src="data:image/png;base64,',$abVAR[$i])[1])[0]; 
 
    $abLinks[(int)trim($key)] = trim($img); 
 
} 
 
$capurl  = "http://api.sctg.xyz/in.php"; 
 
  
$data = array( 
    'key' => $apikey, 
    'method' => 'antibot', 
) + $abLinks; 
 
$res = Run($capurl, array(), $data); 
 
$parts = explode('OK|', $res); 
if (count($parts) > 1) { 
    $task = $parts[1]; 
    if ($task) { 
        while (true) { 
            $request_url = "http://api.sctg.xyz/res.php?key=$apikey&action=get&id=$task"; 
            $res = Run($request_url); 
            $result_parts = explode('OK|', $res); 
            if (count($result_parts) > 1) { 
                $res = $result_parts[1]; 
                break; 
            } elseif ($res == "ERROR_CAPTCHA_UNSOLVABLE") { 
                flush(); 
                break; 
            } else { 
                echo "BYPASS ANTIBOT
"; 
                flush(); 
                sleep(3); 
            } 
        } 
    } 
} 
 
$numbers = explode(",",$res); 
 
$antibot = ""; 
 
for($i=0;$i<count((array)$numbers);$i++){ 
 
    $antibot .= "+".$numbers[$i]; 
 
} 
 
$pageurl = "https://newzcrypt.xyz/faucet"; 
$sitekey = "cfe96c1f-9623-409b-b140-6cf37d857cd4"; 
$capurl  = "http://api.sctg.xyz/in.php?key=$apikey&method=hcaptcha&sitekey=$sitekey&pageurl=$pageurl"; 
 
$data = http_build_query([ 
    'apikey' => $apikey, 
    'pageurl' => $pageurl, 
    'method' => 'hcaptcha', 
    'sitekey' => $sitekey, 
]); 
 
$res = Run($capurl, $data); 
 
$parts = explode('OK|', $res); 
if (count($parts) > 1) { 
    $task = $parts[1]; 
    if ($task) { 
        while (true) { 
            $request_url = "http://api.sctg.xyz/res.php?key=$apikey&action=get&id=$task"; 
            $res = Run($request_url); 
            $result_parts = explode('OK|', $res); 
            if (count($result_parts) > 1) { 
                $res = $result_parts[1]; 
                break; 
            } elseif ($res == "ERROR_CAPTCHA_UNSOLVABLE") { 
                flush(); 
                break; 
            } else { 
                echo "CAPTCHA_NOT_READY                          
"; // Single line 
                flush(); 
                sleep(3); 
            } 
        } 
    } 
} 
 
$apikey = $xevil; 
$url = "http://api.sctg.xyz/res.php?action=userinfo&key=$apikey"; 
$r = Run($url); 
 
$responseData = json_decode($r, true); 
 
if (isset($responseData['balance'])) { 
    $apim1 = '' . $responseData['balance'] . ' Rub' . n; 
} else { 
    $apim1 = "Invalid key Balance not found" . n; 
} 
 
$url = "https://newzcrypt.xyz/faucet/verify"; 
$data = 'antibotlinks='.$antibot.'&csrf_token_name='.$token.'&captcha=hcaptcha&g-recaptcha-response='.$res.'&h-captcha-response='.$res; 
$r = Run($url, $header, $data); 
 
$urll = "https://newzcrypt.xyz/faucet"; 
$r = Run($urll, $header); 
$tim = explode('</h5>', explode('<h5 class="mb-0">', $r)[1])[0]; 
$left = explode('</h5>', explode('<h5 class="mb-0">', $r)[3])[0]; 
$suss = explode("', 'success')</script>", explode("<script> Swal.fire('Good job!', '", $r)[1])[0]; 
 
$dash = "https://newzcrypt.xyz/dashboard"; 
$r = Run($dash, $header); 
$total = explode("</h2>", explode('<h2 class="mb-2 number-font">', $r)[1])[0]; 
 
 
 
print p.'' . p . $l . n; 
echo "$suss
"; 
print p."[New_BALANCE] ==>"; low($total); echo "
"; 
print p."[Timer] ==> "; low($tim); echo "minutes
"; 
print p."[Claim_Left] ==> "; low($left); echo "
"; 
print p."[Api_Xevil] ==> "; low($apim1); 
print p."[Anti_Bot] ==> "; low($antibot); echo "
"; 
print p.'' . p . $l . n; 
 
 
 
//print_r($r); 
endwhile; ?>

Did this file decode correctly?

Original Code

<?php

system("clear");

error_reporting(0);

// Code Warna
const b = "\033[1;34m";
const c = "\033[1;36m";
const d = "\033[0m";
const h = "\033[1;32m";
const k = "\033[1;33m";
const m = "\033[1;31m";
const n = "\n";
const p = "\033[1;37m";
const u = "\033[1;35m";
const bg = "\033[44m";  // Blue background
const bg_end = "\033[49m";  // Reset background

$l = str_repeat(p . "", 40) . k;
$m = str_repeat(p . "", 85) . p . n;
$v = str_repeat(p . "_", 85) . p . n;

function low($arr){
    $char = str_split($arr);
    foreach($char as $animated){
        echo $animated;
        usleep(22000);
    }
}

function low1($arr){
    $char = str_split($arr);
    foreach($char as $animated){
        echo $animated;
        usleep(10000);
    }
}

function fast($arr){
    $char = str_split($arr);
    foreach($char as $animated){
        echo $animated;
        usleep(1000);
    }
}

// Define file paths
$userAgentFile = 'useragent';
$cookieFile = 'cookies';
$xevilFile = 'xevil';  // Ensure $xevilFile is defined

// Function to read content from a file
function readFromFile($filename) {
    if (file_exists($filename)) {
        return trim(file_get_contents($filename));
    }
    return false;
}

// Read Xevil API key from file or prompt for it
$xevil = readFromFile($xevilFile);
if (!$xevil) {
    echo "Enter apixevil ==> ";
    $xevil = trim(fgets(STDIN));
    // Optionally save the Xevil API key to a file
    file_put_contents($xevilFile, $xevil);
}

$apikey = $xevil;

// Read User-Agent from file or prompt for it
$userAgent = readFromFile($userAgentFile);
if (!$userAgent) {
    echo "Enter User-Agent ==> ";
    $userAgent = trim(fgets(STDIN));
    // Optionally save the User-Agent to a file
    file_put_contents($userAgentFile, $userAgent);
}

// Read Cookies from file or prompt for it
$cookie = readFromFile($cookieFile);
if (!$cookie) {
    echo "Enter Cookie ==> ";
    $cookie = trim(fgets(STDIN));
    // Optionally save the cookies to a file
    file_put_contents($cookieFile, $cookie);
}

system('clear');

// MODUL
function Run($url, $head = 0, $post = 0) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);

    if ($post) {
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
    }

    if ($head && is_array($head)) {
        curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
    }

    curl_setopt($ch, CURLOPT_HEADER, true);
    $r = curl_exec($ch);
    $c = curl_getinfo($ch);

    if (!$r) {
        return "Curl error: " . curl_error($ch);
    } else {
        $hd = substr($r, 0, curl_getinfo($ch, CURLINFO_HEADER_SIZE));
        $bd = substr($r, curl_getinfo($ch, CURLINFO_HEADER_SIZE));
        curl_close($ch);
        return $bd;
    }
}

$apikey = $xevil;
$url = "http://api.sctg.xyz/res.php?action=userinfo&key=$apikey";
$r = Run($url);

$responseData = json_decode($r, true);

if (isset($responseData['balance'])) {
    $apim = '' . $responseData['balance'] . ' Rub' . n;
} else {
    $apim = "Invalid key Balance not found" . n;
}

$header = [
"Host: newzcrypt.xyz",
"Upgrade-Insecure-Requests: 1",
"Origin: https://newzcrypt.xyz",
"Content-Type: application/x-www-form-urlencoded",
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"Referer: https://newzcrypt.xyz/faucet",
"Accept-Language:en-US,en;q=0.9",
"User-Agent: $userAgent",
"Cookie: $cookie",
];



function banner() {
    $banner =  m ."   ________    __________________  __
  / ____/ /   /  _/_  __/ ____/ / / /   " . p . "|CREATOR|  ==>  |@Uchiha_G_O_A_T|" . m . "
 / / __/ /    / /  / / / /   / /_/ /    " . p . "|THANKS TO|  ==>   |@doowie_official|" . k . "
/ /_/ / /____/ /  / / / /___/ __  /     " . p . "|SCRIPT_NAME|  ==>  |Newzcrypt.xyz|" . k . "
\\____/_____/___/ /_/  \\____/_/ /_/      " . bg . p . "|Script-Not-For-Sale|" . d . bg_end . "\n" . $m;
    low1($banner);
}
banner();                                     
      

$dash = "https://newzcrypt.xyz/dashboard";
$r = Run($dash, $header);

$total = explode("</h2>", explode('<h2 class="mb-2 number-font">', $r)[1])[0];
if ($total == ""){
    print "[Cookie expire, Please enter cookie again]\n";
    sleep(3);
    exit;
}
$depbal = explode("</h2>", explode('<h2 class="mb-2  number-font">', $r)[2])[0];
$energy = explode("</h6>", explode('<h6 class="mb-2 number-font">', $r)[2])[0];
$ref = explode("</h6>", explode('<h6 class="mb-2  number-font">', $r)[2])[0];

print p.'' . p . $l . n;
print  p."[TOTAL_BALANCE] ==>"; low($total); echo "\n";
print p."[advertise_Balance] ==>"; low($depbal); echo "\n";
print p."[Energy] ==>"; low($energy); echo "\n";
print p."[Rafferals] ==>"; low($ref); echo "\n";
print p."[Api_Xevil] ==> "; low($apim);
print p.'' . p . $l . n;

while(true):
    
    

$faucet = "https://newzcrypt.xyz/faucet";
$r = Run($faucet, $header);

$wait = explode(' ', explode('var wait = ', $r)[1] ?? '')[0];
for ($i = $wait; $i > 0; $i --) {
     $hours = floor($i / 3600);
    $minutes = floor(($i % 3600) / 60);
    $seconds = $i % 60;
    printf("Please Wait... [%02d:%02d:%02d]", $hours, $minutes, $seconds);
    sleep(1);
    print "\r                          \r";
}

$pgae1 = "https://newzcrypt.xyz/faucet";
$r = Run($pgae1, $header);

$pgaefa = "https://newzcrypt.xyz/faucet";
$r = Run($pgaefa, $header);


$token = explode('"', explode('<input type="hidden" name="csrf_token_name" id="token" value="', $r)[1])[0];

$abIMG = explode('"',explode('order <img src="data:image/png;base64,',$r)[1])[0];
$abVAR = explode('</script>',explode('<script type="text/javascript">var ablinks=',$r)[1])[0];

$abVAR = json_decode($abVAR,true);

$abLinks = array();

$abLinks["main"] = trim($abIMG);

for($i=0;$i<count((array)$abVAR);$i++){

    $key = explode('"',explode('rel="',$abVAR[$i])[1])[0];
    $img = explode('"',explode('src="data:image/png;base64,',$abVAR[$i])[1])[0];

    $abLinks[(int)trim($key)] = trim($img);

}

$capurl  = "http://api.sctg.xyz/in.php";

 
$data = array(
    'key' => $apikey,
    'method' => 'antibot',
) + $abLinks;

$res = Run($capurl, array(), $data);

$parts = explode('OK|', $res);
if (count($parts) > 1) {
    $task = $parts[1];
    if ($task) {
        while (true) {
            $request_url = "http://api.sctg.xyz/res.php?key=$apikey&action=get&id=$task";
            $res = Run($request_url);
            $result_parts = explode('OK|', $res);
            if (count($result_parts) > 1) {
                $res = $result_parts[1];
                break;
            } elseif ($res == "ERROR_CAPTCHA_UNSOLVABLE") {
                flush();
                break;
            } else {
                echo "BYPASS ANTIBOT\r";
                flush();
                sleep(3);
            }
        }
    }
}

$numbers = explode(",",$res);

$antibot = "";

for($i=0;$i<count((array)$numbers);$i++){

    $antibot .= "+".$numbers[$i];

}

$pageurl = "https://newzcrypt.xyz/faucet";
$sitekey = "cfe96c1f-9623-409b-b140-6cf37d857cd4";
$capurl  = "http://api.sctg.xyz/in.php?key=$apikey&method=hcaptcha&sitekey=$sitekey&pageurl=$pageurl";

$data = http_build_query([
    'apikey' => $apikey,
    'pageurl' => $pageurl,
    'method' => 'hcaptcha',
    'sitekey' => $sitekey,
]);

$res = Run($capurl, $data);

$parts = explode('OK|', $res);
if (count($parts) > 1) {
    $task = $parts[1];
    if ($task) {
        while (true) {
            $request_url = "http://api.sctg.xyz/res.php?key=$apikey&action=get&id=$task";
            $res = Run($request_url);
            $result_parts = explode('OK|', $res);
            if (count($result_parts) > 1) {
                $res = $result_parts[1];
                break;
            } elseif ($res == "ERROR_CAPTCHA_UNSOLVABLE") {
                flush();
                break;
            } else {
                echo "CAPTCHA_NOT_READY                          \r"; // Single line
                flush();
                sleep(3);
            }
        }
    }
}

$apikey = $xevil;
$url = "http://api.sctg.xyz/res.php?action=userinfo&key=$apikey";
$r = Run($url);

$responseData = json_decode($r, true);

if (isset($responseData['balance'])) {
    $apim1 = '' . $responseData['balance'] . ' Rub' . n;
} else {
    $apim1 = "Invalid key Balance not found" . n;
}

$url = "https://newzcrypt.xyz/faucet/verify";
$data = 'antibotlinks='.$antibot.'&csrf_token_name='.$token.'&captcha=hcaptcha&g-recaptcha-response='.$res.'&h-captcha-response='.$res;
$r = Run($url, $header, $data);

$urll = "https://newzcrypt.xyz/faucet";
$r = Run($urll, $header);
$tim = explode('</h5>', explode('<h5 class="mb-0">', $r)[1])[0];
$left = explode('</h5>', explode('<h5 class="mb-0">', $r)[3])[0];
$suss = explode("', 'success')</script>", explode("<script> Swal.fire('Good job!', '", $r)[1])[0];

$dash = "https://newzcrypt.xyz/dashboard";
$r = Run($dash, $header);
$total = explode("</h2>", explode('<h2 class="mb-2 number-font">', $r)[1])[0];



print p.'' . p . $l . n;
echo "$suss\n";
print p."[New_BALANCE] ==>"; low($total); echo "\n";
print p."[Timer] ==> "; low($tim); echo "minutes\n";
print p."[Claim_Left] ==> "; low($left); echo "\n";
print p."[Api_Xevil] ==> "; low($apim1);
print p."[Anti_Bot] ==> "; low($antibot); echo "\n";
print p.'' . p . $l . n;



//print_r($r);
endwhile;

Function Calls

None

Variables

None

Stats

MD5 b3d3b5b02271a70e0cd3cdc7d1e84e78
Eval Count 0
Decode Time 77 ms