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.

Help me decrypting an XXTEA encrypted file

Featured Replies

  • Author
  • Localization

Fibble, posted Wed Oct 16, 2019 3:35 pm (51566)


So I got a little problem with decryption a XXTEA encrypted zip file (cocos2d-lua).
I do know the key and the sign but i cant get ANY XXTEA decryption to work for me.

Decryption key (used by the game) is:
Code:
wW4Dm]fu%kGK}2nG

The Sign is:
Code:
MB-.Z'F*fNJz[9Rr 


I simply cant decrypt the file :c (and encrypt it back!)
  • Author
  • Localization

Fibble, posted Wed Oct 16, 2019 3:36 pm (51567)


The game name itself is
Quote:
Trials of Heroes
  • Author
  • Localization

atom0s, posted Thu Oct 17, 2019 12:27 am (51576)


Where are you pulling the decryption key from? It's not stored in the .so files from the look of it and not in the .dex either.
  • Author
  • Localization

Fibble, posted Thu Oct 17, 2019 3:23 pm (51586)


I decompiled and debugged the game in IDA ( - Breakpoints to get the key).
I do also have the decrypted *.zip file. Just need to acutally overwrite the encrypted one :/
  • Author
  • Localization

atom0s, posted Fri Oct 18, 2019 3:47 am (51595)


Fibble wrote:
I decompiled and debugged the game in IDA ( - Breakpoints to get the key).
I do also have the decrypted *.zip file. Just need to acutally overwrite the encrypted one :/


New to Android debugging personally, do you have a specific guide/site you used to get things setup and working for this? Everything I've tried so far doesn't seem to work, and refuses to let me debug.
  • Author
  • Localization

atom0s, posted Fri Oct 18, 2019 8:39 pm (51605)


Actually think I just noticed why. Didn't realize the default emulators AVDs are using x86. The apps I was testing with were expecting arm64-v8a or armeabi-v7a. Downloading the other system stuff and redoing the AVDs and will see if that fixes the emulator problems. Hopefully, IDA's remote server stuff will run on the emulators as well.
  • Author
  • Localization

aluigi, posted Sat Oct 19, 2019 1:58 pm (51618)


Tried many combos of xxtea and xtea but all the results are a failure.
Quite normal since there are different settings of xxtea so can't do anything without the right parameters
  • Author
  • Localization

Fibble, posted Mon Oct 21, 2019 4:29 am (51653)


aluigi wrote:
Tried many combos of xxtea and xtea but all the results are a failure.
Quite normal since there are different settings of xxtea so can't do anything without the right parameters


Well kinda guessed that :/
Thanks anyways for the try aluigi :)
  • Author
  • Localization

rai88kau, posted Thu Apr 02, 2020 4:20 am (55458)


Fibble wrote:
I decompiled and debugged the game in IDA ( - Breakpoints to get the key).
I do also have the decrypted *.zip file. Just need to acutally overwrite the encrypted one :/


can you tell me, how to did this?
thank you so much
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.