Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Can someone help me decrypt a Chinese game?

Featured Replies

  • Author
  • Localization

LeonNeol, posted Sun Feb 23, 2020 3:53 pm (54191)


I downloaded the apk and unpack it, all the assets are encrypted in someway. There's a bunch of so file in \lib\x86 but the one I think that is most likely to contain decryption method is libtpnsSecurity.so. I opened it in IDA and found some functions:
This is as far as I can go :(

The game may use TEA or XXTEA
I have no experience in the matter so I hope someone can help me. I attached a zip file which contains the so files, some lua files and pngs

Note: The game server actually leaked its Directory Listing and I was able to grab on some php files, one of them is xxtea.php which is just the source code for the algorithm, others are just functions with no clues, they are also added in zip files.

Thank you

files.zip https://www.dropbox.com/s/ohbrsbp2j7obrq0/files.zip?dl=0
  • Author
  • Localization

LokiReborn, posted Sun Feb 23, 2020 10:46 pm (54194)


LeonNeol wrote:
I downloaded the apk and unpack it, all the assets are encrypted in someway. There's a bunch of so file in \lib\x86 but the one I think that is most likely to contain decryption method is libtpnsSecurity.so. I opened it in IDA and found some functions:Capture.PNG
This is as far as I can go :(

The game may use TEA or XXTEA
I have no experience in the matter so I hope someone can help me. I attached a zip file which contains the so files, some lua files and pngs

Note: The game server actually leaked its Directory Listing and I was able to grab on some php files, one of them is xxtea.php which is just the source code for the algorithm, others are just functions with no clues, they are also added in zip files.

Thank you

files.zip https://www.dropbox.com/s/ohbrsbp2j7obrq0/files.zip?dl=0


The SO files are just libraries, so while it may be used to decrypt the files it's also unlikely for the key to be in the library itself. that would come from the main executable calling the library w/ the key as a parameter.
  • Author
  • Localization

LeonNeol, posted Mon Feb 24, 2020 2:52 pm (54216)


LokiReborn wrote:
LeonNeol wrote:
I downloaded the apk and unpack it, all the assets are encrypted in someway. There's a bunch of so file in \lib\x86 but the one I think that is most likely to contain decryption method is libtpnsSecurity.so. I opened it in IDA and found some functions:Capture.PNG
This is as far as I can go :(

The game may use TEA or XXTEA
I have no experience in the matter so I hope someone can help me. I attached a zip file which contains the so files, some lua files and pngs

Note: The game server actually leaked its Directory Listing and I was able to grab on some php files, one of them is xxtea.php which is just the source code for the algorithm, others are just functions with no clues, they are also added in zip files.

Thank you

files.zip https://www.dropbox.com/s/ohbrsbp2j7obrq0/files.zip?dl=0


The SO files are just libraries, so while it may be used to decrypt the files it's also unlikely for the key to be in the library itself. that would come from the main executable calling the library w/ the key as a parameter.


I dont think there are any executables in an android app. As far as my knowledge go, logics and stuff are all inside the so files.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.