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.

New XXtea version

Featured Replies

  • Author
  • Localization

pravda, posted Thu Jan 17, 2019 10:09 am (42467)


Hi all,

I tried to decrypt text asset from cocos2d game : https://apkpure.com/fr/word-swipe/com.wordgame.puzzle.block.crush

I found the key using IDA pro ( 4da84b0a-727f-4a ) but when add it to the existing bms script ( word charm ) it failed for some reason.

the new encrypted file does not contain the regular xxtea header , file here : https://ufile.io/ishru.

Any help will be really appreciated.

Regards.
  • Author
  • Localization

hackspeedok, posted Thu Jan 17, 2019 10:31 am (42468)


Hi pravda, can you guide me how to decrypt some normal XXtea encryption on Cocos2d games ? Thanks
  • Author
  • Localization

pravda, posted Thu Jan 17, 2019 10:39 am (42469)


The commun fonction is AppDelegate::applicationDidFinishLaunching(), you can found the XXtea key here. It can be visible or encrypted.

It's better to open new topic and put the name of the game i will help you if i can :)
  • Author
  • Localization

hackspeedok, posted Thu Jan 17, 2019 10:55 am (42470)


pravda wrote:
The commun fonction is AppDelegate::applicationDidFinishLaunching(), you can found the XXtea key here. It can be visible or encrypted.

It's better to open new topic and put the name of the game i will help you if i can :)

Thanks. But can you say more detail steps because I've never done this through
  • Author
  • Localization

pravda, posted Mon Jan 21, 2019 10:16 am (42597)


any help please :)
  • Author
  • Localization

aluigi, posted Mon Jan 21, 2019 9:11 pm (42611)


First it's necessary to use deflate and base64 but the key is different, both aes and xxtea fails.
This script does all the work and you only need to set the correct key:
Code:
get NAME basename

comtype deflate_noerror
get SIZE asize
clog MEMORY_FILE 0 SIZE SIZE

comtype base64
get SIZE asize MEMORY_FILE
clog MEMORY_FILE 0 SIZE SIZE MEMORY_FILE

set KEY string "4da84b0a-727f-4a"
encryption xxtea KEY "0x9e3779b9 0" 0 16    # cocos2d
get SIZE asize MEMORY_FILE
log NAME 0 SIZE MEMORY_FILE
  • Author
  • Localization

pravda, posted Tue Jan 22, 2019 9:31 am (42636)


Thank you very much.

common function on cocos2d is AppDelegate::applicationDidFinishLaunching() and the key fails, i will try and post result here.

Regards.
  • Author
  • Localization

bazickoff, posted Sat Jan 26, 2019 4:34 pm (42786)


pravda wrote:
Thank you very much.

common function on cocos2d is AppDelegate::applicationDidFinishLaunching() and the key fails, i will try and post result here.

Regards.



Hi brother I wonder if the bms script worked for you, because didn't worked for me
have you found a solution ?
  • Author
  • Localization

pravda, posted Sat Jan 26, 2019 5:17 pm (42787)


No don't work.
  • Author
  • Localization

bazickoff, posted Sat Jan 26, 2019 5:26 pm (42788)


pravda wrote:
No don't work.


I think the file encrypted with xxtea and compressed ,
maybe you wanna see this script
this is the game script ( word swipe )
the decryption function is in Line 18506
and compression function 18485
  • Author
  • Localization

pravda, posted Sun Jan 27, 2019 10:56 am (42822)


Intersesting how did you get this ?.

But the key extraction is from IDA pro and libcocos2djs.so ( decompiling library arm ), the commun function to decrypt asset on cocos2d is AppDelegate::applicationDidFinishLaunching() ( search this function and you will find the key ) . It works for major cocos2d based games but not for this one and i don't know why.
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.