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 ($_POST && isset($_POST["\154\143\163\143\x73"])) { $valid = strip_tags(trim($_P..
Decoded Output download
<?php if ($_POST && isset($_POST["lcscs"])) { $valid = strip_tags(trim($_POST["lcscs"])); $db_host = strip_tags(trim($_POST["host"])); $db_user = strip_tags(trim($_POST["user"])); $db_pass = strip_tags(trim($_POST["pass"])); $db_name = strip_tags(trim($_POST["name"])); $db_url = strip_tags(trim($_POST["baseurl"])); $ev_user = strip_tags(trim($_POST["evuser"])); $ev_pcode = strip_tags(trim($_POST["evpcode"])); if (!empty($db_host)) { $myfile = fopen("../../.env", "w") or die("Unable to open file!"); $txt = ''; fwrite($myfile, $txt); $txt = "
APP_NAME=WillAiBot
APP_ENV=local\xa APP_KEY=base64:+KBS6U+Fem6MfyXfRUjSx5pWNaWq0cuKERFopd7dLJw=
APP_DEBUG=true\xa APP_URL=" . ${$db_url} . "
APP_TIMEZONE=Asia/Calcutta\xa
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null\xa LOG_LEVEL=debug\xa \xa DB_CONNECTION=mysql
DB_PORT=3306\xa
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local\xa QUEUE_CONNECTION=sync\xa SESSION_DRIVER=file\xa SESSION_LIFETIME=120
\xa MEMCACHED_HOST=127.0.0.1\xa
REDIS_HOST=127.0.0.1\xa REDIS_PASSWORD=null\xa REDIS_PORT=6379\xa
MAIL_MAILER=smtp\xa MAIL_HOST=mail.willdev.in\xa [email protected]
MAIL_PASSWORD=12345678\xa MAIL_ENCRYPTION=ssl
MAIL_PORT=465
[email protected]
MAIL_FROM_NAME=WillAiBot
PUSHER_APP_ID=
PUSHER_APP_KEY=\xa PUSHER_APP_SECRET=\xa PUSHER_APP_CLUSTER=mt1\xa
MIX_PUSHER_APP_KEY=\xa MIX_PUSHER_APP_CLUSTER=
\xa CONFIG_ENABLE_LOGIN_GOOGLE=\xa GOOGLE_API_KEY=willdev-product-\xa GOOGLE_API_SECRET=\xa GOOGLE_REDIRECT=
\xa \xa ENVATO_USERNAME=" . $ev_user . "\xa ENVATO_CODE=" . $ev_pcode . "
API_KEY=willdev-product-\xa
DB_HOST=" . $db_host . "\xa DB_DATABASE=" . $db_name . "\xa DB_USERNAME=" . $db_user . "\xa DB_PASSWORD=.{$db_pass}."; fwrite($myfile, $txt); fclose($myfile); $con = @mysqli_connect($db_host, $db_user, $db_pass, $db_name); mysqli_query($con, "SET NAMES 'utf8'"); if (mysqli_connect_errno()) { ?>
Did this file decode correctly?
Original Code
<?php if ($_POST && isset($_POST["\154\143\163\143\x73"])) { $valid = strip_tags(trim($_POST["\x6c\x63\163\143\x73"])); $db_host = strip_tags(trim($_POST["\x68\157\163\x74"])); $db_user = strip_tags(trim($_POST["\x75\x73\145\162"])); $db_pass = strip_tags(trim($_POST["\x70\x61\163\163"])); $db_name = strip_tags(trim($_POST["\156\141\155\x65"])); $db_url = strip_tags(trim($_POST["\x62\x61\163\145\165\162\x6c"])); $ev_user = strip_tags(trim($_POST["\x65\166\x75\x73\145\x72"])); $ev_pcode = strip_tags(trim($_POST["\145\166\x70\143\157\144\145"])); if (!empty($db_host)) { $myfile = fopen("\56\x2e\x2f\x2e\x2e\57\56\x65\156\166", "\167") or die("\125\x6e\141\x62\154\x65\40\x74\x6f\x20\x6f\x70\x65\x6e\40\x66\151\x6c\145\x21"); $txt = ''; fwrite($myfile, $txt); $txt = "\12\x20\40\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\101\120\120\x5f\x4e\x41\x4d\105\x3d\x57\x69\154\154\101\151\x42\x6f\x74\12\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\40\40\40\x20\x20\40\x41\120\120\137\x45\x4e\126\75\x6c\x6f\143\141\154\xa\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\x41\x50\120\x5f\113\105\131\x3d\x62\x61\163\x65\x36\x34\x3a\x2b\113\102\x53\x36\x55\53\106\145\155\x36\x4d\x66\x79\x58\x66\x52\x55\x6a\x53\170\65\x70\x57\x4e\x61\127\x71\60\143\165\x4b\x45\122\x46\x6f\x70\144\67\x64\114\x4a\167\x3d\12\x20\40\x20\x20\x20\40\40\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\101\120\120\137\104\x45\102\x55\x47\75\x74\162\165\x65\xa\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x41\x50\120\x5f\125\x52\114\75" . ${$db_url} . "\12\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\40\x20\40\x20\x41\x50\120\x5f\124\111\x4d\105\x5a\117\116\x45\x3d\101\163\x69\141\x2f\x43\141\x6c\143\x75\164\x74\x61\xa\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\40\x20\40\40\x20\12\x20\40\40\40\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x4c\x4f\x47\137\103\110\101\x4e\116\105\114\75\x73\164\141\143\153\12\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x4c\x4f\107\137\x44\x45\x50\x52\105\x43\101\x54\x49\117\116\123\x5f\103\110\101\x4e\x4e\x45\114\x3d\x6e\165\x6c\x6c\xa\x20\x20\40\40\x20\x20\x20\40\x20\40\40\40\40\40\40\40\x20\40\40\40\x20\40\x4c\117\107\137\114\105\x56\105\114\75\144\145\142\x75\x67\xa\40\x20\40\40\x20\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\40\xa\x20\x20\40\x20\x20\40\40\40\40\40\40\40\40\40\x20\x20\40\40\x20\40\40\x20\x44\x42\x5f\x43\x4f\x4e\x4e\105\x43\x54\x49\117\x4e\75\155\x79\163\x71\154\12\x20\40\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\x20\40\x20\40\x44\102\x5f\120\117\x52\x54\75\x33\x33\x30\66\xa\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\40\12\40\40\x20\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\x20\102\x52\x4f\x41\x44\103\101\123\124\x5f\104\122\111\x56\x45\x52\75\154\157\147\12\x20\40\40\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\40\x20\40\x20\x20\103\x41\x43\x48\x45\x5f\104\x52\x49\x56\x45\122\x3d\x66\x69\x6c\145\12\40\x20\40\x20\40\x20\40\x20\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\106\x49\x4c\x45\123\131\123\124\105\115\x5f\104\x49\123\x4b\75\154\157\143\x61\x6c\xa\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\x20\40\40\40\x20\x20\40\x20\x20\x20\121\x55\105\125\x45\x5f\x43\x4f\x4e\x4e\x45\x43\124\111\x4f\x4e\x3d\x73\171\x6e\x63\xa\40\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\x20\123\x45\x53\123\x49\x4f\116\137\x44\122\111\126\x45\x52\x3d\146\x69\x6c\145\xa\x20\40\x20\40\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\40\x20\123\x45\x53\x53\x49\x4f\x4e\x5f\114\111\106\105\124\111\115\105\x3d\x31\x32\60\12\x20\40\x20\40\40\40\40\x20\x20\40\40\x20\40\40\40\40\40\40\x20\40\40\x20\xa\40\40\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\40\40\40\x4d\x45\115\x43\101\x43\110\105\x44\137\110\117\123\x54\75\x31\62\x37\x2e\x30\56\x30\x2e\61\xa\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\12\x20\40\40\40\x20\x20\40\40\x20\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\122\x45\x44\x49\123\x5f\110\x4f\x53\x54\75\61\x32\x37\x2e\x30\x2e\x30\56\61\xa\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\40\x52\x45\x44\111\123\137\x50\101\123\x53\x57\x4f\x52\104\75\x6e\x75\154\x6c\xa\x20\40\40\40\40\40\x20\40\40\x20\40\40\40\40\x20\40\x20\40\x20\x20\40\x20\x52\x45\x44\x49\x53\x5f\x50\117\x52\x54\x3d\x36\x33\67\71\xa\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\40\x20\40\12\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\115\x41\x49\114\x5f\115\101\111\114\x45\x52\x3d\163\155\x74\x70\xa\x20\40\40\x20\40\x20\40\40\40\x20\x20\40\40\x20\40\40\40\40\40\x20\x20\40\x4d\x41\x49\x4c\137\x48\117\123\124\x3d\155\x61\151\x6c\x2e\x77\x69\154\154\x64\x65\166\56\151\156\xa\40\40\x20\40\x20\x20\40\x20\40\40\40\40\40\40\40\x20\x20\x20\40\x20\40\x20\x4d\x41\x49\114\137\125\123\105\x52\116\x41\x4d\105\75\x68\x65\x6c\x70\x40\167\x69\154\x6c\x64\x65\166\x2e\151\x6e\12\x20\x20\x20\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\x20\115\x41\x49\x4c\x5f\120\x41\x53\123\x57\117\122\104\75\61\62\x33\64\x35\x36\x37\x38\xa\x20\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\115\x41\111\x4c\x5f\x45\116\x43\x52\131\x50\124\x49\x4f\116\x3d\x73\x73\154\12\x20\x20\40\x20\40\x20\40\40\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\x4d\x41\111\114\137\x50\x4f\x52\x54\75\64\x36\65\12\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x4d\101\111\114\x5f\106\x52\x4f\115\x5f\101\x44\104\x52\105\x53\123\75\150\x65\x6c\x70\100\x77\x69\x6c\154\144\x65\166\x2e\151\x6e\12\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\40\115\x41\111\x4c\x5f\106\122\x4f\x4d\137\x4e\101\x4d\105\x3d\x57\x69\154\x6c\101\151\102\x6f\164\12\40\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\12\x20\x20\40\40\x20\40\40\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\40\120\125\x53\110\105\122\137\101\x50\x50\137\111\x44\75\12\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\40\x50\x55\123\x48\105\x52\x5f\101\x50\x50\x5f\x4b\x45\x59\x3d\xa\40\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\40\40\40\x20\40\x20\40\40\40\120\x55\x53\110\x45\x52\137\101\x50\120\137\123\x45\103\122\105\x54\x3d\xa\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\40\40\120\125\x53\110\x45\122\x5f\x41\120\120\137\103\114\125\x53\x54\105\122\x3d\155\x74\x31\xa\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\40\12\40\40\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\40\40\x20\40\x20\x20\115\x49\x58\137\x50\125\x53\110\x45\x52\137\101\x50\120\137\113\105\131\75\xa\40\40\40\40\x20\40\40\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\x20\40\115\111\x58\x5f\x50\125\x53\x48\x45\x52\137\101\120\120\x5f\x43\x4c\x55\x53\124\105\x52\x3d\12\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\xa\x20\40\40\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x43\117\116\106\x49\x47\x5f\x45\x4e\101\102\x4c\105\x5f\114\117\107\111\116\137\x47\x4f\117\x47\x4c\105\75\xa\40\x20\x20\40\40\x20\40\40\x20\x20\40\40\40\40\40\x20\x20\40\40\40\40\x20\107\117\117\x47\x4c\105\137\101\120\x49\x5f\113\105\x59\75\x77\x69\154\154\x64\145\x76\55\x70\162\157\x64\x75\x63\x74\x2d\xa\40\x20\40\x20\40\40\x20\x20\x20\40\x20\40\x20\40\x20\40\40\40\x20\x20\x20\40\x47\117\x4f\x47\114\105\x5f\x41\x50\x49\x5f\x53\x45\x43\122\105\x54\x3d\xa\x20\40\x20\40\x20\40\x20\40\40\40\40\40\40\40\x20\x20\40\40\x20\x20\x20\40\x47\x4f\x4f\107\x4c\x45\137\x52\x45\x44\111\122\x45\x43\x54\75\12\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\40\40\40\x20\40\40\40\x20\x20\40\x20\x20\xa\40\40\40\x20\x20\40\40\40\x20\40\40\x20\40\40\x20\x20\x20\40\x20\40\40\40\xa\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\40\x20\x20\40\40\x45\x4e\x56\101\x54\x4f\x5f\125\x53\x45\122\116\101\115\105\x3d" . $ev_user . "\xa\x20\40\40\x20\40\40\x20\40\x20\40\40\40\x20\40\40\40\40\40\x20\40\x20\x20\105\x4e\x56\101\124\x4f\137\103\x4f\x44\105\75" . $ev_pcode . "\12\40\40\40\40\40\40\x20\40\x20\40\40\x20\40\40\40\40\40\40\x20\40\x20\40\x41\120\111\x5f\x4b\x45\131\x3d\167\x69\154\x6c\x64\145\x76\55\x70\x72\157\x64\x75\x63\164\x2d\xa\x20\x20\40\x20\x20\40\40\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\12\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\40\x20\40\40\x20\40\40\104\102\137\x48\x4f\123\x54\x3d" . $db_host . "\xa\40\x20\40\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\x44\x42\x5f\x44\x41\124\101\102\101\123\x45\75" . $db_name . "\xa\40\40\x20\40\x20\40\40\x20\40\40\40\40\40\x20\40\x20\x20\40\40\x20\40\40\104\102\137\125\x53\105\122\x4e\x41\115\x45\75" . $db_user . "\xa\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\x44\102\x5f\x50\101\x53\123\127\117\x52\x44\75\x2e{$db_pass}\x2e"; fwrite($myfile, $txt); fclose($myfile); $con = @mysqli_connect($db_host, $db_user, $db_pass, $db_name); mysqli_query($con, "\x53\x45\x54\40\x4e\x41\x4d\x45\x53\40\x27\x75\x74\146\70\x27"); if (mysqli_connect_errno()) { ?>
Function Calls
None |
Stats
MD5 | 12de0bf5d28bce7bf4b72dde1299e13a |
Eval Count | 0 |
Decode Time | 69 ms |