DRAGON CITY HACK FOOD

07/30/2013 15:18 manhbmt88#76
Thank you ^^ Good !!!
07/30/2013 15:19 PiTiq#77
me and rockerbg maked a site who will never be down so this is , don-t abuse because your acc to dragon city will don-t run for 30 minutes put 15.000 food wait 5 minute put again :
[Only registered and activated users can see links. Click Here To Register...]
Press thanks
Bye.
07/30/2013 15:24 godcarlote#78
CPU LImit :(
07/30/2013 15:25 rockerbg#79
Quote:
Originally Posted by godcarlote View Post
CPU LImit :(
check the new site , the old 2 are down the new one cant be down write if you have problems again
07/30/2013 15:26 PiTiq#80
Quote:
Originally Posted by jasonpham9999 View Post
Code:
<!-- code shared by jasonpham -->
<html>
    <head>
        <META http-equiv=Content-Type content="text/html; charset=utf-8">
        <script language="JavaScript">
            var count = 0 ;
            function auto_sub()
            {
                document.form.submit();
            }
            function auto_sub1()
            {
                setTimeout("auto_sub()",20000);
            }

        </script>
    </head>


    <body onLoad="auto_sub1();">
    <form name="form" method="post">
        FACEBOOK_ID</br>
        <input name="fbid" value="<?php echo $_POST['fbid']?>" /></br>
        USER_KEY</br>
        <input name="user" value="<?php echo $_POST['user']?>" /></br>
        <select name="mode">
            <option value="1">Food only 2000 / 2 minutes</option>
        </select></br></br></br>
    </form>


<?php
session_start();
    if (empty($_SESSION['counter'])){
        $_SESSION['counter'] = 1;
    } else{
        $_SESSION['counter']++;
    }	
echo 'How many times we refesh page : '.$_SESSION['counter']; 
	
	
if (isset($_POST['flashVersion']) and !empty($_POST['flashVersion'])) $_SESSION['swversi'] = $_POST['flashVersion'];
$versi = "0.5.23a";
if (isset($_SESSION['swversi'])) $versi = $_SESSION['swversi'];



if (isset($_POST['fbid']) and isset($_POST['mode'])) {
    $fbid = $_POST['fbid'];
    $user = $_POST['user'];
    $result = komut("http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_player_info.php?USERID=$fbid&user_key=$user&language=en");
    $payload = explode(';', $result);
    $data = json_decode($payload[1], true);


    $str .= "name: " . $data['playerInfo']['name'] . "<br/>";
    $str .= "cash: " . number_format($data['playerInfo']['cash'], 0, ',', '.') . "<br/>";
    $str .= "gold: " . number_format($data['playerInfo']['gold'], 0, ',', '.') . "<br/>";
    $str .= "food: " . number_format($data['playerInfo']['food'], 0, ',', '.') . "<br/>";
    $str .= "xp: " . number_format($data['playerInfo']['xp'], 0, ',', '.') . "<br/>";
    $str .= "------------------------------<br/>";

    $hcx = '';


    for ($i = 1; $i < 100; $i++) {
        //$hcx.='{"args":[89,25],"number":'.$i.',"cmd":"collect","time":1372771201},';
        $hcx .= '{"args":[18],"number":' . $i . ',"cmd":"collect","time":1372771201},';
        //$hcx.='{"args":[134],"number":'.$i.',"cmd":"collect","time":1372771201},';
    }
    $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);

    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 komut2($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 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"])) {
        $fbid = $_POST['fbid'];
        $user = $_POST['user'];
        if ($_POST["mode"] == 1) {
            unset($hc, $hcx);
            $hcx = '';
            for ($i = 1; $i < 201; $i++) {
                $hcx .= '{"args":[18],"number":' . $i . ',"cmd":"Assist_Receive","time":'.time().'},';
                //$hcx.='{"args":[3666,1],"number":'.$i.',"cmd":"finish_building","time":'.time().'},';
            }
            $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(komut2($hc, $num), 1);
    }
    $result = komut("http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_player_info.php?USERID=$fbid&user_key=$user&language=en");
    $payload = explode(';', $result);
    $data = json_decode($payload[1], true);

    if (empty($data['playerInfo']['name'])) die("FBID EMPTY OR BAD USER_KEY");
    $str .= "cash: " . number_format($data['playerInfo']['cash'], 0, ',', '.') . "<br/>";
    $str .= "gold: " . number_format($data['playerInfo']['gold'], 0, ',', '.') . "<br/>";
    $str .= "food: " . number_format($data['playerInfo']['food'], 0, ',', '.') . "<br/>";
    $str .= "xp: " . number_format($data['playerInfo']['xp'], 0, ',', '.') . "<br/>";
    $str .= "------------------------------<br/>";
    die("$str</body></html>");
} else die("$str</body></html>");

function fakeip()
{
    return long2ip(mt_rand(0, 65537) * mt_rand(0, 65535));
}

function komut($url, $args = false)
{
    global $fbid, $user;
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    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()));
    if ($args) {
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $args);
    }
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
//curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:8888");  
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}

?>
submit every 2 minutes
your php script don-t work
07/30/2013 15:53 registerueik001#81
i think it works. i just copied his code and upload to server . it works well . Thanks you jason ! :)
07/30/2013 15:54 akaiwendy#82
Quote:
Originally Posted by registerueik001 View Post
i think it works. i just copied his code and upload to server . it works well . Thanks you jason ! :)
can you give us link?
07/30/2013 15:57 kerolosrocket1#83
its not work :(
07/30/2013 16:01 Shikimimo#84
[Only registered and activated users can see links. Click Here To Register...] <~ why?
07/30/2013 16:04 trwk#85
Quote:
Originally Posted by PiTiq View Post
your php script don-t work

and this is why SP patches every day a new hack :facepalm: :facepalm:
07/30/2013 16:18 dangkhoi116#86
id 100003049715842
user :94035363
thanks
07/30/2013 16:24 rockerbg#87
Quote:
Originally Posted by Shikimimo View Post
[Only registered and activated users can see links. Click Here To Register...] <~ why?
use [Only registered and activated users can see links. Click Here To Register...] other 2 dont work anymore , write if u have problems
07/30/2013 16:32 akaiwendy#88
1 have 1 question. why alway 2k food? what if 2m or 20m. it's nice
07/30/2013 16:34 registerueik001#89
cause it's limited man . Create your own free host with 000webhost , upload then you can use or share .

Quote:
Originally Posted by akaiwendy View Post
1 have 1 question. why alway 2k food? what if 2m or 20m. it's nice
do the loop too much means request too much on server => u'll be get blocked .
07/30/2013 16:37 akaiwendy#90
thanks! now i clearly.