My codes need to decrypt those self-decrypting scripts (malicious script authors love to encrypt their codes). To implement this goal, I'm planning to do the following things:
1) parse the html codes and generate a DOM tree using htmlcxx or tidy/Xerces
2) interpret/run javascript codes using SpiderMonkey
3) write a basic vbscript-to-javascript converter which can translate vbscript String and Math statements into equivalent javascript, so that SpiderMonkey can run the translated scripts
My questions are:
a) is my plan going to work?
b) how to give SpiderMonkey an opportunity to read/write my DOM tree?
c) is a vbscript-to-javascript converter a good solution to intepret vbscripts? I didn't find any open source vbscript interpreter/parser or lex/yacc source
any suggestions will be appreciated.
Questions on SpiderMonkey
-
- Guest
Daifne wrote:What is SpiderMonkey? There is no program connected to Mozilla that is named that.
It's Mozilla's javascript interpreter.
"SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript." - from http://www.mozilla.org/js/spidermonkey/
Hope I post my question to the right place...