r/AskReverseEngineering • • Nov 01 '23
Reverse engineering network traffic of and android game built with Unity
Here is what I did:
- installed the game on an emulator
- setup a local proxy to act as a middle-man and decode the https traffic
- configured the emulator to use my local proxy
- I can decrypt the https and read the requests. I can see the headers in plain-text
The problem is that the body of the requests is also encrypted with something different. I tried to use some online tools to brute-force and decode it, but with no results. I found that unity offers modules to further encrypt network requests, so I guess developers used them.
My idea is to decompile the code somehow. I downloaded the APK to my local machine, got the jar, but I do not know where the game code is. All resources online seem to have a different folder structure than what I found. You can see it in the screenshot.
Ideas?


2
u/anaccountbyanyname Nov 06 '23 edited Nov 06 '23
The client is requesting gzip/deflate data and getting a compressed response. Probably a deflate stream (https://en.wikipedia.org/wiki/Deflate) but I haven't really worked with them in raw form to for sure identify it
What are you proxying through? Burp is supposed to be able to automatically decompress the responses of they're anything standard
1
u/Accomplished_Deer_ Jun 13 '24
Did you ever figure this out? Trying to decode similar network traffic.
1
u/-1Mbps Nov 01 '23
Which emulator did you use?