返回首页
EN
H7 / SECURITY RESEARCH NOTES

通过获取windows补丁信息进行系统权限提升

概述

  • 溢出漏洞提权是通过利用目标操作系统层的漏洞进行权限提升,在渗透测试过程中通常是拿到目标机器Shell之后开始进行提权。
  • 步骤为:获取目标机器补丁信息 -> 通过补丁信息获取相对应的漏洞 -> 漏洞利用

获取目标机器补丁信息

通过wmic查看补丁信息

wmic qfe get Caption,description,hotfixid,installedon

通过windows-exploit-suggester辅助发现漏洞

  • 首先打开powershell通过systeminfo命令获取系统信息保存到本地txt文件
systeminfo > systeminfo.txt

  • 下载windows-exploit-suggester工具,下载地址如下:
https://github.com/AonCyberLabs/Windows-Exploit-Suggester
  • 使用windows-exploit-suggester下载最新微软公开漏洞库到本地xls文件,注意这里是python2
python2 windows-exploit-suggester.py --update
  • 然后使用windows-exploit-suggester下载的xls漏洞库文件和systeminfo.txt文件进行对比,以发现可能存在的漏洞
python2 windows-exploit-suggester.py --database 2022-01-21-mssb.xls  --system systeminfo.txt

利用可能存在的漏洞提权

windows提权漏洞利用工具

https://github.com/SecWiki/windows-kernel-exploits/ # 项目地址

  • 该项目集成了大部分的windows溢出漏洞提权的EXP,可以直接使用。

常见系统版本漏洞利用

Windows2003:pr、巴西烤肉、2018-8020
Windows2008:利用 ms16-075劫持token
Windows 2012/2016:ms18-8120