3 ms·
var objStream = new ActiveXObject("ADODB.Stream"); does this count as pure js?
by im3w1l 12y ago
var objStream = new ActiveXObject("ADODB.Stream");
does this count as pure js?
- josteink 12y agoIf you run internet explorer I guess it does.
- methou 12y agoShouldn't that require user's consent to run "ActiveXObject"s?
- maxerickson 12y agoIn theory. That particular object was, I think, disabled in a fix that went out over Windows update: http://support.microsoft.com/kb/870669 http://support.microsoft.com/kb/870669 But I guess it might be enabled on lots of business desktops where the functionality was in use prior to that.
- TazeTSchnitzel 12y agoYes, it's pure JScript, maybe not JavaScript. Importantly, you can execute such a file merely by double-clicking it on Windows (hooray for the Windows Script Host!). So a .js file is far from harmless. It's equivalent to any other executable on Windows, since 98 onwards.