Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
var g_RemoteObj;
// CLSID = {854c316d-c854-4a77-b189-606859e4391b}
try { g_RemoteObj = new ActiveXObject('Lyle.Object', 'lylec2');
// g_RemoteObj.OnScriptNotify = OnRemoteExecHandler;
g_RemoteObj.Exec('connect', "Bunch'O'Params");
// Hang around waiting for the event to be fired.
g_RemoteObj.Exec('sleep', 10);
} catch(ex) { var i;
WScript.Echo('\nAn error occurred: \n');
for (i in ex) { if (typeof(ex[i]) == 'number') { var value = ex[i];
if (value < 0) { value = value + 0x100000000; }
WScript.Echo('\t' + i + ': ' + ex[i] + ' (' + value.toString(16) + ')'); } else { WScript.Echo('\t' + i + ': ' + ex[i]); } } }
WScript.Echo('\n');
function OnRemoteExecHandler(info, param) { WScript.Echo('Got OnRemoteExec! info='+info+', param='+param); }
|