Hi all,

I am working with Rhino to try to deobfuscate some JavaScript scripts.
I pass them to the interpreter and it executes them. I would like to
print to screen the string passed to the top level function eval each
time it is called.

I tried working with aspects, but unfortunately the libraries I tried
needed an object associated to the method to add the aspects on so to
use them, and eval function is not associated to any object.
Therefore, I couldn't use aspects to do it.

My solution now is using regular expressions for changing eval for
print before executing the scripts so to automate the process.
However, this is not a totally proper solution for me since some
obfuscation techniques use user defined deobfuscating functions that
use the length of JavaScript code, so if I change it it doesn't work.

Does anybody know how could I add aspects to eval, or how to overwrite
it?
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to