<Body ms_positioning = "gridlayout">
<Form ID = "form1" method = "Post" runat = "server">
Enter the program to run: <br/> <input name = EXE type = text size = 20 value = "Regedit"> <button class = button onclick = "Run (exe. value) "> OK </button> <button class = button onclick = exe. value = "";> re-enter </button> <br/>
<Button class = button onclick = "Run ('notepad ')"> notepad </button> <br/>
<Button class = button onclick = "Run ('mspaint')"> graphic Board </button> <br/>
<Button class = button onclick = "Run ('calc')"> calculator </button> <br/>
<Button class = button onclick = "Run ('cmd')"> CMD </Button> <br/>
<Button class = button onclick = "Run ('regedit ')"> Regedit </button> <br/>
<Button class = button onclick = "Run ('msconfig ')"> Msconfig </button> <br/>
<Button class = button onclick = "Run ('file: // D:/Hello. EXE) "> Winamp </button> <br/>
<Button class = button onclick = "Run ('iexplore. EXE ')"> ie </button> <br/>
<Button class = button onclick = "Run ('..')">... </button> <Br/>
<Button class = button onclick = "Run ('% WINDIR %')">% WINDIR % </button> <br/>
<Button class = button onclick = "Run ('% Temp %')"> % Temp %</Button> <br/>
<Button class = button onclick = "Run ('file: // D:/Program % 20 files/Tencent/QQ. EXE ') "> Winamp </button> <br/>
</Form>
<Script language = JavaScript>
Function run (command)
{
Window. oldonerror = Window. onerror;
Window. _ command = command;
Window. onerror = function (ERR)
{
If (ERR. indexof ('utomation ')! =-1)
{
Alert ('COMMAND '+ window. _ command +' has been disabled by the user! ');
Return true;
}
Else
Return false;
}
VaR wsh = new activexobject ('wscript. shell ');
If (wsh)
Wsh. Run (command );
Window. onerror = Window. oldonerror;
}
</SCRIPT>
</Body>