Darian Anthony Patrick on 29 May 2006 16:34:52 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] executing javascript?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've used Rhino in the past: http://www.mozilla.org/rhino/

Eric wrote:
> Does anyone know of a way to execute javascript outside of a browser?
> 
> I have a bit of suspect javascript that I'd like to execute and see 
> what it is actually telling the browser.  The "view source" option
> shows me this:
> 
> <script>
> <!--
> document.write(unescape("%3Cstyle%20type%3D%22text/css%22.......
> //-->
> </script>
> 
> (The third line is actually 4328 characters long)
> 
> If I could get javascript to just run and redirect it's output to a 
> file then I could see what it's hiding in all the %nn's
> 
> Update:
> 
> I used Firefox's DOM inspector - apparently the bulk of the "action" 
> takes place in a flash program that gets downloaded.  Now I'll have 
> my daughter log into MySpace.com so I can grab that flash (as well 
> as the other javascript files that are sourced.)  She was warned
> about the page - it was called a "redick"  (redirect?) but that 
> was AFTER she clicked on it.
> 
> Still would like to know how to execute javascript sans browser if 
> anybody knows.
> 
> 
> Thanks
> 
> Eric

- --
Darian Anthony Patrick <dapatrick@darianpatrick.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEeyKEKpzEXPWA4IcRAkE/AKCH/+pLK2b4UC8jL6RKipFivP97CQCgjaLV
d66ktCvDbkWC45buBxb/tIQ=
=Tv4a
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug