jehna / humanify

Deobfuscate Javascript code using ChatGPT
MIT License
1.68k stars 70 forks source link

Error : The context size (4096)is too small to fit the context shift size 4096 #209

Open LiAyase opened 2 days ago

LiAyase commented 2 days ago

I've encountered an issue while attempting to deobfuscate a JavaScript file that uses function name obfuscation and JSVMP reinforcement, utilizing a large model. My setup is a Windows 11 device with 64GB of RAM and an RTX 4000 ADA GPU with 12GB of VRAM. Could you advise me on how to proceed? Thank you very much!

1ee05b24947e038ca0ca60cd313c5ac

jehna commented 2 days ago

I think this might be because of the recent default context size change at version 2.2.0.

As a workaround you could set the --contextSize argument to something less than 1000, like 750 and try again.

If you can provide an example file which results in this kind of error, it would be super good so I can fix the underlying issue

ahmedalatawi commented 21 hours ago

@jehna Im having the same issue. How to set the --contextSize argument? Could you please provide an example. I tried this and it didn't work: humanify local --contextSize=750 file.js

LiAyase commented 10 hours ago

@jehna Thank you for your reply. Unfortunately, for some reason, I am unable to provide you with the JS file. humanify local --contextSize=750 file.js and humanify local --contextSize 750 file.js, I have tried this but it didn't work

jehna commented 4 hours ago

Can you try lower values too? The original was 200, at least that should work