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 (!(session_status() === PHP_SESSION_NONE)) { include "\x64\142\x2e\160\150\160..
Decoded Output download
<?php
if (!(session_status() === PHP_SESSION_NONE)) {
include "db.php";
if (isset($_SESSION["email"])) {
$dbFilePath = "db.php";
include $dbFilePath;
$tokenFilePath = "token.json";
file_put_contents($tokenFilePath, '');
$client_id = '';
$client_secret = '';
$dbContent = "<?php
";
$dbContent .= "$userEmail = '{$userEmail}';\xa";
$dbContent .= "$userPassword = '{$userPassword}';
";
$dbContent .= "$username = '{$username}';
";
$dbContent .= "$userLicenseKey = '{$userLicenseKey}';
";
$dbContent .= "$WhatsApp = '{$WhatsApp}';
";
$dbContent .= "$client_id = '';\xa";
$dbContent .= "$client_secret = '';
";
$dbContent .= "$drive = 'unchecked';\xa";
$dbContent .= "?>";
file_put_contents($dbFilePath, $dbContent);
header("Location: destinations.php");
} else {
header("Location: login.php");
}
} else {
session_start();
include "db.php";
if (isset($_SESSION["email"])) {
$dbFilePath = "db.php";
include $dbFilePath;
$tokenFilePath = "token.json";
file_put_contents($tokenFilePath, '');
$client_id = '';
$client_secret = '';
$dbContent = "<?php
";
$dbContent .= "$userEmail = '{$userEmail}';\xa";
$dbContent .= "$userPassword = '{$userPassword}';
";
$dbContent .= "$username = '{$username}';
";
$dbContent .= "$userLicenseKey = '{$userLicenseKey}';
";
$dbContent .= "$WhatsApp = '{$WhatsApp}';
";
$dbContent .= "$client_id = '';\xa";
$dbContent .= "$client_secret = '';
";
$dbContent .= "$drive = 'unchecked';\xa";
$dbContent .= "?>";
file_put_contents($dbFilePath, $dbContent);
header("Location: destinations.php");
} else {
header("Location: login.php");
}
} ?>
Did this file decode correctly?
Original Code
<?php
if (!(session_status() === PHP_SESSION_NONE)) {
include "\x64\142\x2e\160\150\160";
if (isset($_SESSION["\x65\x6d\x61\151\154"])) {
$dbFilePath = "\144\x62\x2e\160\x68\x70";
include $dbFilePath;
$tokenFilePath = "\x74\x6f\153\145\156\x2e\x6a\x73\157\156";
file_put_contents($tokenFilePath, '');
$client_id = '';
$client_secret = '';
$dbContent = "\74\x3f\160\x68\x70\12";
$dbContent .= "\x24\x75\x73\145\162\105\x6d\x61\x69\x6c\40\x3d\40\47{$userEmail}\47\73\xa";
$dbContent .= "\44\x75\163\145\162\120\141\163\x73\x77\157\x72\144\40\75\40\x27{$userPassword}\47\x3b\12";
$dbContent .= "\44\x75\163\145\162\156\x61\155\x65\x20\75\x20\x27{$username}\x27\x3b\12";
$dbContent .= "\x24\165\163\145\162\x4c\x69\x63\145\x6e\163\x65\113\x65\x79\x20\x3d\40\47{$userLicenseKey}\x27\73\12";
$dbContent .= "\44\127\150\141\164\x73\x41\x70\160\40\x3d\40\47{$WhatsApp}\x27\73\12";
$dbContent .= "\x24\143\x6c\151\x65\156\164\x5f\151\144\40\x3d\40\47\47\73\xa";
$dbContent .= "\44\143\154\151\x65\x6e\164\x5f\x73\x65\x63\162\x65\x74\40\x3d\x20\x27\47\x3b\12";
$dbContent .= "\x24\144\x72\x69\166\145\40\75\x20\47\165\156\143\x68\x65\x63\x6b\x65\144\x27\x3b\xa";
$dbContent .= "\77\x3e";
file_put_contents($dbFilePath, $dbContent);
header("\114\x6f\x63\141\x74\151\157\x6e\x3a\x20\x64\145\x73\x74\151\156\x61\164\151\x6f\x6e\x73\x2e\x70\x68\x70");
} else {
header("Location: login.php");
}
} else {
session_start();
include "\x64\142\x2e\160\150\160";
if (isset($_SESSION["\x65\x6d\x61\151\154"])) {
$dbFilePath = "\144\x62\x2e\160\x68\x70";
include $dbFilePath;
$tokenFilePath = "\x74\x6f\153\145\156\x2e\x6a\x73\157\156";
file_put_contents($tokenFilePath, '');
$client_id = '';
$client_secret = '';
$dbContent = "\74\x3f\160\x68\x70\12";
$dbContent .= "\x24\x75\x73\145\162\105\x6d\x61\x69\x6c\40\x3d\40\47{$userEmail}\47\73\xa";
$dbContent .= "\44\x75\163\145\162\120\141\163\x73\x77\157\x72\144\40\75\40\x27{$userPassword}\47\x3b\12";
$dbContent .= "\44\x75\163\145\162\156\x61\155\x65\x20\75\x20\x27{$username}\x27\x3b\12";
$dbContent .= "\x24\165\163\145\162\x4c\x69\x63\145\x6e\163\x65\113\x65\x79\x20\x3d\40\47{$userLicenseKey}\x27\73\12";
$dbContent .= "\44\127\150\141\164\x73\x41\x70\160\40\x3d\40\47{$WhatsApp}\x27\73\12";
$dbContent .= "\x24\143\x6c\151\x65\156\164\x5f\151\144\40\x3d\40\47\47\73\xa";
$dbContent .= "\44\143\154\151\x65\x6e\164\x5f\x73\x65\x63\162\x65\x74\40\x3d\x20\x27\47\x3b\12";
$dbContent .= "\x24\144\x72\x69\166\145\40\75\x20\47\165\156\143\x68\x65\x63\x6b\x65\144\x27\x3b\xa";
$dbContent .= "\77\x3e";
file_put_contents($dbFilePath, $dbContent);
header("\114\x6f\x63\141\x74\151\157\x6e\x3a\x20\x64\145\x73\x74\151\156\x61\164\151\x6f\x6e\x73\x2e\x70\x68\x70");
} else {
header("Location: login.php");
}
}
Function Calls
None |
Stats
MD5 | 637d1890598ecb436253d5fe6f72189c |
Eval Count | 0 |
Decode Time | 51 ms |