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 $nWSQC5Lh78w6="\154\157\x63\x61\x6c\150\157\163\164";$nWSQC5Lh7bw6="\x75\163\145\162..

Decoded Output download

<?php $nWSQC5Lh78w6="localhost";$nWSQC5Lh7bw6="username";$nWSQC5Lh78Z6="password";$RWSQC5Lh78w6="database"; $nWOQC5Lh78w6=new mysqli($nWSQC5Lh78w6,$nWSQC5Lh7bw6,$nWSQC5Lh78Z6,$RWSQC5Lh78w6);if($nWOQC5Lh78w6->connect_error){ die("Connection failed: ".$nWOQC5Lh78w6->connect_error);} $nWSQC5Lh7856="SELECT key FROM Users WHERE IP ="'.$_SERVER['REMOTE_ADDR'].'"";$npSQC5Lh78Z6=$nWOQC5Lh78w6->query($nWSQC5Lh7856); if($npSQC5Lh78Z6->num_rows>0){ while($nWSQC5LhC8w6=$npSQC5Lh78Z6->fetch_assoc()){ if($nWSQC5LhC8w6["key"]==$_GET["key"]){ echo "key is valid";}else{ echo "key is invalid";}}}else{ echo "no database entry";}$nWOQC5Lh78w6->close();?>

Did this file decode correctly?

Original Code

<?php $nWSQC5Lh78w6="\154\157\x63\x61\x6c\150\157\163\164";$nWSQC5Lh7bw6="\x75\163\145\162\156\141\x6d\x65";$nWSQC5Lh78Z6="\160\141\163\163\167\157\162\x64";$RWSQC5Lh78w6="\144\141\x74\x61\142\x61\163\145"; $nWOQC5Lh78w6=new mysqli($nWSQC5Lh78w6,$nWSQC5Lh7bw6,$nWSQC5Lh78Z6,$RWSQC5Lh78w6);if($nWOQC5Lh78w6->connect_error){ die("\103\x6f\156\156\145\x63\x74\x69\x6f\x6e\40\146\x61\x69\154\x65\144\72\40".$nWOQC5Lh78w6->connect_error);} $nWSQC5Lh7856="\123\105\x4c\x45\103\x54\x20\x6b\145\x79\x20\x46\x52\117\x4d\x20\x55\163\x65\x72\163\40\127\110\x45\x52\x45\40\x49\120\x20\x3d\42\134\170\62\x37\134\170\62\145\x5c\64\x34\134\61\x33\x37\134\170\65\x33\134\x31\x30\65\134\61\x32\x32\x5c\170\x35\x36\134\170\64\65\134\61\62\62\134\170\65\142\134\x34\67\x5c\x31\x32\62\134\x78\64\65\x5c\x78\64\x64\134\170\x34\x66\x5c\x78\65\x34\x5c\61\x30\65\134\61\63\x37\x5c\x78\64\61\x5c\x31\x30\x34\134\x78\64\64\x5c\170\65\x32\x5c\x78\x32\67\x5c\170\65\x64\134\170\x32\x65\134\x78\x32\67\x22";$npSQC5Lh78Z6=$nWOQC5Lh78w6->query($nWSQC5Lh7856); if($npSQC5Lh78Z6->num_rows>0){ while($nWSQC5LhC8w6=$npSQC5Lh78Z6->fetch_assoc()){ if($nWSQC5LhC8w6["\x6b\145\171"]==$_GET["\x6b\x65\171"]){ echo "\x6b\x65\x79\x20\x69\x73\40\166\x61\x6c\151\x64";}else{ echo "\153\x65\171\x20\151\163\x20\151\x6e\166\141\154\x69\x64";}}}else{ echo "\156\x6f\40\144\x61\x74\141\x62\x61\163\x65\40\145\156\164\x72\171";}$nWOQC5Lh78w6->close();?>

Function Calls

None

Variables

$RWSQC5Lh78w6 database
$nWSQC5Lh78Z6 password
$nWSQC5Lh78w6 localhost
$nWSQC5Lh7bw6 username

Stats

MD5 0262bd7f21af9f54d79bb16b6807ce61
Eval Count 0
Decode Time 146 ms