|
You last visited: Today at 13:33
Advertisement
the script DRAGON CITY. PHP
Discussion on the script DRAGON CITY. PHP within the Facebook forum part of the Browsergames category.
07/17/2013, 16:52
|
#1
|
elite*gold: 0
Join Date: Jul 2013
Posts: 5
Received Thanks: 0
|
the script DRAGON CITY. PHP
please help for script dragon city. php
I need this
wrote to this forum
|
|
|
07/17/2013, 17:25
|
#2
|
elite*gold: 0
Join Date: Apr 2011
Posts: 79
Received Thanks: 61
|
I have script for exp and gold,
|
|
|
07/17/2013, 17:25
|
#3
|
elite*gold: 0
Join Date: Jul 2010
Posts: 103
Received Thanks: 645
|
PHP Code:
<?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},{"number":' . $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},{"number":' . $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":1372771201}';
$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>
|
|
|
07/17/2013, 17:34
|
#4
|
elite*gold: 0
Join Date: Jul 2013
Posts: 92
Received Thanks: 20
|
thank for share.
|
|
|
07/17/2013, 17:55
|
#5
|
elite*gold: 0
Join Date: Jul 2013
Posts: 49
Received Thanks: 89
|
Quote:
Originally Posted by ballot
PHP Code:
<?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},{"number":' . $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},{"number":' . $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":1372771201}';
$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>
|
This script is working ?
Quote:
Originally Posted by ballot
PHP Code:
<?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},{"number":' . $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},{"number":' . $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":1372771201}';
$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>
|
This script is working ?
Quote:
Originally Posted by Spike1996
I have script for exp and gold,
|
I need <3
|
|
|
07/17/2013, 17:58
|
#6
|
elite*gold: 0
Join Date: Jul 2013
Posts: 9
Received Thanks: 4
|
Please fix does not work
log : Failure
Array ( [result] => 1 [response] => Array ( [0] => Array ( [resources] => Array ( ) [result] => [error] => Command change_init_data not found ) ) [error] => )
|
|
|
07/17/2013, 18:08
|
#7
|
elite*gold: 0
Join Date: Aug 2012
Posts: 54
Received Thanks: 3
|
How to use this?
|
|
|
07/17/2013, 18:12
|
#8
|
elite*gold: 0
Join Date: Jun 2013
Posts: 32
Received Thanks: 5
|
how to use ? using host ?
|
|
|
07/17/2013, 18:21
|
#9
|
elite*gold: 0
Join Date: Jul 2013
Posts: 9
Received Thanks: 4
|
zz.mu
|
|
|
07/17/2013, 18:22
|
#10
|
elite*gold: 0
Join Date: Jul 2013
Posts: 92
Received Thanks: 20
|
This code before DC update. Work don't fixed
|
|
|
07/17/2013, 18:31
|
#11
|
elite*gold: 0
Join Date: Jul 2013
Posts: 77
Received Thanks: 14
|
Quote:
Originally Posted by vnprincesfrog
This code before DC update. Work don't fixed
|
Today, someone said he can sell 1000 gems =2usd and he also needs fb id and userkey. T_T
|
|
|
07/17/2013, 18:37
|
#12
|
elite*gold: 0
Join Date: Nov 2009
Posts: 278
Received Thanks: 130
|
CAn somebody fix my dragon city? i dont have hatchery and kindergarten
|
|
|
07/17/2013, 21:48
|
#13
|
elite*gold: 0
Join Date: Apr 2012
Posts: 68
Received Thanks: 17
|
Array ( [result] => 1 [response] => Array ( [0] => Array ( [resources] => Array ( ) [result] => [error] => Command change_init_data not found ) ) [error] => ) pls fix for error
|
|
|
08/31/2013, 09:33
|
#14
|
elite*gold: 0
Join Date: Aug 2013
Posts: 1
Received Thanks: 0
|
Quote:
Originally Posted by ballot
PHP Code:
<?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},{"number":' . $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},{"number":' . $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":1372771201}';
$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>
|
where u get the code
Code:
require_once('recaptchalib.php');
How it work without ........ it  
|
|
|
08/31/2013, 11:37
|
#15
|
elite*gold: 0
Join Date: Oct 2012
Posts: 209
Received Thanks: 99
|
not works
|
|
|
Similar Threads
|
Dragon City 250 gems +Blue Dragon+Ultra Tree
05/07/2013 - Facebook - 1 Replies
Hello Guys
now you can get 250 gems +Blue Dragon +Ultra Tree+Deep Forest Dragon
with out program or cheat only go to this link and Register
Social Point Promotions auf Facebook | Facebook
Post Replay if you want Help and make it up for other member's thank you
|
All times are GMT +1. The time now is 13:33.
|
|