美文网首页前端学习
HTML web shell使用

HTML web shell使用

作者: 进击的小张 | 来源:发表于2017-09-29 10:22 被阅读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

相关文章

网友评论

    本文标题:HTML web shell使用

    本文链接:https://www.haomeiwen.com/subject/kbobextx.html