now he really stop reply
<?php
/**
* @author benoitanastay
*
*/
class dragoncmd {
var $count; //Number of sent commands
var $userkey; //The user session key
var $user_agent; //The user agent used to request
var $ginfo; //Object of game_info
var $msgarr = array ();
var $key = "RGhXbiy4xEeDnSNX1oBG"; //Encryption key
var $mass; //if set do a barch command
var $massnum; //The max number of commands to send by request default 100
var $uid; //Player info
var $map; //Map object
var $jinfo; //Player Infos objects
var $cb; // Couchbase object
var $user_key; //The user session key
var $result; //Result pf a request
var $result_state = false; //The state of the request
/**
* @return boolean
*/
function reinit() {
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, "http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_user_session.php?secret=zoltan3287&id=" . $this->uid );
curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ( $ch, CURLOPT_NOBODY, false );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
$this->user_key = curl_exec ( $ch );
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, 'http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_player_info.php?USERID=' . $this->uid . '&user_key=' . $this->user_key );
curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ( $ch, CURLOPT_NOBODY, false );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
$result = curl_exec ( $ch );
$result = explode ( ';', $result );
$this->jinfo = $result [1];
$json = json_decode ( $this->jinfo );
if (isset ( $json->result )) {
if (! $json->result)
return false;
}
return true;
}
/**
* @param jsonstring $cmd
* @param unixtime $time
* @return number
*/
function send($cmd, $time) {
if (! isset ( $this->massnum ))
$this->massnum = 100;
if ($this->mass == "on") {
if ($cmd == "send")
$this->massnum = $this->count - 1;
if (count ( $this->msgarr ) < $this->massnum && $cmd != "send") {
$this->msgarr [$this->count] = $cmd;
$this->count ++;
return 0;
}
$cmd = implode ( ",", $this->msgarr );
$this->msgarr = array ();
$fst = $this->count - $this->massnum;
} else {
$fst = $this->count;
}
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, 'http://dynamicdc.socialpointgames.com/dragoncity/web/srv/packet.php?USERID=' . $this->uid . '&user_key=' . $this->user_key );
curl_setopt ( $ch, CURLOPT_POST, 1 );
$data = '{"flashVersion":"0.3.27","commands":[' . $cmd . '],"first_number":' . $fst . ',"ts":' . $time . ',"publishActions":0,"tries":1}';
$data = hash_hmac ( 'sha256', $data, $this->key ) . ';' . $data;
curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'id=' . $this->uid . '&data=' . $data );
curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ( $ch, CURLOPT_NOBODY, false );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
$result = curl_exec ( $ch );
$result = explode ( ';', $result );
$player = json_decode ( $this->jinfo );
$json = json_decode ( $result [1] );
if (isset ( $json->response [0]->resources->pu->c )) {
$this->result_state = true;
$cn = $player->playerInfo->cash + $json->response [0]->resources->pu->c;
$c = $json->response [0]->resources->pu->c;
} else {
$cn = $player->playerInfo->cash;
$c = 0;
}
if (isset ( $json->response [0]->resources->pu->g )) {
$this->result_state = true;
$gn = $player->playerInfo->gold + $json->response [0]->resources->pu->g;
$g = $json->response [0]->resources->pu->g;
} else {
$gn = $player->playerInfo->gold;
$g = 0;
}
if (isset ( $json->response [0]->resources->pu->f )) {
$this->result_state = true;
$fn = $player->playerInfo->food + $json->response [0]->resources->pu->f;
$f = $json->response [0]->resources->pu->f;
} else {
$fn = $player->playerInfo->food;
$f = 0;
}
if (isset ( $json->response [0]->resources->pu->x )) {
$xn = $player->playerInfo->xp + $json->response [0]->resources->pu->x;
$x = $json->response [0]->resources->pu->x;
} else {
$xn = $player->playerInfo->xp;
$x = 0;
}
$this->result = "<pre>
=======================
>>>Dragon City AFTER<<<
=======================
ID = " . $player->playerInfo->pid . "
Name = " . $player->playerInfo->name . "
Gems = " . $cn . " (+" . $c . ")
Food = " . $fn . " (+" . $f . ")
Gold = " . $gn . " (+" . $g . ")
Level = " . $player->playerInfo->level . "
Exp = " . $xn . " (+" . $x . ")
=======================
</pre>";
}
function cb_get() {
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' );
curl_setopt ( $ch, CURLOPT_POST, 1 );
curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=get&key=u%2F' . $this->uid . '%2Fpu&value=%7B%7D&secret=zoltan3287' );
curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ( $ch, CURLOPT_NOBODY, false );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
$result = curl_exec ( $ch );
// var_dump($result);
preg_match ( '#C:52:"SP\\\\Bundle\\\\SocialDragonsBundle\\\\Domain\\\\UserPublicState":[0-9]+:{(.*)}#', $result, $matches );
// var_dump($matches);
$this->cb = json_decode ( $matches [1], true );
}
function cb_send() {
$ch = curl_init ();
if (! isset ( $this->cb ["pid"] ))
die ( 'Error' );
$json = json_encode ( $this->cb );
$set = 'C:52:"SP\Bundle\SocialDragonsBundle\Domain\UserPublicState":' . strlen ( $json ) . ':{' . $json . '}';
curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' );
curl_setopt ( $ch, CURLOPT_POST, 1 );
curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=set&key=u%2F' . $this->uid . '%2Fpu&value=' . urlencode ( $set ) . '&secret=zoltan3287' );
curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ( $ch, CURLOPT_NOBODY, false );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
curl_exec ( $ch );
}
function map_get() {
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' );
curl_setopt ( $ch, CURLOPT_POST, 1 );
curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=get&key=u%2F' . $this->uid . '%2Fm1&value=%7B%7D&secret=zoltan3287' );
curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ( $ch, CURLOPT_NOBODY, false );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
$result = curl_exec ( $ch );
// var_dump($result);
preg_match ( '#C:44:"SP\\\\Bundle\\\\SocialDragonsBundle\\\\Domain\\\\UserMap":[0-9]+:{(.*)}#', $result, $matches );
// var_dump($matches);
$this->map = json_decode ( $matches [1], true );
}
function map_send() {
$ch = curl_init ();
$json = json_encode ( $this->map );
// var_dump($json);
$set = 'C:44:"SP\Bundle\SocialDragonsBundle\Domain\UserMap":' . strlen ( $json ) . ':{' . $json . '}';
// var_dump ($set);
curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' );
curl_setopt ( $ch, CURLOPT_POST, 1 );
curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=set&key=u%2F' . $this->uid . '%2Fm1&value=' . urlencode ( $set ) . '&secret=zoltan3287' );
curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_HEADER, false );
curl_setopt ( $ch, CURLOPT_NOBODY, false );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
curl_exec ( $ch );
}
}
?>
is a very long time for a hackQuote:
benoit, you are too irresponsible to this, you should notice your time constantly upgrading the hack, many people have to pay for you and sustain you upgrade it, if you stop it, you must have time for people to be able to use the things they spend money to buy. I bought your tool for 135,000 VND and can only be used more than 1 week, it is too little compared to what I spent. I hope you will think again
Sorry for my english level
How will I be able to run your PHP code :confused: When I do not have ServerQuote:
Code:<?php /** * @author benoitanastay * */ class dragoncmd { var $count; //Number of sent commands var $userkey; //The user session key var $user_agent; //The user agent used to request var $ginfo; //Object of game_info var $msgarr = array (); var $key = "RGhXbiy4xEeDnSNX1oBG"; //Encryption key var $mass; //if set do a barch command var $massnum; //The max number of commands to send by request default 100 var $uid; //Player info var $map; //Map object var $jinfo; //Player Infos objects var $cb; // Couchbase object var $user_key; //The user session key var $result; //Result pf a request var $result_state = false; //The state of the request /** * @return boolean */ function reinit() { $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, "http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_user_session.php?secret=zoltan3287&id=" . $this->uid ); curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt ( $ch, CURLOPT_HEADER, false ); curl_setopt ( $ch, CURLOPT_NOBODY, false ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 ); curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 ); $this->user_key = curl_exec ( $ch ); $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, 'http://dynamicdc.socialpointgames.com/dragoncity/web/srv/get_player_info.php?USERID=' . $this->uid . '&user_key=' . $this->user_key ); curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt ( $ch, CURLOPT_HEADER, false ); curl_setopt ( $ch, CURLOPT_NOBODY, false ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 ); curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 ); $result = curl_exec ( $ch ); $result = explode ( ';', $result ); $this->jinfo = $result [1]; $json = json_decode ( $this->jinfo ); if (isset ( $json->result )) { if (! $json->result) return false; } return true; } /** * @param jsonstring $cmd * @param unixtime $time * @return number */ function send($cmd, $time) { if (! isset ( $this->massnum )) $this->massnum = 100; if ($this->mass == "on") { if ($cmd == "send") $this->massnum = $this->count - 1; if (count ( $this->msgarr ) < $this->massnum && $cmd != "send") { $this->msgarr [$this->count] = $cmd; $this->count ++; return 0; } $cmd = implode ( ",", $this->msgarr ); $this->msgarr = array (); $fst = $this->count - $this->massnum; } else { $fst = $this->count; } $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, 'http://dynamicdc.socialpointgames.com/dragoncity/web/srv/packet.php?USERID=' . $this->uid . '&user_key=' . $this->user_key ); curl_setopt ( $ch, CURLOPT_POST, 1 ); $data = '{"flashVersion":"0.3.27","commands":[' . $cmd . '],"first_number":' . $fst . ',"ts":' . $time . ',"publishActions":0,"tries":1}'; $data = hash_hmac ( 'sha256', $data, $this->key ) . ';' . $data; curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'id=' . $this->uid . '&data=' . $data ); curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt ( $ch, CURLOPT_HEADER, false ); curl_setopt ( $ch, CURLOPT_NOBODY, false ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 ); curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 ); $result = curl_exec ( $ch ); $result = explode ( ';', $result ); $player = json_decode ( $this->jinfo ); $json = json_decode ( $result [1] ); if (isset ( $json->response [0]->resources->pu->c )) { $this->result_state = true; $cn = $player->playerInfo->cash + $json->response [0]->resources->pu->c; $c = $json->response [0]->resources->pu->c; } else { $cn = $player->playerInfo->cash; $c = 0; } if (isset ( $json->response [0]->resources->pu->g )) { $this->result_state = true; $gn = $player->playerInfo->gold + $json->response [0]->resources->pu->g; $g = $json->response [0]->resources->pu->g; } else { $gn = $player->playerInfo->gold; $g = 0; } if (isset ( $json->response [0]->resources->pu->f )) { $this->result_state = true; $fn = $player->playerInfo->food + $json->response [0]->resources->pu->f; $f = $json->response [0]->resources->pu->f; } else { $fn = $player->playerInfo->food; $f = 0; } if (isset ( $json->response [0]->resources->pu->x )) { $xn = $player->playerInfo->xp + $json->response [0]->resources->pu->x; $x = $json->response [0]->resources->pu->x; } else { $xn = $player->playerInfo->xp; $x = 0; } $this->result = "<pre> ======================= >>>Dragon City AFTER<<< ======================= ID = " . $player->playerInfo->pid . " Name = " . $player->playerInfo->name . " Gems = " . $cn . " (+" . $c . ") Food = " . $fn . " (+" . $f . ") Gold = " . $gn . " (+" . $g . ") Level = " . $player->playerInfo->level . " Exp = " . $xn . " (+" . $x . ") ======================= </pre>"; } function cb_get() { $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' ); curl_setopt ( $ch, CURLOPT_POST, 1 ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=get&key=u%2F' . $this->uid . '%2Fpu&value=%7B%7D&secret=zoltan3287' ); curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt ( $ch, CURLOPT_HEADER, false ); curl_setopt ( $ch, CURLOPT_NOBODY, false ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 ); $result = curl_exec ( $ch ); // var_dump($result); preg_match ( '#C:52:"SP\\\\Bundle\\\\SocialDragonsBundle\\\\Domain\\\\UserPublicState":[0-9]+:{(.*)}#', $result, $matches ); // var_dump($matches); $this->cb = json_decode ( $matches [1], true ); } function cb_send() { $ch = curl_init (); if (! isset ( $this->cb ["pid"] )) die ( 'Error' ); $json = json_encode ( $this->cb ); $set = 'C:52:"SP\Bundle\SocialDragonsBundle\Domain\UserPublicState":' . strlen ( $json ) . ':{' . $json . '}'; curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' ); curl_setopt ( $ch, CURLOPT_POST, 1 ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=set&key=u%2F' . $this->uid . '%2Fpu&value=' . urlencode ( $set ) . '&secret=zoltan3287' ); curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt ( $ch, CURLOPT_HEADER, false ); curl_setopt ( $ch, CURLOPT_NOBODY, false ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 ); curl_exec ( $ch ); } function map_get() { $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' ); curl_setopt ( $ch, CURLOPT_POST, 1 ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=get&key=u%2F' . $this->uid . '%2Fm1&value=%7B%7D&secret=zoltan3287' ); curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt ( $ch, CURLOPT_HEADER, false ); curl_setopt ( $ch, CURLOPT_NOBODY, false ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 ); $result = curl_exec ( $ch ); // var_dump($result); preg_match ( '#C:44:"SP\\\\Bundle\\\\SocialDragonsBundle\\\\Domain\\\\UserMap":[0-9]+:{(.*)}#', $result, $matches ); // var_dump($matches); $this->map = json_decode ( $matches [1], true ); } function map_send() { $ch = curl_init (); $json = json_encode ( $this->map ); // var_dump($json); $set = 'C:44:"SP\Bundle\SocialDragonsBundle\Domain\UserMap":' . strlen ( $json ) . ':{' . $json . '}'; // var_dump ($set); curl_setopt ( $ch, CURLOPT_URL, 'https://dynamicdc.socialpointgames.com/dragoncity/web/admin/packet_cb' ); curl_setopt ( $ch, CURLOPT_POST, 1 ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, 'type=set&key=u%2F' . $this->uid . '%2Fm1&value=' . urlencode ( $set ) . '&secret=zoltan3287' ); curl_setopt ( $ch, CURLOPT_USERAGENT, $this->user_agent ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt ( $ch, CURLOPT_HEADER, false ); curl_setopt ( $ch, CURLOPT_NOBODY, false ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 ); curl_exec ( $ch ); } } ?>
jajajajajaja che paja que no ves q es frances el otro? en todo caso INGLES seguramente te entienda.Quote:
estoy mas q satisfecho, gracias por las gemas sr benoit, pero estaria bueno un regalo de despedida ;)