Sunday, March 6, 2016

[Tool] Data Downloader

I just created a Python based tool to download all files in the game.

It's a draft, but it can actually download quite a lot of game assets.

I will provide some explanation of how this works later, or you can check the source code.



21 comments:

  1. Hello
    Are you still alive?.If so, can you reply?.I need your help in something.
    Thanks!

    ReplyDelete
  2. I play a game that is similar to GoW.There are buildings and researches in this game too.I unzipped the apk of the game but I couldn't find information regarding the researches (resources needed, time etc ) or the pictures of the buildings ( academy walls ).Where are they stored??
    Thanks!

    ReplyDelete
    Replies
    1. In case of GoW, the resources are not stored on the APK file, but downloaded when you play the game. In the script I wrote, in order to do that, I take note of the URLs where the game assets are stored and download directly from those URLs.

      Using WireShark to sniff packets is a good start to see where the assets are coming from.

      Cheers

      Delete
  3. 1-But GoW can't be played on PC so how did you use WireShark?
    2-How did you find the urls where the assets folder are stored?

    Thanks!

    ReplyDelete
    Replies
    1. 1- I use an emulator on PC. That gives me a way to use Wireshark.
      2- With patience. Just search for strings that look like URLs, try to know exactly the steps performed on the loading process of the game.

      Delete
  4. I could really use your help man :(

    ReplyDelete
  5. So I googled it and it turned out that Wireshark cant sniff ssl traffic in bluetacks. So HOW did you do it :(?..The game is also available on Facebook if this is going to make life easier.

    Thank you for your patience

    ReplyDelete
  6. Can you show me the exact steps you did to find the urls?

    Thanks!

    ReplyDelete
  7. He used - https://github.com/mitmproxy/mitmproxy

    I personally don't know the guy but I can tell you this much. I'd like to know the guy, so, hit me up brother.

    ReplyDelete
  8. sh1ftchg do you have gmail so I can directly contact you?

    ReplyDelete
  9. Yeah, my email is my username here @gmail.com lol.

    ReplyDelete
  10. I tried mitmproxy, but didn't work for me, because GoW transactions are encrypted by SSL. I used Wireshark as stated on my post here: http://gameofwarvault.blogspot.com.ar/2014/08/tcp-connections.html

    ReplyDelete
  11. If it interests you I have the root luac and rml files.

    ReplyDelete
  12. Just tried to run your python script, it is returning the following???

    Traceback (most recent call last):
    File "C:\Users\dev\Desktop\DataDownloader-master\main.py", line 152, in
    data = json.loads(data)
    File "C:\lib\json\__init__.py", line 339, in loads
    return _default_decoder.decode(s)
    File "C:\lib\json\decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "C:\lib\json\decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
    ValueError: No JSON object could be decoded

    ReplyDelete
  13. Dunno what @Blogger is saying, (because he's a robot that replied here based off specific keywords) but DO NOT follow his link or advice. The company invested more money in spamming the internet than they did their "trading" foreign exchange algorithms.

    ReplyDelete