Questions on SpiderMonkey

Closed Forum
Locked
Guest
Guest

Questions on SpiderMonkey

Post by Guest »

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.
User avatar
Daifne
Moderator
Posts: 123071
Joined: July 31st, 2005, 9:17 pm
Location: Where the Waters Meet, Wisconsin

Post by Daifne »

What is SpiderMonkey? There is no program connected to Mozilla that is named that.
Guest
Guest

Post by 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...
User avatar
Daifne
Moderator
Posts: 123071
Joined: July 31st, 2005, 9:17 pm
Location: Where the Waters Meet, Wisconsin

Post by Daifne »

I don't know where else it would go, so I'll leave it here. If another mod has an idea they can move it for you.
Locked