Created
July 17, 2020 02:42
-
-
Save blurbdust/d8b2c57c3b06f325cd13e5b903c7f611 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" language="javascript"> | |
function acitve() { | |
var oShell = new ActiveXObject("wscript.shell"); | |
oShell.Run("cmd.exe & pause"); | |
} | |
function wscript() { | |
var shell = WScript.CreateObject("WScript.Shell"); | |
shell.Run("cmd.exe & pause"); | |
} | |
</script> | |
calling it with:<br/> | |
<a href="javascript:acitve()">cmd ActiveX</a> | |
<br/> | |
<a href="javascript:wscript()">cmd WScript</a> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment