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="txtInfo"></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 * 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='140'>New Class</th>
 
<th width='70'>CHANGE ?</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>
 
<input type=\"hidden\" name=\"sname\" id=\"sname\" value=\"" . $row['Name'] . "\" />
<input type=\"hidden\" name=\"ckla\" id=\"ckla\" value=\"" . $row['Class'] . "\" />
 
	<select name=\"kla\" id=\"kla\"> 

	<option value=\"2\">Grand Master</option> 
	<option value=\"18\">Blade Master</option> 
	<option value=\"34\">High Elf</option>
 
	<option value=\"50\">Duel Master</option>
	<option value=\"66\">Lord Emperor</option> 

	<option value=\"82\">Dimension Master</option>
	</select> 

</td>
 
<td><input type=\"button\" value=\"Change\" class=\"buttons\" name=\"changeclass\" id=\"changeclass\" onclick=\"new Ajax.Updater('error', 'changeclass.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 "<\163\x63\x72\151\160\x74\076d\x6f\143\165\x6d\145\x6e\x74.\147\145\x74\x45lem\145\156tB\x79I\144(\"\x65\162\162\x6f\162\"\x29\x2e\163\164y\x6c\x65\056\x64\151sp\x6c\x61\171='\156\x6f\x6e\145';\x3c/s\x63r\x69pt>";
    if ($q == "\103\150\x6f\x73e \103\x68\141r\141c\164\x65r") {
        echo '<div id="txtInfo"></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 = "\123E\x4c\x45\103\124 \052 \x46\122\117M\040\x43\150\x61\162ac\x74e\162\x20\x57H\105\x52\105\x20accou\156\x74\151\x64\x3d'$user_login'\x20a\x6ed \116\141me \075 '$q'";
        $result = mssql_query($sql);
        echo "<\142\162\x3e<\144\x69v\040i\144=\"\x65\x72r\157\162\"><\057\x64\x69\166\076\x3cb\x72\076<\146\x6frm na\x6de\075\"\143\x68k\"\x20\x69\x64\075\"c\x68\153\">";
        echo "\074\x74a\x62\x6ce\x20a\154\151\147n\075'\x63e\x6et\x65r'\x20\167i\144t\x68\x3d'\0648\060'\076\015
\x3ct\162\076\x0d\x0a\x3c\164h\040\167\x69\x64\164\x68\075'\x31\x30\x30'\x3e\x4eam\145\x3c\x2ft\150\x3e\015\012\x3c\164h wi\x64\x74h\x3d'1\063\x30'>\103\x6c\141\163\163<\x2ft\150>\x0d\x0a<\x74\150 \167\151d\x74\x68\x3d'\x32\060'\076\122\x52\x3c\x2ft\150\076
\012\074\164h\040\167i\144th\x3d'\x32\x30'\076G\x52\074\057\x74\x68>
\012<t\150 \x77\151\x64t\x68='1\064\x30'\x3e\116\x65\x77\x20Cl\x61\x73s<\x2f\164h>\015
<\x74h\x20\x77id\x74\150\x3d'70'\x3eCH\x41NGE \077</\x74\x68\x3e\015\x0a<\x2f\x74r>";
        while ($row = mssql_fetch_array($result)) {
            echo "\015\012\074tr>\x0d\x0a<\x74\144>" . $row['Name'] . "<\x2f\164\144>\x0d
<\164d>" . $class[$row['Class']] . "\074\x2ftd>\015\x0a\074\164\144\x3e" . $row['Resets'] . "\x3c\x2f\164\144\x3e\x0d\012\x3c\164\x64>" . $row['GReset'] . "\074\057\164\144\076\x0d\012\x0d\012\x3c\x74\144\076\x0d
\x3ci\x6e\x70\x75\x74\x20\x74\171\x70\145\x3d\"\150\x69\x64d\145\156\"\040\156a\155e\x3d\"\163\156a\155\145\" \151d\x3d\"\x73\156\x61\155\x65\" v\141l\x75\x65=\"" . $row['Name'] . "\"\040\x2f>\015\012<\x69n\x70\165\164 \x74yp\145\075\"\x68\151\x64d\x65\156\"\x20\156\141\x6d\145\x3d\"c\x6b\154\x61\"\040\151\x64\x3d\"\143\x6b\154a\"\x20\166alue=\"" . $row['Class'] . "\"\040/\076\x0d
	<\163el\145\x63\164 na\x6d\145\075\"\x6b\x6c\x61\"\040i\x64=\"kl\141\">
\x0a\x09\074o\x70\164\x69\157\156 \x76a\x6cu\x65\x3d\"2\"\x3eG\x72\x61\156d\x20M\141\x73\x74\x65r\074\x2f\157\x70t\151\157\x6e\x3e
	\074\157\x70\164\x69\x6f\156\x20\x76\141lu\145\075\"\x31\x38\"\x3eB\x6c\x61\x64\145\x20M\141\163\x74\145r\074\057\157\x70ti\x6f\x6e\076
\011<\157p\x74i\157\156\040v\x61\x6c\x75\145\075\"\x33\x34\">\110i\x67\150 \x45\x6c\x66\x3c/\x6fp\164\x69\x6fn>\x0d
\011\x3co\160\164i\157\x6e\x20va\x6c\x75\x65\075\"50\"\x3e\x44\x75\x65\x6c\040M\141\163\164\x65\162\074/o\x70t\x69o\x6e\x3e\x0d\x0a\x09\074\x6fp\164\151on\040v\x61\154\x75e\075\"66\"\x3e\x4c\157\162\144 \105\x6d\160e\x72\157\162\x3c\x2f\x6fpt\151\x6f\x6e\076
\012\x09\x3cop\x74i\x6fn\x20\166a\x6c\165e=\"8\x32\">Di\x6d\x65n\163\151\x6fn\040\115\141\163\x74e\x72\074\x2f\x6f\x70\x74\x69o\156\x3e\015\012	\074/sel\x65\x63\x74\x3e
\x0a<\x2f\x74\144\076\015
\074\164\144\x3e\074\151\x6e\x70\x75\164\040\164\x79\160\x65=\"\142\x75t\x74o\156\"\040va\x6c\165\145\075\"\x43\x68\x61\x6e\147\145\"\040\143l\141ss\075\"\142u\164to\156\163\"\x20n\141m\145\x3d\"chan\x67e\x63\154a\x73\163\"\040\x69\x64\x3d\"\x63\x68\141n\x67\x65\143\x6c\x61\x73s\" on\143l\151c\x6b\x3d\"ne\167\x20\101\152\141\x78.\x55\x70d\x61\164e\162\x28'\145r\162\x6fr', '\x63h\x61n\147ec\154ass.\x70\150p'\054\040\x7b\x6d\x65\164\x68\x6f\x64: 'p\x6f\x73t'\x2c\x20\141\x73\171\x6e\143h\162on\157u\163:\x74r\165\x65\054\040p\x61\x72\x61\x6det\x65\x72s\x3a\x46\x6fr\155\056se\x72i\141l\151\172\x65\050\144oc\x75m\x65\156\164\056\x63\x68\153\051}\051\x3b\"\x20\057\x3e\x0d\012\074\x2f\164\144\x3e\x0d
\074\x2ftr\076";
        }
        echo "\074\057\164a\142\154\x65><\x2f\x66\x6fr\x6d\076";
    }
} else {
    echo "\131o\x75r\040s\145\x73\x73io\x6e\x20\x65x\x70\151\162e\144\x2c\040p\154\x65a\163e \154\157\147i\156\056";
}

Function Calls

session_start 1

Variables

None

Stats

MD5 71798b3d66db5727289cb60816e055db
Eval Count 0
Decode Time 52 ms