Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

What is the problem? #4

Open
Sugoiiiii opened this issue May 6, 2022 · 10 comments
Open

What is the problem? #4

Sugoiiiii opened this issue May 6, 2022 · 10 comments
Labels
question Further information is requested

Comments

@Sugoiiiii
Copy link

C:\Users\M\Desktop\luac-Decryption-master>python main.py -d bsj!@#cocos XXTEA C:\Users\Min\Desktop\game\assets\scr
Traceback (most recent call last):
File "main.py", line 1, in
import xxtea
ModuleNotFoundError: No module named 'xxtea'

image

@Mas0nShi
Copy link
Owner

Mas0nShi commented May 6, 2022

ModuleNotFoundError: No module named 'xxtea'

hello, you need install module xxtea first.

pip3 install xxtea

@Mas0nShi Mas0nShi added the question Further information is requested label May 6, 2022
@Sugoiiiii
Copy link
Author

ya i am done intall xxtea and loguru

C:\Users\M\Desktop\luac-Decryption-master>python main.py -d bsj!@#cocos XXTEA C:\Users\Min\Desktop\game\assets\scr

This is decrypt for Coco2d-luac .luac.
←[1;37m Usage : ←[0m
python main.py [-d] [xxteaKey] [sign] [jscDir/zipFile]
←[1;37m Example : ←[0m
python main.py -d e73c83539f2e65ab159 b4d6f1b968 C:\DecJsc-master\src
python main.py -d e73c83539f2e65ab159 b4d6f1b968 C:\DecJsc-master\game.zip
←[1;37m Tips : ←[0m
-d or -decrypt [decrypt]
If the TEA is 16 bytes of \x00, please fill in NONE
Supports folders and individual LUAC or ZIP files
If you have any questions, please contact [ [email protected] ]

@Mas0nShi
Copy link
Owner

Mas0nShi commented May 6, 2022

try use quote include params.
e.g.

python main.py -d "e73c83539f2e65ab159" "b4d6f1b968" "C:\DecJsc-master\src"

@Sugoiiiii
Copy link
Author

Sugoiiiii commented May 6, 2022

py runs but returns

Traceback (most recent call last):
File "main.py", line 197, in
main()
File "main.py", line 192, in main
batchDecrypt(srcDir=srcDir, xxteaKey=xxtea_key, sign=sign)
File "main.py", line 144, in batchDecrypt
decData = decrypt(filePath, xxteaKey, sign) # decrypt core
File "main.py", line 124, in decrypt
dec_data = xxtea.decrypt(data=data[len(sign):], key=key[:16], padding=False, rounds=0)
ValueError: Data length must be a multiple of 4 bytes and must not be less than 8 bytes

@Mas0nShi
Copy link
Owner

Mas0nShi commented May 6, 2022

give me apk file if it's convenient for you, i will look at it later. (

@Sugoiiiii
Copy link
Author

Does xxtea need to specify the version?

@Mas0nShi
Copy link
Owner

Mas0nShi commented May 7, 2022

No, it's standard algorithm.

@Mas0nShi
Copy link
Owner

Mas0nShi commented May 7, 2022

I don't know this app is modify default encryption or not, so there's nothing I can do.

@Sugoiiiii
Copy link
Author

Is this decryption fail?

image

@Mas0nShi
Copy link
Owner

Mas0nShi commented May 8, 2022

no, it's looks like luajit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants