I did look at Rhino, but all I want is to separate the various functions
and declarations in a javascript file for further processing. I need to
isolate the possible malscript from a large, mostly valid, .js file.

 

Thomas J. Raef

 

From: Scott Stanchfield [mailto:[email protected]] 
Sent: Thursday, February 04, 2010 7:05 AM
To: Thomas Raef
Cc: [email protected]
Subject: Re: [antlr-interest] Noob question

 

You may want to look at using the parser in Rhino for this - I haven't
looked atbits code, but that might be a good starting point...
-- Scott

        On Feb 4, 2010 7:16 AM, "Thomas Raef"
<[email protected]> wrote:
        
        I want to use ANTLR to parse potentially malicious javascript
files. The
        files in question have a string or strings embedded in them that
don't
        cause the javascript file to error, but I do want to separate
each
        function or declaration in the .js file into an individual
string, then
        I'll process them to see if they are malicious or not.
        
        
        
        Is this the right tool? And if so, is there anyone who can point
me in
        the right direction to get started? I know it's a very noob
question,
        but I've been trying different tools and failing at each one.
        
        
        
        Can anyone "hook a brother up?"
        
        
        
        Thank you in advance
        
        
        
        Thomas J. Raef
        
        
        
        
        List: http://www.antlr.org/mailman/listinfo/antlr-interest
        Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to