setTimeout and setInterval

Back to articles

hackvertor

Author:

Gareth Heyes

@hackvertor

Published: Fri, 10 Sep 2010 11:23:10 GMT
Updated: Sat, 22 Mar 2025 15:38:16 GMT
Read time: ⏱️ < 1 min read

Not posted for a while and you may have missed this on twitter.

<pre lang="javascript"> setTimeout("MsgBox 1",0,'VBS'); </pre>

Cool so setTimeout supports vbscript as an argument. Yeah I can read MSDN :) but JScript.Encode!!! Yet another place. I wonder what else remains undiscovered....

<pre lang="javascript"> setTimeout("#@~^CAAAAA==C^+.D`8#mgIAAA==^#~@",0,'JScript.Encode'); setInterval("#@~^CAAAAA==C^+.D`8#mgIAAA==^#~@",0,'JScript.Encode'); </pre>

Back to articles