Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: Execution of Javascript from PERL

From: Brass, Phil (ISS Atlanta) <PBrass(at)iss.net>
Date: Thu Apr 17 2003 - 10:52:45 EDT


There are four perl modules available on CPAN related to Javascript: Data::JavaScript - convert perl objects to JavaScript objects by generating JS code
Data::JavaScript::LiteObject - same as above, not sure about difference JavaScript - execute JavaScript from within Perl (XS interface to Mozilla Spidermonkey JS interpreter)
JavaScript::Toolbox - Objects to render cool JavaScript stuff from your CGI The real problem is not getting the JavaScript in the page to execute, it's getting it to execute in a meaningful context - the browser provides a large number of functions that client script can call (though apparently none for examining the server certificate, but that's another thread), and it provides a bunch of objects that represent the current frameset. Most of the functions operate on the object, so you could write them once probably. And you would have to write a function that converts a frameset or page to a DOM object accessible from the context in which the scripts are run.

Then, you have to go through the page and decide how, when, and with what parameters to run each script.

Alternately, you might be able to host a browser object (at least on win32), and get it to do most of the hard work for you.

Good luck!

Phil

> -----Original Message-----
> From: EEshwar [mailto:eeshwarf@indiatimes.com]
> Sent: Thursday, April 17, 2003 6:53 AM
> To: webappsec@securityfocus.com
> Subject: Execution of Javascript from PERL
>
>
>
>
> Hi,
>
>
>
> We are developing a tool in PERL to analyze vulnerabilities
Received on Thu Apr 17 11:05:35 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:50 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library