Forum Moderators: open

Message Too Old, No Replies

Advanced methods with Javascript

What are they?

         

Gabriele

4:45 pm on Jan 24, 2006 (gmt 0)

10+ Year Member



I've found this address:
[securiteam.com...]
with a script that contains methods which I didn't know. It's a very old script, but this methods are new for me. I used to think that Javascript has only few methods related with few objects. What this is about? Where can I find a reference guide for this kind of methods? I've posted this question in several italian forums, but they couldn't find an answer to my question. I hope this is the right forum. Thanx in advance for your answers. bye ciao

Gabriele :)

Bernard Marx

1:00 pm on Jan 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is indeed old. I would hope that the loophole concerned has been filled now.

Core Javascript (& JScript) has, as you say, only a very few intrinsic objects.
- The constructors, their prototypes, prototypes' methods, one or two "static" methods, a handful of global methods (like escape), and the global object itself (which in core JS has no "name").

By itself, JS can't do anything. It has no input/output mechanisms. These things need to be supplied by the host. When the host is a browser, for eg, it provides the global method, alert.

The code you see uses JScript's ability to instantiate ActiveX objects, and manipulate their methods and properties to do nasty things to the registry. Whether you can call the manipulation of the scriptable APIs of these objects "Javascript" is a matter of opinion/perspective.