Cocos2d JSC: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| Line 55: | Line 55: | ||
|} | |} | ||
=== Tutorial - How to get XXTEA keys === | |||
'''Method 1:''' | |||
* Open file \lib\armeabi-v7a\libcocos2djs.so in hex editor and search for ".jsb-adapter". Key should be stored right before this string. | |||
'''Method 2:''' | |||
* Install and run frida server on your device | |||
* Download this script [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Cocos2d/cocos2d_xxtea_script.js cocos2d_xxtea_script.js] | |||
* Run the script with the command "frida -U --no-pause -l cocos2d_xxtea_script.js -f <game_package_name> | |||
'''Method 3:''' | |||
* Download and install IDA 7 | |||
* Seaach for function "xxtea_decrypt" | |||
* Analyse the function's code to see how the key is stored/generated. | |||
=== QuickBMS Script === | === QuickBMS Script === | ||
Revision as of 11:42, 4 September 2022
Back to index | Edit this page
JSC
- Format Type : Compiled Script
- Endian Order : Little Endian
- Signature : None
Format Specifications
x bytes - file data // it may be encrypted or compressed
Notes and Comments
- This file format occurs in games made using Cocos2d-x framework.
- JSC is a compiled JavaScript file.
- JSC may be compressed with GZIP / ZLIB and encrypted with XXTEA.
Games
List of games using this file format:
| Game Title | Platform | Extension | Type | Encryption Key |
|---|---|---|---|---|
| Brutal Street 2 | Android | *.JSC | SpiderMonkey (version 33) | None |
| Choang Club - Game bai dang cap | Android | *.JSC | SpiderMonkey (version 33) | None |
| Jimi-Kare My Quiet Boyfriend | Android | *.JSC | XXTEA Only | unknown |
| KungFu Hospital | Android | *.JSC | XXTEA + GZIP | yiguangp |
| LifeSimulator - Chinese Life | Android | *.JSC | XXTEA + GZIP | e07a4d47-b82e-4f |
| One Piece (chinese game) | Android | *.JSC | XXTEA + GZIP | b81a1dd7-625d-43 |
Tutorial - How to get XXTEA keys
Method 1:
- Open file \lib\armeabi-v7a\libcocos2djs.so in hex editor and search for ".jsb-adapter". Key should be stored right before this string.
Method 2:
- Install and run frida server on your device
- Download this script cocos2d_xxtea_script.js
- Run the script with the command "frida -U --no-pause -l cocos2d_xxtea_script.js -f <game_package_name>
Method 3:
- Download and install IDA 7
- Seaach for function "xxtea_decrypt"
- Analyse the function's code to see how the key is stored/generated.
QuickBMS Script
Compatible Programs
- cocos2d-x + cocos2d-x-samples
- cocos2d-jsc-decompiler
- cocos-jsc-endecryptor
- Frida Server + cocos2d_xxtea_script.js
- JSC decrypt tool
- JSC Tool
- jsc-decompile-mozjs-34
- Winrar / 7-zip (only for GZIP decompression)
See Also
Gallery