Forum Moderators: open
Gabriele :)
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.