javascript - 通过网站上的链接在服务器上运行 powershell 是个好主意吗?

标签 javascript php security iis powershell

我帮助我的同事编写了一个脚本,该脚本对服务器的文件和结构进行了更改,现在我的同事希望我添加一个网站链接,以便他可以从任何地方运行该脚本。这对我来说听起来不是一个好主意,但我真的无法向他提供足够的细节来说服他放弃。

我认为在网络前端授予对该脚本的访问权限是一个坏主意,这是完全错误的吗? 如果这不是一个坏主意,你会建议我从哪里开始?我应该注意哪些安全措施? 如果这是一个坏主意,你会如何说服他放弃呢? (他的级别比我高一点,我的老板希望我帮助他)

最佳答案

对我来说听起来是个坏主意。

我认为,如果您改为设置 PowerShell Web Access,您会过得更好并获得所有好处:

Windows PowerShell® Web Access, first introduced in Windows Server® 2012, acts as a Windows PowerShell gateway, providing a web-based Windows PowerShell console that is targeted at a remote computer. It enables IT Pros to run Windows PowerShell commands and scripts from a Windows PowerShell console in a web browser, with no Windows PowerShell, remote management software, or browser plug-in installation necessary on the client device. All that is required to run the web-based Windows PowerShell console is a properly-configured Windows PowerShell Web Access gateway, and a client device browser that supports JavaScript® and accepts cookies.

http://technet.microsoft.com/en-us/library/hh831611.aspx

关于javascript - 通过网站上的链接在服务器上运行 powershell 是个好主意吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19188987/

相关文章:

javascript - Ionic 2 在另一个页面上运行该函数

PHP 和 JavaScript 日期不匹配 - 奇怪的异常

php - 防止直接访问 mp3/wav 文件,同时允许 Flash 播放器使用 .htaccess(或 PHP)访问它们

php - 输入的是URL,如何防止xss

security - 根据页面实现 HTTP 或 HTTPS

JavaScript console.dir 和运行时

javascript - 带 slider 的 D3 图需要更改外部节点的颜色

php - ajax 检查用户名 onblur

javascript - If语句在javascript函数中的选择框值

PHP - 从数据 URI 调整图像大小并压缩图像