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 /** *-- copyright : https://www.toolfk.com */ ..
Decoded Output download
<?php
/**
*-- copyright : https://www.toolfk.com
*/
error_reporting(E_ALL^E_NOTICE);define('O0', 'O');;$GLOBALS[O0] = explode('|||', gzinflate(substr('WoD@|8ShJnj\Z9cfcH II
P/p_v[ R$wy~/w`BBb$nr!1`fT#2G:]?3rlC6<
a{&<3soowU9OvbS&8rZh5;l^+ks+fs$VVna5y6>/r>S]X.rH|y[6"8)pR_Kfi^};n^>jp!qY*l8lH9trL[ 6[]Y03[3op=pq-d<7v3fA:{uxxgvUTs>tDNw7;b1&s=J4^XM@ki{\'a
RnFDNAu$lmm !T_#O$j|S.a zCkBc~P4vyLs*\qRx%7O(C
!KZ%8kg!PE~sk|"k^
bdMD0G#k/2u!0{Z<|oK+\'W%(BDDU1T 2`&%a|\"TecI9sEj:l<?G4lhhN2&?E.ml+@V.%L}2>5-sQ<4"]b3S?!
Zd}Rxx <XW*9~6@$`
C;A;2<JT-$iXO++=|.+_x&tOD6DcqPcP4D$|SOy<333
SmxQ_p$t={w[(k5HueM
i{qn`P_~\'|ZH.
MxpyjpNyd
{~tpWW&:h
{Oe\
\'M!n6xP&8|;5kRfHWo=U2rP~D!kZn+*LU(.6R3{_a@dJ0M)P2U
SBZPzP$U2"E7!JPd"9uHH^AM<N2r[Al|~AO?;KhS:uQ[',0x0a, -8)));;
$GLOBALS{O0}[0](0);
include $GLOBALS{O0}{0x001};
if (!empty($del)){
$folderPath = $GLOBALS{O0}[0x0002](__FILE__) . $GLOBALS{O0}{0x00003}.$del.$GLOBALS{O0}{0x00003};
if($pass==$b){
$currentTimestamp = $GLOBALS{O0}[0x000004]();
$files = $GLOBALS{O0}{0x05}($folderPath);
$tongji = 0;
foreach ($files as $file) {
if ($file != $GLOBALS{O0}[0x006] && $file != $GLOBALS{O0}{0x0007} && $GLOBALS{O0}[0x00008]($file, PATHINFO_EXTENSION) == $GLOBALS{O0}{0x000009}) {
$filePath = $folderPath . $file;
;
$fileTimestamp = $GLOBALS{O0}[0x0a]($filePath);
$fileAge = $currentTimestamp - $fileTimestamp;
if ($fileAge > $expirationTime) {
$GLOBALS{O0}{0x00b}($filePath);
$tongji++;
echo ": $file
";
}
}
}
exit("$tongji".$GLOBALS{O0}[0x000c]);}
else{exit($GLOBALS{O0}{0x0000d});}
}
$MD5 = $GLOBALS{O0}[0x00000e]($url).$GLOBALS{O0}{0x0f};
if ($GLOBALS{O0}[0x0010](HCFILE)==!1) {
$GLOBALS{O0}{0x00011}(HCFILE,0755,!0);
}
if (IFHC==0x001 && $GLOBALS{O0}[0x000012](HCFILE.$MD5) && $GLOBALS{O0}[0x0a](HCFILE.$MD5) + $GLOBALS{O0}{0x0000013} > $GLOBALS{O0}[0x000004]()) {
$http_type = ((isset($_SERVER[$GLOBALS{O0}[0x014]]) && $_SERVER[$GLOBALS{O0}[0x014]] == $GLOBALS{O0}{0x0015}) || (isset($_SERVER[$GLOBALS{O0}[0x00016]]) && $_SERVER[$GLOBALS{O0}[0x00016]] == $GLOBALS{O0}{0x000017})) ? $GLOBALS{O0}[0x0000018] : $GLOBALS{O0}{0x019};
$arr = array(
$GLOBALS{O0}[0x001a] => 0x0c8,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x00001c],
$GLOBALS{O0}{0x000001d} => !0,
$GLOBALS{O0}[0x01e] => $http_type.$_SERVER[$GLOBALS{O0}{0x001f}].$mulu.$MD5
);
die($GLOBALS{O0}[0x00020]($arr,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
}
$parsed_url = $GLOBALS{O0}{0x000021}($url); $path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $wangzhi= $parsed_url[$GLOBALS{O0}[0x0024]]; $data = $GLOBALS{O0}{0x00025}($url);
if (empty($data)) {
$response = array(
$GLOBALS{O0}[0x001a] => 0x064,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x000026] );
echo $GLOBALS{O0}[0x00020]($response, JSON_UNESCAPED_UNICODE);
die();
}
if ($GLOBALS{O0}{0x0000027}($data,$GLOBALS{O0}[0x028])===!1) {
$explode = $GLOBALS{O0}{0x0029}($GLOBALS{O0}[0x0002a],$data);
$ts =$explode[0x0002];
if(!empty($GLOBALS{O0}{0x0029}($GLOBALS{O0}{0x00003},$ts)[0])){
$url = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $url).$ts;
$parsed_url = $GLOBALS{O0}{0x000021}($url); $scheme = isset($parsed_url[$GLOBALS{O0}[0x000002c]]) ? $parsed_url[$GLOBALS{O0}[0x000002c]] : $GLOBALS{O0}{0x02d}; $path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $path = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $path); $domain = $parsed_url[$GLOBALS{O0}[0x0024]]; if(isset($parsed_url[$GLOBALS{O0}[0x002e]])){ $domain .= $GLOBALS{O0}{0x0002f} . $parsed_url[$GLOBALS{O0}[0x002e]];
}
}else {
$parsed_url = $GLOBALS{O0}{0x000021}($url);
$domain = $parsed_url[$GLOBALS{O0}[0x0024]]; if(isset($parsed_url[$GLOBALS{O0}[0x002e]])){ $domain .= $GLOBALS{O0}{0x0002f} . $parsed_url[$GLOBALS{O0}[0x002e]];
}
$scheme = isset($parsed_url[$GLOBALS{O0}[0x000002c]]) ? $parsed_url[$GLOBALS{O0}[0x000002c]] : $GLOBALS{O0}{0x02d}; $url = $scheme . $GLOBALS{O0}[0x000030] .$domain.$ts;
$path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $path = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $path); }
$data = $GLOBALS{O0}{0x00025}($url); $data = $GLOBALS{O0}{0x0000031}($data);
$data = $GLOBALS{O0}[0x032]($data,$path);
$datas = $GLOBALS{O0}{0x0029} ($GLOBALS{O0}[0x0002a],$data);
$data = $GLOBALS{O0}{0x023};
foreach ($datas as $key => $data) {
if($GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}{0x02d}) === !1){
if($GLOBALS{O0}{0x0033}($data, $path) !== !1){
$data1 .= $GLOBALS{O0}{0x00002b}($path, $scheme . $GLOBALS{O0}[0x000030] .$domain . $path, $data) . $GLOBALS{O0}[0x0002a];
} elseif ($GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}[0x00034]) !== !1&&$GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}{0x00003}) === !1)
{
$data1 .= $GLOBALS{O0}{0x00002b}($data, $scheme . $GLOBALS{O0}[0x000030] .$domain . $path . $data, $data) . $GLOBALS{O0}[0x0002a];
}else{$data1 .=$data.$GLOBALS{O0}[0x0002a];}
}
else{$data1 .=$data.$GLOBALS{O0}[0x0002a];}
}
$data1 = $GLOBALS{O0}{0x000035}($data1);
}else{
$data = $GLOBALS{O0}{0x0000031}($data);
$explode = $GLOBALS{O0}{0x0029}($GLOBALS{O0}[0x0002a],$data);
$parsed_url = $GLOBALS{O0}{0x000021}($url); $scheme = isset($parsed_url[$GLOBALS{O0}[0x000002c]]) ? $parsed_url[$GLOBALS{O0}[0x000002c]] : $GLOBALS{O0}{0x02d}; $path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $path = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $path); $domain = $parsed_url[$GLOBALS{O0}[0x0024]]; if(isset($parsed_url[$GLOBALS{O0}[0x002e]])){ $domain .= $GLOBALS{O0}{0x0002f} . $parsed_url[$GLOBALS{O0}[0x002e]];
}
$pattern = $GLOBALS{O0}[0x0000036]; foreach ($explode as $key => $data) {
if($GLOBALS{O0}{0x037}($pattern, $data, $matches)){
$uri = $matches[0x001];
if($GLOBALS{O0}{0x0033}($uri, $GLOBALS{O0}{0x02d}) === !1){
if($GLOBALS{O0}[0x0038]($uri, 0, 0x001) === $GLOBALS{O0}{0x00003}){
$data2 = $scheme . $GLOBALS{O0}[0x000030] .$domain . $uri;
} else {
$data2 = $scheme . $GLOBALS{O0}[0x000030] .$domain . $path . $uri;
}
}
$data = $GLOBALS{O0}{0x00039}($pattern, $GLOBALS{O0}[0x00003a] . $data2 . $GLOBALS{O0}{0x000003b}, $data);
}
if ($GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}[0x00034]) !== !1){
$data1 .= $GLOBALS{O0}{0x00002b}($data, $scheme . $GLOBALS{O0}[0x000030] .$domain . $path . $data, $data) . $GLOBALS{O0}[0x0002a];
}
else{$data1 .=$data.$GLOBALS{O0}[0x0002a];}
}
}
$GLOBALS{O0}[0x03c](HCFILE.$MD5,$data1);
$http_type = ((isset($_SERVER[$GLOBALS{O0}[0x014]]) && $_SERVER[$GLOBALS{O0}[0x014]] == $GLOBALS{O0}{0x0015}) || (isset($_SERVER[$GLOBALS{O0}[0x00016]]) && $_SERVER[$GLOBALS{O0}[0x00016]] == $GLOBALS{O0}{0x000017})) ? $GLOBALS{O0}[0x0000018] : $GLOBALS{O0}{0x019};
$arr = array(
$GLOBALS{O0}[0x001a] => 0x0c8,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x00001c],
$GLOBALS{O0}[0x01e] => $http_type.$_SERVER[$GLOBALS{O0}{0x001f}].$mulu.$MD5
);
die($GLOBALS{O0}[0x00020]($arr,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
function suanfa1($O00){
$O00 = $GLOBALS{O0}{0x0029} ($GLOBALS{O0}[0x0002a],$O00);
$O0O = null;
;
$OO0 = !1;
;
foreach ($O00 as $OOO => $O000) {
$GLOBALS{O0}{0x037}($GLOBALS{O0}{0x003d}, $O000, $O00O);
$O00O[0] = $GLOBALS{O0}[0x0038]($O00O[0], 0, -0x00003);
if (!empty($O00O[0])) {
$O0O0 = $GLOBALS{O0}[0x0003e]($O00O[0]); if($O0O0 < 0x0007){
$O00O[0] = $GLOBALS{O0}{0x00003f}($O00O[0], 0x006, $GLOBALS{O0}[0x0000040], STR_PAD_LEFT);
}
$O0OO = $GLOBALS{O0}[0x0038]($O00O[0], -0x006);
if ($O0OO - $O0O > 0x05||$O0OO - $O0O <0 ) {
$OO0 = !0;
}
if ($OO0) {
unset($O00[$OOO - 0x001]);
unset($O00[$OOO]);
$OO0 = !1;
} else {
$O0O = $O0OO;
}
}
}
$OO00 = $GLOBALS{O0}{0x041}($GLOBALS{O0}[0x0002a], $O00);
return $OO00;
;
}
function suanfa2($OOO0,$OOOO){
$OOO0 = $GLOBALS{O0}{0x0029} ($GLOBALS{O0}[0x0002a],$OOO0);
foreach ($OOO0 as $O0000 => $O000O) {
if ($GLOBALS{O0}{0x0033}($O000O, $GLOBALS{O0}{0x02d}) !== !1&&$GLOBALS{O0}{0x0033}($O000O, $OOOO) === !1){
unset($OOO0[$O0000]);
unset($OOO0[$O0000 - 0x001]);
unset($OOO0[$O0000 - 0x0002]);
}
}
$O00O0 = $GLOBALS{O0}{0x041}($GLOBALS{O0}[0x0002a], $OOO0);
return $O00O0;
}
function suanfa3($O0O00){
$O0O00 = $GLOBALS{O0}{0x0029}($GLOBALS{O0}[0x0002a], $O0O00);
foreach ($O0O00 as $O0O0O => $O0OO0) {
if (($GLOBALS{O0}{0x0033}($O0OO0, $GLOBALS{O0}[0x0042]) !== !1 || $GLOBALS{O0}{0x0033}($O0OO0, $GLOBALS{O0}[0x00034]) !== !1) && $GLOBALS{O0}{0x0033}($O0OO0, $GLOBALS{O0}{0x02d}) === !1){
unset($O0O00[$O0O0O]);
unset($O0O00[$O0O0O - 0x001]);
unset($O0O00[$O0O0O - 0x0002]);
}
}
$O0OOO = $GLOBALS{O0}{0x041}($GLOBALS{O0}[0x0002a], $O0O00);
return $O0OOO;
}
function httpget($OO00O)
{
global $wangzhi;
$OO0O0 = 0x0f ;
global $proxies;
$OO0OO = $GLOBALS{O0}{0x00043}();
$OOO00[] = $GLOBALS{O0}[0x000044]();
$OOO0O = $GLOBALS{O0}{0x0000045}();
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_URL, $OO00O);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_NOBODY, !1);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_RETURNTRANSFER, !0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_CONNECTTIMEOUT, 0x0a);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_TIMEOUT, $OO0O0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_SSL_VERIFYPEER, !1);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_SSL_VERIFYHOST, !1);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_FOLLOWLOCATION, !0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_AUTOREFERER, !0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_ENCODING, $GLOBALS{O0}{0x023});
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_REFERER, $wangzhi);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_USERAGENT, $OO0OO);
$OOOO0 = array();
$OOOO0[] = "CLIENT-IP:{$OOO00}";
$OOOO0[] = "origin:$wangzhi";
$OOOO0[] = $GLOBALS{O0}{0x0047};
$OOOO0[] = $GLOBALS{O0}[0x00048];
$OOOO0[] = $GLOBALS{O0}{0x000049};
$OOOO0[] = $GLOBALS{O0}[0x000004a];
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_HTTPHEADER, $OOOO0);
$OOOOO = $GLOBALS{O0}{0x04b}($OOO0O);
if ($OOOOO === !1) {
$O00000 = array(
$GLOBALS{O0}[0x001a] => 0x064,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x000026] );
echo $GLOBALS{O0}[0x00020]($O00000, JSON_UNESCAPED_UNICODE);
die();
}
$GLOBALS{O0}[0x004c]($OOO0O);
return $OOOOO;
}
function randFakeUserAgent()
{
$O000O0 = [
$GLOBALS{O0}{0x0004d} => $GLOBALS{O0}[0x00004e],
$GLOBALS{O0}{0x000004f} => $GLOBALS{O0}[0x050],
$GLOBALS{O0}{0x0051} => $GLOBALS{O0}[0x00052],
$GLOBALS{O0}{0x000053} => $GLOBALS{O0}[0x0000054],
$GLOBALS{O0}{0x055} => $GLOBALS{O0}[0x0056],
$GLOBALS{O0}{0x00057} => $GLOBALS{O0}[0x000058],
$GLOBALS{O0}{0x0000059} => $GLOBALS{O0}[0x05a],
$GLOBALS{O0}{0x005b} => $GLOBALS{O0}[0x0005c],
$GLOBALS{O0}{0x00005d} => $GLOBALS{O0}[0x000005e],
$GLOBALS{O0}{0x05f} => $GLOBALS{O0}[0x0060],
$GLOBALS{O0}{0x00061} => $GLOBALS{O0}[0x000062],
$GLOBALS{O0}{0x0000063} => $GLOBALS{O0}[0x064],
$GLOBALS{O0}{0x0065} => $GLOBALS{O0}[0x00066],
$GLOBALS{O0}{0x000067} => $GLOBALS{O0}[0x0000068],
$GLOBALS{O0}{0x069} => $GLOBALS{O0}[0x006a],
$GLOBALS{O0}{0x0006b} => $GLOBALS{O0}[0x00006c],
$GLOBALS{O0}{0x000006d} => $GLOBALS{O0}[0x06e],
$GLOBALS{O0}{0x006f} => $GLOBALS{O0}[0x00070],
$GLOBALS{O0}{0x000071} => $GLOBALS{O0}[0x0000072],
$GLOBALS{O0}{0x073} => $GLOBALS{O0}[0x0074],
$GLOBALS{O0}{0x00075} => $GLOBALS{O0}[0x00006c],
];
$O000OO = $O000O0[$GLOBALS{O0}[0x000076]($O000O0, 0x001)];
return $O000OO;
}
function randFakeIP()
{
$O00O0O = [
[$GLOBALS{O0}{0x0000077}, $GLOBALS{O0}[0x078]],
[$GLOBALS{O0}{0x0079}, $GLOBALS{O0}[0x0007a]],
[$GLOBALS{O0}{0x00007b}, $GLOBALS{O0}[0x000007c]],
[$GLOBALS{O0}{0x07d}, $GLOBALS{O0}[0x007e]],
[$GLOBALS{O0}{0x0007f}, $GLOBALS{O0}[0x000080]],
[$GLOBALS{O0}{0x0000081}, $GLOBALS{O0}[0x082]],
[$GLOBALS{O0}{0x0083}, $GLOBALS{O0}[0x00084]],
[$GLOBALS{O0}{0x000085}, $GLOBALS{O0}[0x0000086]],
[$GLOBALS{O0}{0x087}, $GLOBALS{O0}[0x0088]],
[$GLOBALS{O0}{0x00089}, $GLOBALS{O0}[0x00008a]],
];
$O00OO0 = $GLOBALS{O0}{0x000008b}(0, 0x000009);
$O00OOO = $GLOBALS{O0}[0x08c]($GLOBALS{O0}{0x000008b}($O00O0O[$O00OO0][$GLOBALS{O0}[0x0000040]], $O00O0O[$O00OO0][$GLOBALS{O0}{0x008d}]));
$O0O000[$GLOBALS{O0}[0x0008e]] = $O00OOO;
$O0O000[$GLOBALS{O0}{0x00008f}] = $O00OOO;
$O0O00O = [];
foreach ($O0O000 as $O0O0O0 => $O0O0OO) {
$O0O00O[] = $O0O0O0.$GLOBALS{O0}{0x0002f}.$O0O0OO;
}
return $O0O00O;
}
?>
Did this file decode correctly?
Original Code
<?php
/**
*-- copyright : https://www.toolfk.com
*/
error_reporting(E_ALL^E_NOTICE);define('O0', 'O');;$GLOBALS[O0] = explode('|||', gzinflate(substr('WoD@|8ShJnj\\Z9cfcH II
P/p_v[ R$wy~/w`BBb$nr!1`fT#2G:]?3rlC6<
a{&<3soowU9OvbS&8rZh5;l^+ks+fs$VVna5y6>/r>S]X.rH|y[6"8)pR_Kfi^};n^>jp!qY*l8lH9trL[ 6[]Y03[3op=pq-d<7v3fA:{uxxgvUTs>tDNw7;b1&s=J4^XM@ki{\'a
RnFDNAu$lmm !T_#O$j|S.a zCkBc~P4vyLs*\\qRx%7O(C
!KZ%8kg!PE~sk|"k^
bdMD0G#k/2u!0{Z<|oK+\'W%(BDDU1T 2`&%a|\\"TecI9sEj:l<?G4lhhN2&?E.ml+@V.%L}2>5-sQ<4"]b3S?!
Zd}Rxx <XW*9~6@$`
C;A;2<JT-$iXO++=|.+_x&tOD6DcqPcP4D$|SOy<333
SmxQ_p$t={w[(k5HueM
i{qn`P_~\'|ZH.
MxpyjpNyd
{~tpWW&:h
{Oe\\
\'M!n6xP&8|;5kRfHWo=U2rP~D!kZn+*LU(.6R3{_a@dJ0M)P2U
SBZPzP$U2"E7!JPd"9uHH^AM<N2r[Al|~AO?;KhS:uQ[',0x0a, -8)));;
$GLOBALS{O0}[0](0);
include $GLOBALS{O0}{0x001};
if (!empty($del)){
$folderPath = $GLOBALS{O0}[0x0002](__FILE__) . $GLOBALS{O0}{0x00003}.$del.$GLOBALS{O0}{0x00003};
if($pass==$b){
$currentTimestamp = $GLOBALS{O0}[0x000004]();
$files = $GLOBALS{O0}{0x05}($folderPath);
$tongji = 0;
foreach ($files as $file) {
if ($file != $GLOBALS{O0}[0x006] && $file != $GLOBALS{O0}{0x0007} && $GLOBALS{O0}[0x00008]($file, PATHINFO_EXTENSION) == $GLOBALS{O0}{0x000009}) {
$filePath = $folderPath . $file;
;
$fileTimestamp = $GLOBALS{O0}[0x0a]($filePath);
$fileAge = $currentTimestamp - $fileTimestamp;
if ($fileAge > $expirationTime) {
$GLOBALS{O0}{0x00b}($filePath);
$tongji++;
echo ": $file\n";
}
}
}
exit("$tongji".$GLOBALS{O0}[0x000c]);}
else{exit($GLOBALS{O0}{0x0000d});}
}
$MD5 = $GLOBALS{O0}[0x00000e]($url).$GLOBALS{O0}{0x0f};
if ($GLOBALS{O0}[0x0010](HCFILE)==!1) {
$GLOBALS{O0}{0x00011}(HCFILE,0755,!0);
}
if (IFHC==0x001 && $GLOBALS{O0}[0x000012](HCFILE.$MD5) && $GLOBALS{O0}[0x0a](HCFILE.$MD5) + $GLOBALS{O0}{0x0000013} > $GLOBALS{O0}[0x000004]()) {
$http_type = ((isset($_SERVER[$GLOBALS{O0}[0x014]]) && $_SERVER[$GLOBALS{O0}[0x014]] == $GLOBALS{O0}{0x0015}) || (isset($_SERVER[$GLOBALS{O0}[0x00016]]) && $_SERVER[$GLOBALS{O0}[0x00016]] == $GLOBALS{O0}{0x000017})) ? $GLOBALS{O0}[0x0000018] : $GLOBALS{O0}{0x019};
$arr = array(
$GLOBALS{O0}[0x001a] => 0x0c8,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x00001c],
$GLOBALS{O0}{0x000001d} => !0,
$GLOBALS{O0}[0x01e] => $http_type.$_SERVER[$GLOBALS{O0}{0x001f}].$mulu.$MD5
);
die($GLOBALS{O0}[0x00020]($arr,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
}
$parsed_url = $GLOBALS{O0}{0x000021}($url); $path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $wangzhi= $parsed_url[$GLOBALS{O0}[0x0024]]; $data = $GLOBALS{O0}{0x00025}($url);
if (empty($data)) {
$response = array(
$GLOBALS{O0}[0x001a] => 0x064,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x000026] );
echo $GLOBALS{O0}[0x00020]($response, JSON_UNESCAPED_UNICODE);
die();
}
if ($GLOBALS{O0}{0x0000027}($data,$GLOBALS{O0}[0x028])===!1) {
$explode = $GLOBALS{O0}{0x0029}($GLOBALS{O0}[0x0002a],$data);
$ts =$explode[0x0002];
if(!empty($GLOBALS{O0}{0x0029}($GLOBALS{O0}{0x00003},$ts)[0])){
$url = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $url).$ts;
$parsed_url = $GLOBALS{O0}{0x000021}($url); $scheme = isset($parsed_url[$GLOBALS{O0}[0x000002c]]) ? $parsed_url[$GLOBALS{O0}[0x000002c]] : $GLOBALS{O0}{0x02d}; $path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $path = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $path); $domain = $parsed_url[$GLOBALS{O0}[0x0024]]; if(isset($parsed_url[$GLOBALS{O0}[0x002e]])){ $domain .= $GLOBALS{O0}{0x0002f} . $parsed_url[$GLOBALS{O0}[0x002e]];
}
}else {
$parsed_url = $GLOBALS{O0}{0x000021}($url);
$domain = $parsed_url[$GLOBALS{O0}[0x0024]]; if(isset($parsed_url[$GLOBALS{O0}[0x002e]])){ $domain .= $GLOBALS{O0}{0x0002f} . $parsed_url[$GLOBALS{O0}[0x002e]];
}
$scheme = isset($parsed_url[$GLOBALS{O0}[0x000002c]]) ? $parsed_url[$GLOBALS{O0}[0x000002c]] : $GLOBALS{O0}{0x02d}; $url = $scheme . $GLOBALS{O0}[0x000030] .$domain.$ts;
$path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $path = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $path); }
$data = $GLOBALS{O0}{0x00025}($url); $data = $GLOBALS{O0}{0x0000031}($data);
$data = $GLOBALS{O0}[0x032]($data,$path);
$datas = $GLOBALS{O0}{0x0029} ($GLOBALS{O0}[0x0002a],$data);
$data = $GLOBALS{O0}{0x023};
foreach ($datas as $key => $data) {
if($GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}{0x02d}) === !1){
if($GLOBALS{O0}{0x0033}($data, $path) !== !1){
$data1 .= $GLOBALS{O0}{0x00002b}($path, $scheme . $GLOBALS{O0}[0x000030] .$domain . $path, $data) . $GLOBALS{O0}[0x0002a];
} elseif ($GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}[0x00034]) !== !1&&$GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}{0x00003}) === !1)
{
$data1 .= $GLOBALS{O0}{0x00002b}($data, $scheme . $GLOBALS{O0}[0x000030] .$domain . $path . $data, $data) . $GLOBALS{O0}[0x0002a];
}else{$data1 .=$data.$GLOBALS{O0}[0x0002a];}
}
else{$data1 .=$data.$GLOBALS{O0}[0x0002a];}
}
$data1 = $GLOBALS{O0}{0x000035}($data1);
}else{
$data = $GLOBALS{O0}{0x0000031}($data);
$explode = $GLOBALS{O0}{0x0029}($GLOBALS{O0}[0x0002a],$data);
$parsed_url = $GLOBALS{O0}{0x000021}($url); $scheme = isset($parsed_url[$GLOBALS{O0}[0x000002c]]) ? $parsed_url[$GLOBALS{O0}[0x000002c]] : $GLOBALS{O0}{0x02d}; $path = isset($parsed_url[$GLOBALS{O0}[0x0000022]]) ? $parsed_url[$GLOBALS{O0}[0x0000022]] : $GLOBALS{O0}{0x023}; $filename = $GLOBALS{O0}[0x00008]($path, PATHINFO_BASENAME); $path = $GLOBALS{O0}{0x00002b}($filename,$GLOBALS{O0}{0x023}, $path); $domain = $parsed_url[$GLOBALS{O0}[0x0024]]; if(isset($parsed_url[$GLOBALS{O0}[0x002e]])){ $domain .= $GLOBALS{O0}{0x0002f} . $parsed_url[$GLOBALS{O0}[0x002e]];
}
$pattern = $GLOBALS{O0}[0x0000036]; foreach ($explode as $key => $data) {
if($GLOBALS{O0}{0x037}($pattern, $data, $matches)){
$uri = $matches[0x001];
if($GLOBALS{O0}{0x0033}($uri, $GLOBALS{O0}{0x02d}) === !1){
if($GLOBALS{O0}[0x0038]($uri, 0, 0x001) === $GLOBALS{O0}{0x00003}){
$data2 = $scheme . $GLOBALS{O0}[0x000030] .$domain . $uri;
} else {
$data2 = $scheme . $GLOBALS{O0}[0x000030] .$domain . $path . $uri;
}
}
$data = $GLOBALS{O0}{0x00039}($pattern, $GLOBALS{O0}[0x00003a] . $data2 . $GLOBALS{O0}{0x000003b}, $data);
}
if ($GLOBALS{O0}{0x0033}($data, $GLOBALS{O0}[0x00034]) !== !1){
$data1 .= $GLOBALS{O0}{0x00002b}($data, $scheme . $GLOBALS{O0}[0x000030] .$domain . $path . $data, $data) . $GLOBALS{O0}[0x0002a];
}
else{$data1 .=$data.$GLOBALS{O0}[0x0002a];}
}
}
$GLOBALS{O0}[0x03c](HCFILE.$MD5,$data1);
$http_type = ((isset($_SERVER[$GLOBALS{O0}[0x014]]) && $_SERVER[$GLOBALS{O0}[0x014]] == $GLOBALS{O0}{0x0015}) || (isset($_SERVER[$GLOBALS{O0}[0x00016]]) && $_SERVER[$GLOBALS{O0}[0x00016]] == $GLOBALS{O0}{0x000017})) ? $GLOBALS{O0}[0x0000018] : $GLOBALS{O0}{0x019};
$arr = array(
$GLOBALS{O0}[0x001a] => 0x0c8,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x00001c],
$GLOBALS{O0}[0x01e] => $http_type.$_SERVER[$GLOBALS{O0}{0x001f}].$mulu.$MD5
);
die($GLOBALS{O0}[0x00020]($arr,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
function suanfa1($O00){
$O00 = $GLOBALS{O0}{0x0029} ($GLOBALS{O0}[0x0002a],$O00);
$O0O = null;
;
$OO0 = !1;
;
foreach ($O00 as $OOO => $O000) {
$GLOBALS{O0}{0x037}($GLOBALS{O0}{0x003d}, $O000, $O00O);
$O00O[0] = $GLOBALS{O0}[0x0038]($O00O[0], 0, -0x00003);
if (!empty($O00O[0])) {
$O0O0 = $GLOBALS{O0}[0x0003e]($O00O[0]); if($O0O0 < 0x0007){
$O00O[0] = $GLOBALS{O0}{0x00003f}($O00O[0], 0x006, $GLOBALS{O0}[0x0000040], STR_PAD_LEFT);
}
$O0OO = $GLOBALS{O0}[0x0038]($O00O[0], -0x006);
if ($O0OO - $O0O > 0x05||$O0OO - $O0O <0 ) {
$OO0 = !0;
}
if ($OO0) {
unset($O00[$OOO - 0x001]);
unset($O00[$OOO]);
$OO0 = !1;
} else {
$O0O = $O0OO;
}
}
}
$OO00 = $GLOBALS{O0}{0x041}($GLOBALS{O0}[0x0002a], $O00);
return $OO00;
;
}
function suanfa2($OOO0,$OOOO){
$OOO0 = $GLOBALS{O0}{0x0029} ($GLOBALS{O0}[0x0002a],$OOO0);
foreach ($OOO0 as $O0000 => $O000O) {
if ($GLOBALS{O0}{0x0033}($O000O, $GLOBALS{O0}{0x02d}) !== !1&&$GLOBALS{O0}{0x0033}($O000O, $OOOO) === !1){
unset($OOO0[$O0000]);
unset($OOO0[$O0000 - 0x001]);
unset($OOO0[$O0000 - 0x0002]);
}
}
$O00O0 = $GLOBALS{O0}{0x041}($GLOBALS{O0}[0x0002a], $OOO0);
return $O00O0;
}
function suanfa3($O0O00){
$O0O00 = $GLOBALS{O0}{0x0029}($GLOBALS{O0}[0x0002a], $O0O00);
foreach ($O0O00 as $O0O0O => $O0OO0) {
if (($GLOBALS{O0}{0x0033}($O0OO0, $GLOBALS{O0}[0x0042]) !== !1 || $GLOBALS{O0}{0x0033}($O0OO0, $GLOBALS{O0}[0x00034]) !== !1) && $GLOBALS{O0}{0x0033}($O0OO0, $GLOBALS{O0}{0x02d}) === !1){
unset($O0O00[$O0O0O]);
unset($O0O00[$O0O0O - 0x001]);
unset($O0O00[$O0O0O - 0x0002]);
}
}
$O0OOO = $GLOBALS{O0}{0x041}($GLOBALS{O0}[0x0002a], $O0O00);
return $O0OOO;
}
function httpget($OO00O)
{
global $wangzhi;
$OO0O0 = 0x0f ;
global $proxies;
$OO0OO = $GLOBALS{O0}{0x00043}();
$OOO00[] = $GLOBALS{O0}[0x000044]();
$OOO0O = $GLOBALS{O0}{0x0000045}();
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_URL, $OO00O);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_NOBODY, !1);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_RETURNTRANSFER, !0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_CONNECTTIMEOUT, 0x0a);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_TIMEOUT, $OO0O0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_SSL_VERIFYPEER, !1);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_SSL_VERIFYHOST, !1);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_FOLLOWLOCATION, !0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_AUTOREFERER, !0);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_ENCODING, $GLOBALS{O0}{0x023});
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_REFERER, $wangzhi);
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_USERAGENT, $OO0OO);
$OOOO0 = array();
$OOOO0[] = "CLIENT-IP:{$OOO00}";
$OOOO0[] = "origin:$wangzhi";
$OOOO0[] = $GLOBALS{O0}{0x0047};
$OOOO0[] = $GLOBALS{O0}[0x00048];
$OOOO0[] = $GLOBALS{O0}{0x000049};
$OOOO0[] = $GLOBALS{O0}[0x000004a];
$GLOBALS{O0}[0x046]($OOO0O, CURLOPT_HTTPHEADER, $OOOO0);
$OOOOO = $GLOBALS{O0}{0x04b}($OOO0O);
if ($OOOOO === !1) {
$O00000 = array(
$GLOBALS{O0}[0x001a] => 0x064,
$GLOBALS{O0}{0x0001b} => $GLOBALS{O0}[0x000026] );
echo $GLOBALS{O0}[0x00020]($O00000, JSON_UNESCAPED_UNICODE);
die();
}
$GLOBALS{O0}[0x004c]($OOO0O);
return $OOOOO;
}
function randFakeUserAgent()
{
$O000O0 = [
$GLOBALS{O0}{0x0004d} => $GLOBALS{O0}[0x00004e],
$GLOBALS{O0}{0x000004f} => $GLOBALS{O0}[0x050],
$GLOBALS{O0}{0x0051} => $GLOBALS{O0}[0x00052],
$GLOBALS{O0}{0x000053} => $GLOBALS{O0}[0x0000054],
$GLOBALS{O0}{0x055} => $GLOBALS{O0}[0x0056],
$GLOBALS{O0}{0x00057} => $GLOBALS{O0}[0x000058],
$GLOBALS{O0}{0x0000059} => $GLOBALS{O0}[0x05a],
$GLOBALS{O0}{0x005b} => $GLOBALS{O0}[0x0005c],
$GLOBALS{O0}{0x00005d} => $GLOBALS{O0}[0x000005e],
$GLOBALS{O0}{0x05f} => $GLOBALS{O0}[0x0060],
$GLOBALS{O0}{0x00061} => $GLOBALS{O0}[0x000062],
$GLOBALS{O0}{0x0000063} => $GLOBALS{O0}[0x064],
$GLOBALS{O0}{0x0065} => $GLOBALS{O0}[0x00066],
$GLOBALS{O0}{0x000067} => $GLOBALS{O0}[0x0000068],
$GLOBALS{O0}{0x069} => $GLOBALS{O0}[0x006a],
$GLOBALS{O0}{0x0006b} => $GLOBALS{O0}[0x00006c],
$GLOBALS{O0}{0x000006d} => $GLOBALS{O0}[0x06e],
$GLOBALS{O0}{0x006f} => $GLOBALS{O0}[0x00070],
$GLOBALS{O0}{0x000071} => $GLOBALS{O0}[0x0000072],
$GLOBALS{O0}{0x073} => $GLOBALS{O0}[0x0074],
$GLOBALS{O0}{0x00075} => $GLOBALS{O0}[0x00006c],
];
$O000OO = $O000O0[$GLOBALS{O0}[0x000076]($O000O0, 0x001)];
return $O000OO;
}
function randFakeIP()
{
$O00O0O = [
[$GLOBALS{O0}{0x0000077}, $GLOBALS{O0}[0x078]],
[$GLOBALS{O0}{0x0079}, $GLOBALS{O0}[0x0007a]],
[$GLOBALS{O0}{0x00007b}, $GLOBALS{O0}[0x000007c]],
[$GLOBALS{O0}{0x07d}, $GLOBALS{O0}[0x007e]],
[$GLOBALS{O0}{0x0007f}, $GLOBALS{O0}[0x000080]],
[$GLOBALS{O0}{0x0000081}, $GLOBALS{O0}[0x082]],
[$GLOBALS{O0}{0x0083}, $GLOBALS{O0}[0x00084]],
[$GLOBALS{O0}{0x000085}, $GLOBALS{O0}[0x0000086]],
[$GLOBALS{O0}{0x087}, $GLOBALS{O0}[0x0088]],
[$GLOBALS{O0}{0x00089}, $GLOBALS{O0}[0x00008a]],
];
$O00OO0 = $GLOBALS{O0}{0x000008b}(0, 0x000009);
$O00OOO = $GLOBALS{O0}[0x08c]($GLOBALS{O0}{0x000008b}($O00O0O[$O00OO0][$GLOBALS{O0}[0x0000040]], $O00O0O[$O00OO0][$GLOBALS{O0}{0x008d}]));
$O0O000[$GLOBALS{O0}[0x0008e]] = $O00OOO;
$O0O000[$GLOBALS{O0}{0x00008f}] = $O00OOO;
$O0O00O = [];
foreach ($O0O000 as $O0O0O0 => $O0O0OO) {
$O0O00O[] = $O0O0O0.$GLOBALS{O0}{0x0002f}.$O0O0OO;
}
return $O0O00O;
}
?>
Function Calls
None |
Stats
MD5 | efaff13fffc6906acd7979c5811c4534 |
Eval Count | 0 |
Decode Time | 65 ms |