Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

gav (2710)

gav
  (email not shown publicly)
http://www.estey.com/
AOL IM: flufflegavin (Add Buddy, Send Message)

Hacker in NYC.

Journal of gav (2710)

Monday July 08, 2002
06:45 PM

project 'never sleep at night'

[ #6229 ]
I've been working on a project that basically needs to do some trickery one a page we have no control over. We can only insert some text at the top and add a few extra fields etc. Now, luckily as it doesn't do any HTML escaping I've come up with this solution:
  1. Script uses W3C DOM to parse the page and work out some bits of information we've cleverly hidden in some white on white text
  2. Script writes out a <script> tag to load an external Javascript file which is actually a perl script which queries a database and returns some arrays
  3. Script writes out Javascript which calls a script in the main script that writes some more stuff to the page

Now that's scary, I feel quite dirty now :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.