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 /*---------------------------------------------------------\ | aEWD..
Decoded Output download
<?php
/*---------------------------------------------------------\
| aEWDMU SCRIPT |
|----------------------------------------------------------|
| Copyright 2009, EWD Studio |
|----------------------------------------------------------|
| http://www.ewd-studio.net |
\---------------------------------------------------------*/
session_start();
require('requ.php');
require('include/internal.php');
require('include/config.php');
if (logged()) {
$user_login = $_SESSION['member'];
$q = stripslashes($_GET["q"]);
echo "<script>document.getElementById(\"error\").style.display='none';</script>";
if ($q == "Chose Character") {
echo '<div id="txtPoint"></div>';
} else {
$class = array(0 => 'Dark Wizard', 1 => 'Soul Master', 2 => 'Grand Master', 16 => 'Dark Knight', 17 => 'Blade Knight', 18 => 'Blade Master', 32 => 'Elf', 33 => 'Muse Elf', 34 => 'High Elf', 48 => 'Magic Gladiator', 64 => 'DarkLord', 66 => 'Lord Emperor', 50 => 'Duel Master', 80 => 'Summoner', 81 => 'Bloody Summ', 82 => 'Dim Summoner');
$sql = "SELECT Name, Class, Resets, GReset, SCFMasterLevel,SCFMasterPoints FROM Character WHERE accountid='$user_login' and Name = '$q'";
$result = mssql_query($sql);
echo "<br><div id=\"error\"></div><br><form name=\"chk\" id=\"chk\">";
echo "<table align='center' width='480'>
<tr>
<th width='100'>Name</th>
<th width='130'>Class</th>
<th width='20'>RR</th>
<th width='20'>GR</th>
<th width='20'>Master Level</th>
<th width='20'>Master Points</th>
<th width='140'>Amount</th>
<th width='70'>BUY ?</th>
</tr>";
while ($row = mssql_fetch_array($result)) {
echo "
<tr>
<td>" . $row['Name'] . "</td>
<td>" . $class[$row['Class']] . "</td>
<td>" . $row['Resets'] . "</td>
<td>" . $row['GReset'] . "</td>
<td>" . $row['SCFMasterLevel'] . "</td>
<td>" . $row['SCFMasterPoints'] . "</td>
<td>
<input type=\"hidden\" name=\"sname\" id=\"sname\" value=\"" . $row['Name'] . "\" />
<input type=\"hidden\" name=\"kla\" id=\"kla\" value=\"" . $row['Class'] . "\" />
<select name=\"mpoint\" id=\"mpoint\">
<option value=\"1\">1 Master Point</option>
<option value=\"10\">10 Master Points</option>
<option value=\"25\">25 Master Points</option>
<option value=\"50\">50 Master Points</option>
<option value=\"100\">100 Master Points</option>
</select>
</td>
<td><input type=\"button\" value=\"Buy\" class=\"buttons\" name=\"buympoint\" id=\"buympoint\" onclick=\"new Ajax.Updater('error', 'buympoints.php', {method: 'post', asynchronous:true, parameters:Form.serialize(document.chk)});\" />
</td>
</tr>";
}
echo "</table></form>";
}
} else {
echo "Your session expired, please login.";
}
?>
Did this file decode correctly?
Original Code
<?php
/*---------------------------------------------------------\
| aEWDMU SCRIPT |
|----------------------------------------------------------|
| Copyright 2009, EWD Studio |
|----------------------------------------------------------|
| http://www.ewd-studio.net |
\---------------------------------------------------------*/
session_start();
require('requ.php');
require('include/internal.php');
require('include/config.php');
if (logged()) {
$user_login = $_SESSION['member'];
$q = stripslashes($_GET["q"]);
echo "\074\x73c\x72i\160t\076\x64\157c\x75\155\145\x6e\x74\x2e\147e\x74\105\x6ce\x6d\x65\x6e\x74B\171Id\050\"\x65r\x72\157r\")\056st\x79\154e\056\x64\151\x73\x70\x6c\141\171\x3d'no\156\145'\073\x3c\057\163c\162\151p\x74\076";
if ($q == "\x43\150os\x65\x20C\x68\141\x72a\x63\x74e\162") {
echo '<div id="txtPoint"></div>';
} else {
$class = array(0 => 'Dark Wizard', 1 => 'Soul Master', 2 => 'Grand Master', 16 => 'Dark Knight', 17 => 'Blade Knight', 18 => 'Blade Master', 32 => 'Elf', 33 => 'Muse Elf', 34 => 'High Elf', 48 => 'Magic Gladiator', 64 => 'DarkLord', 66 => 'Lord Emperor', 50 => 'Duel Master', 80 => 'Summoner', 81 => 'Bloody Summ', 82 => 'Dim Summoner');
$sql = "\x53E\x4c\105\x43\x54\040\x4ea\155e\054 \103\x6cass\x2c\x20\122\145\163\x65\x74s, GR\x65\163\145\164\x2c \123\x43\106\x4d\x61\x73\x74\145\x72\x4c\145\166\x65l,\123\103FM\x61\x73\164er\120\x6fi\156\x74\x73\040\106\122\x4fM\x20\103\150ar\x61\x63\x74\145r\040\x57\x48ER\105\040\x61\143\143\157u\x6e\164\x69\x64='$user_login'\040\x61n\x64 \116am\145\x20= '$q'";
$result = mssql_query($sql);
echo "<b\162\076\074\144iv \151d\075\"\145\x72\162o\x72\"><\057\x64i\x76\076\x3c\x62r><f\x6f\162m\040n\x61\x6de\075\"\143\x68\153\"\040\151\x64\075\"\143\150\x6b\"\076";
echo "\x3ct\141b\154\145 \141\154i\x67\x6e\x3d'\143\145\156t\145\162'\040w\x69\144\164h='4\x380'>\x0d\x0a\074\164\162\076\015\x0a\x3c\x74\150 \x77\x69\x64th\x3d'1\x300'\x3e\116a\155e\074/t\x68\076
\074\x74\x68\040wid\x74h='\061\x330'\076C\x6c\x61\x73\x73</th\x3e\x0d
<\x74\150\x20wid\164\x68\x3d'\x32\060'\076R\x52\074\x2f\x74h\x3e\x0d\x0a\x3c\x74h\040w\x69dt\150\x3d'\062\060'\x3e\x47\122\074/\x74h\076\x0d
\x3c\164\150\x20wi\x64\x74\x68\075'2\x30'>\115\x61s\164e\162 \114e\166e\154\074/t\150>\x0d
\x3c\x74h\040\x77\151\144\x74\150\x3d'2\060'\076\x4das\x74e\x72\040Po\x69\156\x74\163\074/\x74\150\x3e
\x0a\074\164\150\040\x77\151\x64t\x68\x3d'\061\064\060'\x3e\101\155ou\x6e\164</\164h\076\015\012\074t\x68\x20\x77\x69dt\150\075'\x37\x30'\076B\125\x59\x20\x3f<\057t\x68\076\x0d\x0a\x3c/\164r\076";
while ($row = mssql_fetch_array($result)) {
echo "\015\x0a\074t\162>
\012\074\x74d\076" . $row['Name'] . "\x3c\x2f\164\144\x3e
\012\x3c\164d\x3e" . $class[$row['Class']] . "<\057\164\x64\x3e\015\012\x3c\x74\144\076" . $row['Resets'] . "\x3c\057\164d\x3e\x0d\x0a\074\164\x64>" . $row['GReset'] . "\074/\x74\144\076\x0d\x0a\x3c\x74d\076" . $row['SCFMasterLevel'] . "</\x74\x64\076\015
<\164\144>" . $row['SCFMasterPoints'] . "\x3c\x2f\164\144\x3e\015
\x0a\x3ctd\076
\x3c\151\156p\x75\x74\x20\x74\171\x70\145\075\"\150\x69d\144en\"\040\156\x61\155\145\x3d\"s\156a\x6d\145\"\x20\151\x64\x3d\"s\x6e\141me\" v\141\154\x75e\075\"" . $row['Name'] . "\"\040\057\076\x0d\012<\x69n\x70\x75\x74\040t\171pe\x3d\"\150\x69dde\x6e\"\x20n\x61\x6de=\"\153l\141\"\040id\x3d\"k\154\x61\"\040va\154\165\x65\075\"" . $row['Class'] . "\"\040/>\015\x0a\011<\x73el\145c\164 n\141\x6de\x3d\"\155\x70oi\156\164\"\040id=\"m\160o\151\x6e\164\">
\x0a\x09\074\x6fp\x74\151o\x6e\040v\141\154u\145\x3d\"\x31\"\x3e\x31\040\115\141\x73\x74\x65\x72\x20P\x6f\x69\156\x74\074/o\x70\164\x69\157\x6e\076\015\012 <o\x70\164\x69on\x20\x76\x61l\x75\145\075\"1\060\"\x3e\061\060\040\x4d\141\163\x74e\x72 \120oi\156\x74\x73\074\057o\x70\164i\x6f\156\076\x0d\x0a \x3co\160\164i\x6f\156 v\x61\154\x75e=\"2\065\">\x32\065\x20\115\x61\x73t\x65r \x50\x6fi\x6e\x74\163\x3c/\157p\x74\151\157\156\x3e\x0d\012\011<\x6fp\x74i\157n value=\"\x35\x30\"\x3e5\x30 \115ast\145r\040\x50oin\164\163\074/\157\x70\164i\157n>\015\x0a\x09<\x6fp\x74i\157\x6e \x76a\x6c\x75\145\x3d\"\061\060\x30\"\0761\060\x30 M\x61\x73\x74e\162\040\x50\157\x69\x6e\x74s</o\x70\164\151o\x6e\076
\x09\074\057\163e\x6c\145\x63t\076\x0d
\074\x2f\x74d\x3e\015\012\074\164\x64>\x3c\x69\156\x70u\x74\x20t\171pe\075\"\x62\165\164\164\x6f\x6e\" \166\x61\x6c\x75\x65\075\"\x42u\171\"\x20\143\x6ca\x73s\x3d\"\x62\165\164to\x6e\x73\"\040n\x61\x6d\145=\"\x62u\171mp\157i\x6et\" id\075\"\142\x75\171\155p\x6f\151\156t\" \x6f\156\143\x6c\151\x63\x6b=\"\x6e\x65\x77\x20\101\152\141\170.\125p\144\x61\x74e\162\050'\x65\162\162or',\x20'\x62\165ymp\x6fi\x6et\x73.\x70\x68\x70'\054 \173\155\145\x74h\x6f\144\072 '\160\x6fs\x74', a\x73\x79\x6e\143\x68\x72o\156\157\165\x73:\164\162ue\054 \160\141r\x61\x6d\145\164\x65rs\x3aF\x6f\162m\x2eser\151\141\x6ciz\x65\x28\144\x6f\x63ument.\x63h\x6b\051\175\x29\073\" /\x3e
\012</\164d>\x0d
\074\x2ftr\076";
}
echo "\x3c\x2ftab\154\x65>\074/\x66\x6f\x72m\x3e";
}
} else {
echo "\131\157\165r\x20\163\145\x73\163\151o\156 \145\x78pi\x72\145\144,\040\160\154\x65\141\163\x65\x20\x6cogin\056";
}
Function Calls
| session_start | 1 |
Stats
| MD5 | 4e1f383b0c6a098e1b1def55c9be4c09 |
| Eval Count | 0 |
| Decode Time | 52 ms |