PDA

View Full Version : Testing with some simple encode script



Wanna
10-14-2011, 01:50 PM
Hello,

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:



<?php
$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