An open API service indexing awesome lists of open source software.

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

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```