View Full Version : Testing with some simple encode script

Oct 14th, 2011, 02:50 PM

Last time i spotted a few encoded scripts and i tried to create one myself.
But when i run this script it says:

Fatal error: Call to undefined function eval() in C:\xampp\htdocs\encoded_code.php on line 4

(But i'm sure this function exists)

Here is my code:

$w=base64_decode("YmFzZTY0X2RlY29kZQ=="); // return: base64_decode
$ww = $w("ZXZhbA=="); // return eval
$ww($w("ZWNobyAidGVzdCI7")); // de encoded string is: echo "test";

When i change $ww in the last rule to eval it works how it should work