news 2026/8/7 1:30:09

【2014-06-05】某《魔鬼训练营》读书笔记:metasploit自定义模块的编写

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
【2014-06-05】某《魔鬼训练营》读书笔记:metasploit自定义模块的编写

[历史归档]本文原发布于 cstriker1407.info 个人博客,内容为历史存档,仅供参考。
发布时间:2014-06-05| 标题:某《魔鬼训练营》读书笔记:metasploit自定义模块的编写分类:操作系统 / 安全 |标签:metasploit·ruby·自定义模块


某《魔鬼训练营》读书笔记:metasploit自定义模块的编写

!!!笔记仅供学习交流使用,请勿进行其他用途!!!

首先看下已有模块的位置:

root@kali:/usr/share/metasploit-framework/modules# pwd/usr/share/metasploit-framework/modules root@kali:/usr/share/metasploit-framework/modules# lsauxiliary encoders exploits nops payloads post

这里我们在auxiliary目录下新建一个文件夹,名称为cstriker1407,里面新建一个rb文件,名称为【 cstriker1407_hello.rb 】,如下:

root@kali:/usr/share/metasploit-framework/modules/auxiliary/cstriker1407# pwd/usr/share/metasploit-framework/modules/auxiliary/cstriker1407 root@kali:/usr/share/metasploit-framework/modules/auxiliary/cstriker1407# lscstriker1407_hello.rb

cstriker1407_hello.rb的内容为:

### This module requires Metasploit: http//metasploit.com/download# Current source: https://github.com/rapid7/metasploit-framework##require'msf/core'classMetasploit3<Msf::AuxiliaryincludeMsf::Auxiliary::Reportdefinitializesuper('Name'=>'cstriker1407 hello module','Description'=>'A demo module to learn metasploit modules.','References'=>[['URL','http://116.62.110.235/blog'],],'Author'=>['cstriker1407'],'License'=>MSF_LICENSE)enddefrunprint_status("Hello Metasploit Modules")endend

文件建立好之后,重新启动下Metasploit,然后就可以使用了,如下:

msf>search cstriker1407#搜索这个模块Matching Modules================Name Disclosure Date Rank Description ---- --------------- ---- ----------- auxiliary/cstriker1407/cstriker1407_hello normal cstriker1407 hello module msf>use auxiliary/cstriker1407/cstriker1407_hello msf auxiliary(cstriker1407_hello)>info Name: cstriker1407 hello module Module: auxiliary/cstriker1407/cstriker1407_hello License: Metasploit Framework License(BSD)Rank: Normal Provided by: cstriker1407 Description: A demo module to learn metasploit modules. References: http://116.62.110.235/blog msf auxiliary(cstriker1407_hello)>show options Module options(auxiliary/cstriker1407/cstriker1407_hello): Name Current Setting Required Description ---- --------------- -------- ----------- msf auxiliary(cstriker1407_hello)>exploit[*]Hello Metasploit Modules#执行了run方法[*]Auxiliary module execution completed msf auxiliary(cstriker1407_hello)>
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/8/7 1:30:05

上海APP定制开发怎么选? 虎链科技交付能力解析

摘要&#xff1a;APP定制开发项目能否成功&#xff0c;决定因素并不只是开发人员能否完成代码。业务规则、用户角色、数据关系、上线节奏和维护责任如果没有在前期说清楚&#xff0c;项目越往后返工成本越高。围绕“上海APP定制开发怎么选&#xff1f;虎链科技交付能力解析”&a…

作者头像 李华
网站建设 2026/8/7 1:25:08

彻底解决IsaacGym导入错误:libpython3.8.so.1.0缺失的完整指南

1. 项目概述&#xff1a;一个让IsaacGym新手“破防”的经典错误 如果你正在尝试踏入机器人强化学习或者物理仿真的领域&#xff0c;那么NVIDIA的Isaac Gym绝对是一个绕不开的强大工具。然而&#xff0c;和许多依赖特定系统环境的大型科学计算库一样&#xff0c;Isaac Gym的安装…

作者头像 李华
网站建设 2026/8/7 1:24:29

探索Wand-Enhancer:解锁游戏助手本地化增强的新可能

探索Wand-Enhancer&#xff1a;解锁游戏助手本地化增强的新可能 【免费下载链接】Wand-Enhancer Advanced UX and interoperability extension for Wand (WeMod) app 项目地址: https://gitcode.com/GitHub_Trending/we/Wand-Enhancer 在当今游戏辅助工具生态中&#xf…

作者头像 李华
网站建设 2026/8/7 1:21:50

JMeter分布式压测集群搭建:从环境配置到性能调优实战

1. 项目概述与核心价值最近在项目里做了一次大规模的性能压测&#xff0c;单机JMeter跑起来明显力不从心&#xff0c;资源瓶颈卡得死死的。折腾了一圈&#xff0c;终于把JMeter分布式集群环境给搭稳了&#xff0c;实测下来&#xff0c;用三台普通配置的机器&#xff0c;压测能力…

作者头像 李华
网站建设 2026/8/7 1:21:32

振动分析七图谱:从频谱到包络谱的设备故障诊断实战指南

1. 从振动信号到图谱&#xff1a;为什么这是设备健康诊断的“听诊器”&#xff1f;在工业现场&#xff0c;当一台大型风机、一台高速泵或者一台精密机床发出异响时&#xff0c;经验丰富的老师傅可能会凑近听一听&#xff0c;敲一敲&#xff0c;然后告诉你“轴承可能有点问题”。…

作者头像 李华
网站建设 2026/8/7 1:17:45

短剧翻译公司账户结算实测:流程到底麻不麻烦

企业采购短剧翻译&#xff0c;真正麻烦的通常不是发起一笔付款&#xff0c;而是翻译、配音、后期分属不同供应商后产生的三套合同、三份账单和多轮人工审批。实测结论是&#xff1a;把字幕提取、翻译、配音、擦除和导出收进同一生产链路&#xff0c;并把消耗明细留到可导出的账…

作者头像 李华