Is threre a way to encode something like this :
eval("echo 'String';");
with base64_encode, and then to call base64_decode and get the result String without any echo or additional eval functions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are asking for
base64_decodeto execute arbitrary code? That doesn’t work. It operates on data, not code, and so whatever you decode has to be a data string. Can’t you just encode'String'directly? Otherwise, you’ll have to runevalagain to turn data into code:eval(base64_decode($mysterydata));.