DRAGON CITY HACK FOOD

07/30/2013 10:02 nikkhairulazizi#31
Quote:
Originally Posted by PiTiq View Post
it-s harder because it-s coded and i don-t know how it was coded.
Ok, good enough for now. I on the cheat for 2 minutes and close :D

So far safe for me. Thanks!
07/30/2013 10:05 danucool46#32
here mine..
fbid: 100001466785035
DCID: 22771579
07/30/2013 10:08 TecoMansur#33
Just a question. If I let it submitting and my ID gets blocked. Will I still get all the food the program generated or just to the point where the ID was blocked? Because I'm willing to be blocked for 30 minutes if it generates a shitload of food. (I need gems, also, for the Poseidon Dragon)
07/30/2013 10:10 jasonpham9999#34
Get block => no food . If u see the return in food : 0 , gem : 0 , cash : 0 , gold : 0 . Close the browser and wait for 30 minutes
07/30/2013 10:11 stingwinstermek#35
pls hack gem with auto open deus daily bonus
07/30/2013 10:12 TecoMansur#36
Is there a way to recode the script to raise the time between requests?
07/30/2013 10:14 yogawahyu#37
Please Share Script..
07/30/2013 10:15 duynp#38
done, thanks
07/30/2013 10:16 jasonpham9999#39
Quote:
Originally Posted by PiTiq View Post
it-s harder because it-s coded and i don-t know how it was coded.

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
07/30/2013 10:17 KDude#40
userkey 68197716
facebook id 100000561992882
thanks >_<
07/30/2013 10:18 fikrikrazz#41
Quote:
Originally Posted by danucool46 View Post
here mine..
fbid: 100001466785035
DCID: 22771579
i + food yo youuu ..
please check and click THANKS :)

-----Result-----
Willis Ar-dhanu
Food: 37.735
------------------------------
07/30/2013 10:21 TecoMansur#42
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
Sorry, but how do I use this? Noob here.
07/30/2013 10:22 KDude#43
already put userkey and facebook id but why baduserkey or empty fb id

btw here mine userkey : 68197716 facebook id : 10000561992882
07/30/2013 10:37 thichlambo11#44
thanks thanks thanks
07/30/2013 10:39 KDude#45
Quote:
Originally Posted by thichlambo11 View Post
thanks thanks thanks
would you like to help me ? userkey 68197716 fbid 10000561992882