前端学习

HTML web shell使用

2017-09-29  本文已影响0人  进击的小张
11123.JPG

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>js</title>
<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
} catch(e){
alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确.');
alert(e.message);
alert(e.description);
alert(e.number) ;
alert(e.name);
}

}

</SCRIPT>
</head>

<body >
<a href="#" onclick="Run('file:///C:/Users/ipmitool/ipmitool_client.exe 10.152.93.175')">运行EXE</a>
</body>
</html>

image.png
上一篇 下一篇

猜你喜欢

热点阅读