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(gzuncompress(base64_decode('eJwVl7WyxYiORT/ndZcDM9WrCexjZqZkyszM/vq5kylQJmntpfJ..
Decoded Output download
error_reporting(0);
const
title = "topadcoin",
versi = "1.0",
status = "online",
host = "https://topadcoin.com/",
n = "
";
unlink("cookie.txt");
if( PHP_OS_FAMILY == "Linux" || PHP_OS_FAMILY == "Windows"){
define("b","[1;34m");
define("c","[1;36m");
define("d","[0m");
define("h","[1;32m");
define("k","[1;33m");
define("m","[1;31m");
define("p","[1;37m");
define("u","[1;35m");
define("mp","[101m[1;37m");
define("pm","[107m[1;31m");
}else{define("b","");define("c","");define("d","");define("h","");define("k","");define("m","");define("p","");define("u","");define("mp","");define("pm","");}
date_default_timezone_set("Asia/Jakarta");
unlink("cookie.txt");
function Curl($u, $h = 0, $p = 0) {
while(true){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_COOKIE,TRUE);
//curl_setopt($ch, CURLOPT_COOKIEFILE,"cookie.txt");
//curl_setopt($ch, CURLOPT_COOKIEJAR,"cookie.txt");
if($p) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $p);
}
if($h) {
curl_setopt($ch, CURLOPT_HTTPHEADER, $h);
}
curl_setopt($ch, CURLOPT_HEADER, true);
$r = curl_exec($ch);
$c = curl_getinfo($ch);
if(!$c) 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 array($hd,$bd)[1];
}
}
}
function recaptchav2($apikey, $sitekey, $pageurl){
$ua = ["host: ocr.captchaai.com","content-type: application/json/x-www-form-urlencoded"];
while(true){
$r = curl("https://ocr.captchaai.com/in.php?key=2006727fadfbb7b02f37b9bb0ead36c4&method=userrecaptcha&googlekey=$sitekey&pageurl=$pageurl",$ua);
$id = explode('|',$r)[1];
if(!$id){sleep(20);continue;}
sleep(20);
while(true){
print "prosess...";
$r = curl("https://ocr.captchaai.com/res.php?key=2006727fadfbb7b02f37b9bb0ead36c4&action=get&id=$id",$ua);
if($r == "CAPCHA_NOT_READY"){
print "
";
print "prosess......";
sleep(10);
print "
";
continue;
}
print "
";
return explode('|', $r)[1];
}
}
}
#https://best-shopme.com/
function ptc(){
ptc:
$r=curl(host."ptc.html",h());
$id=explode('">',explode('<div class="website_block" id="',$r)[1])[0];
$key=explode("',",explode("'&key=",$r)[1])[0];
if(!$id){
exit(p."PTC ADS HABIS!".n);
print line();
}
$r=curl(host."surf.php?sid=".$id."&key=".$key,h());
$time=explode(";",explode("var secs =",$r)[1])[0];
if($time){
tmr($time);
}
$token=explode("';",explode("var token = '",$r)[1])[0];
$data="cID=0&rT=1&tM=light";
$cap=json_decode(curl(host."system/libs/captcha/request.php",h(),$data),1);
foreach($cap as $caps){
$data="cID=0&pC=".$caps."&rT=2";
$r=curl(host."system/libs/captcha/request.php",h(),$data);
$data="a=proccessPTC&data=".$id."&token=".$token."&captcha-idhf=0&captcha-hf=".$caps;
$r=json_decode(curl(host."system/ajax.php",h(),$data),1);
$inv=trim(explode('<',explode('<i class="fa fa-exclamation-triangle"></i>',$r["message"])[1])[0]);
$sts=explode('</b>',explode('<b>',$r["message"])[1])[0];
$suc=explode('</div>',explode('</b>',$r["message"])[1])[0];
$r=curl(host,h());
$bal1=explode('<',explode('<div class="text-success"><b>',$r)[1])[0];
if($sts=="SUCCESS"){
print h."$sts $suc ".n;
print h."Token ".m."->> ".p.$bal1.n;
print line();
goto ptc;
}else{
print m."$inv";
sleep(1);
print "
";
}
}
}
function roll(){
a:
$r=curl(host."roll.html",h());
if(preg_match('/You must visit 3 more Shortlinks today to be able to Roll/',$r)){
exit(m."You must visit 3 more Shortlinks today to be able to Roll".n);
}
$time=explode('Minutes',explode('<span id="claimTime">',$r)[1])[0];
if($time){
tmr(600);
}
$apikey=file_get_contents("apikey");
$token=explode("';",explode("var token = '",$r)[1])[0];
$sitekey=explode('">',explode('<div class="g-recaptcha" data-sitekey="',$r)[1])[0];
if(!$sitekey){
goto a;
}
$cap=recaptchav2($apikey,$sitekey,host);
$data="a=getBonusRoll&token=".$token."&captcha=1&challenge=false&response=".$cap;
$r=json_decode(curl(host."system/ajax.php",h(),$data),1);
$suc=trim(explode('<',explode('<i class="fa fa-check-circle fa-fw"></i> Congratulations,',$r["message"])[1])[0]);
$r=curl(host,h());
$bal1=explode('<',explode('<div class="text-success"><b>',$r)[1])[0];
if($suc){
print h."$suc".n;
print h."Token ".m."->> ".p.$bal1.n;
print line();
goto a;
}else{
print m."invalid respon";
sleep(1);
exit;
}
}
function Slow($msg){$slow = str_split($msg);foreach( $slow as $slowmo ){print $slowmo; usleep(70000);}}
function Bn(){system("clear");$zone = TimeZone();$tanggal = Date("d-M-Y");$waktu = Date("H:i:s");$panjang = 50-strlen($zone.$tanggal.$waktu);$spasi = floor($panjang/2);$lokasi = c.$zone.str_repeat(" ",$spasi).$tanggal.str_repeat(" ",$spasi).$waktu;if($panjang % 2 == 1){$lokasi .= " ";}print $lokasi.n;print Line();Acssi_calvin(title);print mp.str_pad("SCRIPT BY TEAM PREMIUM",50," ",STR_PAD_BOTH).d."
";print pm.str_pad("THANKS TO ALL TEAM PREMIUM",49," ",STR_PAD_BOTH)." ".d."
";print Line();}function Acssi_calvin($string){$acssi = ["a" => ["",""," "],"b" => [" ","",""],"c" => [""," ",""],"d" => [""," ",""],"e" => [""," ",""],"f" => [""," "," "],"g" => [""," ",""],"h" => [" ",""," "],"i" => ["","",""],"j" => [" "," ",""],"k" => ["",""," "],"l" => [" "," ",""],"m" => ["",""," "],"n" => ["","",""],"o" => [""," ",""],"p" => ["",""," "],"q" => [" ","",""],"r" => ["","",""],"s" => ["","",""],"t" => [""," "," "],"u" => [" "," ",""],"v" => [" ",""," "],"w" => [" ","",""],"x" => [" ",""," "],"y" => [" ",""," "],"z" => ["","",""]," "=>[" "," "," "],"1" => ["","",""], "2" => ["","",""], "3" => [""," ",""],"4" => [" ",""," "],"5" => ["","",""],"6" => ["","",""],"7" => [""," "," "],"8" => ["","",""],"9" => ["","",""],"0" => [""," ",""]];$x = str_split($string);print " ";foreach($x as $data){print b.$acssi[$data][0];}print b." versi ".m.": ".p.versi.n." ";foreach($x as $data){print c.$acssi[$data][1];}print c." status".m.": ".p.status.n." ";foreach($x as $data){print p.$acssi[$data][2];}print n;}function TimeZone(){$api = json_decode(file_get_contents("http://ip-api.com/json"),1);if($api){$tz = $api["timezone"];date_default_timezone_set($tz);return $api["country"];}else{date_default_timezone_set("UTC");return "UTC";}}
function Simpan($n){if(file_exists($n)) {$d = file_get_contents($n);}else{$d = readline("Input ".$n." : ".n);print n;file_put_contents($n,$d);}return $d;}
function Tmr($tmr){
$col = [b,c,d,k,m,u];
$sym = [' ->>> ',' <<<- ',' ->>> ',' <<<- '];
$text = ['You-claim-again '];
$text1 = [' minutes '];
$text2 = [' seconds '];
$timr = time()+$tmr;
$a = 0;
while(true){
$a +=1;
$x = $col[array_rand($col)];
$timerclaim = date('i:s',$res);
$res=$timr-time();
if($res < 1) {
break;
}
print $x.$sym[$a % 4].$x.$text[$a % 1].$x.$timerclaim.$x.$sym[$a % 4]."
";
usleep(100000);
}
print "
";
}
function Line(){return p.str_repeat('',50).n;}
function h(){
$h[] = "Host:topadcoin.com";
$h[] = "upgrade-insecure-requests: 1";
$h[] = "user-agent: ".Simpan("user_agent");
$h[] = "Accept:application/json, text/javascript, */*; q=0.01";
$h[] = "X-Requested-With:XMLHttpRequest";
$h[] = "cookie: ".Simpan("cookie");
return $h;
}
cookie:
Bn();
simpan("cookie");
simpan("user_agent");
system("clear");
$r=curl(host,h());
$user=explode('<',explode('<a href="/membership.html" class="text-success">',$r)[1])[0];
$bal=explode('<',explode('<div class="text-success"><b>',$r)[1])[0];
$val=explode('<',explode('<div class="text-primary"><b id="sidebarCoins">',$r)[1])[0];
$val2=explode('<',explode('<small class="text-success">',$r)[1])[0];
Bn();
if(!$bal){
print m."SESSION EXPIRED!";
sleep(1);
print "
";
unlink("cookie");
goto cookie;
}
Bn();
menu:
print h."Username ".m."-> ".p.$user.n;
print h."Token ".m."-> ".p.$bal.n;
print h."Coins ".m."-> ".p."$val ".k."/"." $val2".n;
print line();
print h."1.Roll".n;
print h."2.Ptc".n;
print line();
$pilih=readline(h."input angka: ".p);
print line();
if($pilih==1){
roll();
}elseif($pilih==2){
ptc();
}else{
exit("pilih yang bener ngapa");
}
Did this file decode correctly?
Original Code
<?php eval(gzuncompress(base64_decode('eJwVl7WyxYiORT/ndZcDM9WrCexjZqZkyszM/vq5kylQJmntpfJKh3/q75zyeVy2ct//ydK9JLD/Lcp8Lsp//lMqdzBA4fkUrevE1acDoTgGHsF5+nfC+ht55ufAwJVMjK+ASakS8yaCxHKh+opPUrJOKKhQINLuHHAQr3qmHwD4wICeCeOUVffh5MY8uirCspteMU0Vd28JvYs7sQ6OLB+QwdGqe9TyGsDUFjTeqZpJMaVQYvnj+wvrRSNsGzqC2Hs3so5/pv24j6zICSPCkLS6pTlTnFtNX82tNqR5XPZVnoijYJ+urH057MIGRrxapxKZVbytTufdSMVQzxUgx5mgxiQk9Bc3ZBS3bb1uK988ZWyePq1NFO6ctLRwSL/w+JvuV4XiHjKxHdenENWlZTo3UyOGKB/jvRMAVOhSDeStt0xsAn94TUHGt7t31+gsaqCb9NMfp6cJLc3dl+b6pnaLqxrWbtVi4MW2GsrolbesLg6dZD8XhCDq4FKrSJkmhd/v/qnRCUdpzUyMwyBnKj8NV4DAvAhkN309nW8eFUC0c/0qFNXNk8Jekv2U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