[prev in list] [next in list] [prev in thread] [next in thread]
List: antlr-interest
Subject: Re: [antlr-interest] Detecting javascript code
From: Peter Crowther <peter.crowther () melandra ! com>
Date: 2011-02-28 15:21:56
Message-ID: AANLkTik=vrYKs0BugakSS-hsLh-vM6OnQB6KnNBzKwz_ () mail ! gmail ! com
[Download RAW message or body]
On 28 February 2011 14:58, zbordie <bruno.costa@auditmark.com> wrote:
> I'm trying to build a tool that detects/recognizes javascript code embedded
> in any
> kind of language or file format, for example PHP, ASP.NET, etc. . Not
> just HTML.
>
> What's your use case? In particular, which of the following three files
(in C# syntax) would you want it to detect and why?
-- file1.cs --
Response.Write("alert('i pwnz u');");
-- file2.cs --
// In Javascript, we'd write this as function doit() { alert('hi'); }
void doit() { MessageBox.Show("hi"); }
-- file3.cs --
Response.Write("ale" + "rt (" + "'pw" + "ned" + "');");
Cheers,
- Peter
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic