https://github.com/bartlomiejduda/JSC-PyDecrypt-Tool
Tool for decrypting JSC files from Cocos2d games
https://github.com/bartlomiejduda/JSC-PyDecrypt-Tool
cocos-creator cocos2d cocos2d-x cocoscreator decode decompile decrypt encrypt extract gzip javascript jsc modding python spidermonkey tool xentax xxtea zip
Last synced: 2 months ago
JSON representation
Tool for decrypting JSC files from Cocos2d games
- Host: GitHub
- URL: https://github.com/bartlomiejduda/JSC-PyDecrypt-Tool
- Owner: bartlomiejduda
- License: gpl-3.0
- Created: 2022-09-04T17:36:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-16T22:31:31.000Z (6 months ago)
- Last Synced: 2025-03-08T21:47:17.320Z (2 months ago)
- Topics: cocos-creator, cocos2d, cocos2d-x, cocoscreator, decode, decompile, decrypt, encrypt, extract, gzip, javascript, jsc, modding, python, spidermonkey, tool, xentax, xxtea, zip
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 19
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Info
**JSC-PyDecrypt-Tool** is a Python program for decrypting Cocos2d JSC files.
You need valid key to decrypt files. You can use **[Frida](https://frida.re/)** with my **[XXTEA Script](https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Cocos2d/cocos2d_xxtea_script.js)** to get
the key from any Cocos2d android app.Example frida command:
```
frida -U -l cocos2d_xxtea_script.js -f
```# Usage
```
usage: jsc_pydecrypt_tool_v1.0.exe [-h]
[-d ]JSC PyDecrypt Tool v1.0
options:
-h, --help show this help message and exit
-d , --decrypt
Decrypt data
```# Building on Windows
1. Download and install **[Python 3.11.6](https://www.python.org/downloads/release/python-3116/)**. Remember to add Python to PATH during installation
2. Download and install **[Microsoft C++ Build Tools](https://visualstudio.microsoft.com/pl/visual-cpp-build-tools/)**
3. Download project's source code and save it in "JSC-PyDecrypt-Tool-main" directory
4. Go to the directory containing source code
- ```cd JSC-PyDecrypt-Tool-main```
5. Create virtualenv and activate it
- ```python -m venv my_env```
- ```.\my_env\Scripts\activate.bat```
6. Install all libraries from requirements.txt file
- ```pip install -r requirements.txt```
7. Add project's directory to PYTHONPATH environment variable
- ```set PYTHONPATH=C:\Users\user\Desktop\JSC-PyDecrypt-Tool-main```
8. Run the jsc_pydecrypt_tool.py file with proper command line arguments
- ```python jsc_pydecrypt_tool.py -d project.jsc "secret" project.js```