windows 下加载执行hta文件的方法 - magic_zero
2018-4-13 14:19:0 Author: www.cnblogs.com(查看原文) 阅读量:3 收藏

首先编写这么一个hta的文件:

<html>
<head>
    <script>
        s = new ActiveXObject("WScript.Shell");
        s.run("%windir%\\System32\\cmd.exe /c calc.exe", 0);
        window.close();
    </script>
</head>
</html>

然后运行:

rundll32.exe url.dll,OpenURL "c:\\Users\\10920\\Desktop\\calc.hta"

结果如下:

会弹出计算器来。

posted @ 2018-04-13 14:19  magic_zero  阅读(2591)  评论(0编辑  收藏  举报


文章来源: https://www.cnblogs.com/magic-zero/p/8615624.html
如有侵权请联系:admin#unsafe.sh