Hello someone passes me the PHP OF The Hack On Social Social wars Empires Dragon city
What is the manQuote:
PHP of fakirlik.cloudapp.net
<?php
//die("will be updated soon");
ini_set('magic_quotes_gpc', 'off');
ini_set('display_errors', 'on');
$hcx = '';
function fakeip()
{
return long2ip(mt_rand(0, 65537) * mt_rand(0, 65535));
}
function arasi($a, $b, $data)
{
$x = explode($a, $data);
$z = explode($b, $x[1]);
$oh = $z[0];
if ($x && $z) {
return $oh;
} else {
return false;
}
}
function komut($komut, $num)
{
$data = komutyolla($komut, $num);
if (stristr($data, 'bad command number: expected')) {
$yeninum = arasi('bad command number: expected ', ',', $data);
$data = komutyolla($komut, $yeninum);
return substr($data, 65);
} else {
return substr($data, 65);
}
}
function komutyolla($komut, $num)
{
global $fbid, $user;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://dynamicdc.socialpointgames.com/dragoncity/web/srv/packet.php?USERID=$fbid&user_key=$user&language=tr ");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
"id" => "$fbid",
"data" => hashla($komut, $num)
)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
//curl_setopt($ch, CURLOPT_HTTPHEADER, array("REMOTE_ADDR: ".fakeip(),"X-Client-IP: ".fakeip(),"Client-IP: ".fakeip(),"HTTP_X_FORWARDED_FOR: ".fakeip(),"X-Forwarded-For: ".fakeip()));
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
//curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:8888");
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
function userkey($fbid)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_user_session.php?secret=zoltan3287&id=" . $fbid);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, false);
//curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:8888");
curl_setopt($ch, CURLOPT_NOBODY, false);
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$userkey = curl_exec($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_game_config.php?USERID=' . $fbid . '&user_key=' . $userkey . "&language=tr");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch, CURLOPT_NOBODY, false);
//curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:8888");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$result = curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, 'http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_player_info.php?USERID=' . $fbid . '&user_key=' . $userkey . "&language=tr");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_NOBODY, false);
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
//curl_setopt ( $ch, CURLOPT_PROXY, "127.0.0.1:8888");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$result = curl_exec($ch);
return $userkey;
}
function hashla($komut, $n)
{
$ar = array(
"first_number" => $n,
"publishActions" => 0,
"tries" => 1,
"flashVersion" => "0.5.19",
"ts" => time()
);
$x = 'RGhXbiy4xEeDnSNX1oBG';
$sonkod = str_replace(" ", "", str_replace('}', ',' . $komut . '}', json_encode($ar)));
return hash_hmac('sha256', $sonkod, $x) . ';' . $sonkod;
}
if (isset($_POST["fbid"]) && (isset($_POST["recaptcha_response_field"]))) {
require_once('recaptchalib.php');
$publickey = "6LeMfOQSAAAAAOMKScABjPEjfpCxTDCsXWkVofPF";
$privatekey = "6LeMfOQSAAAAAL17ckxW9DMzBg7LVXxBZEOkNC3y";
$resp = null;
$error = null;
$resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
if ($resp->is_valid) {
$fbid = $_POST['fbid'];
$user = userkey($fbid);
if ($_POST["mode"] == 1) {
$cachefile = './cache/' . md5($_POST['mode'] . $fbid) . '.txt';
if (file_Exists($cachefile)) {
$filelastmodified = filemtime($cachefile);
$sure = 7 * 24 * 3550;
$suredoldumu = time() - $filelastmodified > $sure;
} else {
$suredoldumu = true;
}
if ($suredoldumu) {
unset($hc, $hcx);
$hcx = '';
for ($i = 1; $i < 6000; $i = $i + 2) {
$ik = $i + 1;
$hcx .= '{"args":[1],"number":' . $i . ',"cmd":"change_init_data","time":1372771201},{"nu mber":' . $ik . ',"cmd":"buy_treasure_new","time":1373655058,"args ":[7]},';
}
$hcx = substr($hcx, 0, -1);
$hc = '{"commands":[' . $hcx . ']}';
$hc = json_decode($hc, 1);
$num = 1;
for ($i = 0; $i < count($hc['commands']); $i++) {
$hc['commands'][$i]['time'] = time();
}
$hc = substr(substr(str_replace(" ", "", json_encode($hc)), 0, -1), 1);
$sucb = json_decode(komut($hc, $num), 1);
} else {
$sucb = array(
"error" => "Your 1 week time limit is not over & 1 haftalik limitin dolmadı daha sonra dene",
"result" => false
);
}
} elseif ($_POST["mode"] == 2) {
$cachefile = './cache/' . md5($_POST['mode'] . $fbid) . '.txt';
if (file_Exists($cachefile)) {
$filelastmodified = filemtime($cachefile);
$sure = 7 * 24 * 3550;
$suredoldumu = time() - $filelastmodified > $sure;
} else {
$suredoldumu = true;
}
if ($suredoldumu) {
unset($hc, $hcx);
$hcx = '';
for ($i = 1; $i < 1000; $i = $i + 2) {
$ik = $i + 1;
$hcx .= '{"args":[1],"number":' . $i . ',"cmd":"change_init_data","time":1372771201},{"nu mber":' . $ik . ',"cmd":"buy_treasure_new","time":1373655058,"args ":[3]},';
}
$hcx = substr($hcx, 0, -1);
$hc = '{"commands":[' . $hcx . ']}';
$hc = json_decode($hc, 1);
$num = 1;
for ($i = 0; $i < count($hc['commands']); $i++) {
$hc['commands'][$i]['time'] = time();
}
$hc = substr(substr(str_replace(" ", "", json_encode($hc)), 0, -1), 1);
$sucb = json_decode(komut($hc, $num), 1);
} else {
$sucb = array(
"error" => "Your 1 week time limit is not over & 1 haftalik limitin dolmadı daha sonra dene",
"result" => false
);
}
} else {
$nocache = true;
unset($hc, $hcx);
$hcx = '';
$hcx = '{"args":[1],"number":1,"cmd":"change_init_data","time":137277 1201}';
$hc = '{"commands":[' . $hcx . ']}';
$hc = json_decode($hc, 1);
$num = 1;
for ($i = 0; $i < count($hc['commands']); $i++) {
$hc['commands'][$i]['time'] = time();
}
$hc = substr(substr(str_replace(" ", "", json_encode($hc)), 0, -1), 1);
$sucb = json_decode(komut($hc, $num), 1);
}
unset($sucb['response'][0]['cmd']);
unset($sucb['response'][0]['number']);
if ($sucb['result'] == false) {
echo "<center><h1>Failure</h1>";
print_r($sucb);
} else {
if (isset($sucb['response'][0]['error'])) {
echo "<center><h1>Failure</h1>";
print_r($sucb);
} else {
if (!isset($nocache)) {
touch($cachefile);
}
echo "<center><h1>Success</h1>";
}
}
} else {
echo "<center><h1>Security Question :(</h1>";
}
}
?><meta charset="utf-8" /><center>
<form method="POST">
fbid : <input type=text name="fbid" value=<?
if (isset($_POST["fbid"])) {
echo htmlspecialchars($_POST["fbid"]);
} else {
echo "1000000123542";
}
?>><br><br>
<select name="mode">
<option value="1">200m Food</option>
<option value="2">1000m gold</option>
<option value="3">100 gems</option>
</select><br><br>
<?php
require_once('recaptchalib.php');
$publickey = "6LeMfOQSAAAAAOMKScABjPEjfpCxTDCsXWkVofPF";
$privatekey = "6LeMfOQSAAAAAL17ckxW9DMzBg7LVXxBZEOkNC3y";
$resp = null;
$error = null;
echo recaptcha_get_html($publickey, $error);
?>
<br><input type=submit value="Party hard">
</form>
<br><a href="http://findmyfacebookid.com/">(face idsini öğrenmek için)</a>
<br><i>(önce oyuna gir sonra hileyi aç)</i>
<br><i>gems => if u have more than 100 gems you wont receive anything its limitless u can repeat it and make your gems 100 again</i>
<br><i>gems => değerli taşlar sınırsız fakat 100 veya daha fazla taşınız varsa bişi gelmiycek</i>
<br><i>gold & food => its limited to 1 acc for 1 week if u applied it come back after a week</i>
<br><i>altın & yemek => her hesap haftada 1 sefer kullanabilir</i>