Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.7k
-
It seems relatively easy to deobfuscate code using online tools. The result is still gibberish, however the used strings can be read. This shows a little too much of the inner workings of our code. The deopfuscation process seems to be able to find the decodekey for the rc4 directly in the code. So my question is, if it is possible to provide this key as an option when obfuscating, and then provide it, fx. as an variable on the script tag used to run the obfuscated script and then fetch this key using the currentScript global. If the script is removed after load, it becomes extremely difficult to even see that such key is provided, and it would make the deobfuscation much harder. What do you think? Cheers |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 5 replies
-
Suppose, that nothing hard to find external key |
BetaWas this translation helpful?Give feedback.
All reactions
-
The key is provided by chrome extension code, where the code is loaded through injectScript. It will never be impossible to deobfuscate, I guess that is the nature of js, but if it is not possible to simply use an online tool that recognizes that it has been obfuscated using the javascript-obuscator tool and deobfuscates it right away. Hiding the key elsewhere will make it much harder, and require real effort. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Don't sure on 100%. But, suppose external key is like: |
BetaWas this translation helpful?Give feedback.
All reactions
-
Well, I would like to provide a key string to be used when obfuscating (as an option) and a function that retrieves the key from within the script, again as an option. Fx.: It could also be a global variable, or fetched async from somewhere etc.:-) |
BetaWas this translation helpful?Give feedback.
All reactions
-
Same as right now? |
BetaWas this translation helpful?Give feedback.
All reactions
-
No a I mean in the global scope, fx. set on global/window object. The point is that the key is NOT part of the script itself, and therefore the script can not on its own be deobfuscated, but requires at least the detective task to figure out from where / how the key is obtained. |
BetaWas this translation helpful?Give feedback.