javascript之ESC(第二类混淆)

2019-06-02 21:15:54王旭

}
function $0r($1h){
var $1i=($1h||'rn'),
$1j=this.label?String($1i+this.label+$1i):'';
if(!this.report.elapsedTime){
$1j+='Nothing to report, yet...';
return(!$1k)?this.out($1j,1):$1j;
}
var $1l=Boolean(this.substitute||this.crunchLevel>=4),
$1m=this.report.rawSize-this.report.crunchedSize;
if(this.report.scripts.length){
$1j+="-----------------------------------------------------------------------------"+$1i;
$1j+=" Crunching script(s):rnt * "+this.report.scripts.join("rnt * ")+$1i;
$1j+="-----------------------------------------------------------------------------"+$1i;
$1j+=" "+(this.outMode||"Put")+" to : "+(this.outFile||"[buffer]")+" ("+
(this.report.crunchedSize/1024).toFixed(2)+" kb)"+$1i;
}
$1j+="-----------------------------------------------------------------------------"+$1i;
$1j+=" Processtime     :t"+(this.report.elapsedTime/1000).toFixed(3)+" secs"+$1i;
$1j+=" Crunch-level    :t"+this.crunchLevel+$1i;
$1j+=" Subst. engine   :t"+($1l?'On':'Off')+$1i;
if($1l)
$1j+=" Substitutions   :t"+(this.$1n[1]-9)+$1i;
$1j+=" Original size   :t"+(this.report.rawSize/1024).toFixed(2)+" kb"+$1i;
$1j+=" Crunched size   :t"+(this.report.crunchedSize/1024).toFixed(2)+" kb"+$1i;
$1j+=" Saving ratio    :t"+($1m/1024).toFixed(2)+" kb"+$1i;
$1j+="   -'' ''-   (%) :t"+(($1m/this.report.rawSize)*100).toFixed(2)+" %"+$1i;
$1j+="-----------------------------------------------------------------------------"+$1i;
return $1j;
}
if(typeof(Soya)=='object')Soya.registerBean('Soya.Saltstorm.ESC',false,1);

/*** </POD> ***/

]]>
</script>
<script language="JScript">
<![CDATA[
    /*
    Command flow control script for ESC.wsf
    Edited : 2005-02-06
    */

    var oShell = WScript.CreateObject('WScript.Shell');

    if(!oShell)
      WScript.Quit(64);

    // Do we have Jscript 5.5+ ?
    else if(oShell && parseFloat(ScriptEngineMajorVersion() + '.' + ScriptEngineMinorVersion()) < 5.5)
      oShell.Popup(getResource('jscript'), 64, WScript.ScriptName, 16), WScript.Quit(4);

    // Is ESC executed under cscript ?
    // if not let user select switching to cscript automagically.