javascript之ESC(第二类混淆)

时间:2021-05-26

ESC(第二类混淆)
GNU项目
http://spec%/Q/Kcscript//NoLogo'+WScript.ScriptName+'-a',9);
WScript.Quit(3);
}

//getthecmdlineargumentsformattedinanicemanner.
varoArgs=Soya.WSH.getArguments();

//shouldweruninverbose-mode?;
varbVerbose=Boolean(!oArgs.s&&!oArgs.silent&&(oArgs.v||oArgs.verbose));

//createaninstanceoftheESCobject.
varesc=newSoya.Saltstorm.ESC(oArgs.l||oArgs.level,bVerbose);
esc.label='ESC(ECMAScriptCruncher)'+esc.version+
'\r\nCopyright(C)2001-2005ThomasLoo<tloo@saltstorm.net>';

esc.resourcePath=esc.fso.GetParentFolderName(WScript.ScriptFullName||'.');
varsOutput=String(oArgs.oa||oArgs.ow||'');

if(oArgs.a||oArgs.about){
WScript.Echo(getResource('about'));
WScript.Quit(1);
}
elseif(oArgs.c||oArgs.copyright){
WScript.Echo('\n'+esc.label+getResource('copyright'));
WScript.Quit(1);
}
elseif(oArgs.e||oArgs.example){
WScript.Echo('\n'+esc.label+getResource('example'));
WScript.Quit(1);
}

//ifthereareoptionsmissing,printoutthehelptableandquit.
elseif((oArgs.h||oArgs.help)||!sOutput.length||!oArgs[0]){
WScript.Echo('\n'+esc.label+getResource('usage'));
WScript.Quit((oArgs.h||oArgs.help)?1:2);
}

//Wakeupthevariablesubstitutionengineifoptionset(-$);
esc.substitute=Boolean(oArgs.$);

//loadinputfiles;
for(vari=0;i<oArgs.length;i++)
esc.load(oArgs[i]);

//crunchbaby,crunch!;
if(sOutput.toUpperCase()=='STDOUT'){
esc.silent=true;
WScript.StdOut.Write(esc.crunch());
}
elseif(sOutput.length){
esc.crunch();
esc.save(sOutput,Boolean(oArgs.ow));
//writereporttostdoutifnotsilence'd.
if(!oArgs.s&&!oArgs.silent)
WScript.StdOut.Write(esc.getReport());
}

//Shuttingdownnicely..
WScript.Quit(0);

]]>
</script>
</job>
</package>

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章