Cocos2d JSC

From XentaxWiki
Revision as of 20:07, 4 September 2022 by imported>Ikskoks (→‎JSC)
Jump to navigation Jump to search

Back to index | Edit this page

JSC, JS

  • 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 used by SpiderMonkey Engine.
  • 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
DesignVille: Merge & Design Android *.JS Uncompiled JavaScript None
Happy Animal Hospital Android *.JSC XXTEA + GZIP dwyygp
Jimi-Kare My Quiet Boyfriend Android *.JSC SpiderMonkey (version 33) None
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
Top War: Battle Game Android *.JSC XXTEA + GZIP 221640c9-d86d-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

See Also

Gallery