【发布时间】:2018-08-28 11:37:53
【问题描述】:
我创建的任何自定义 metasploit 模块都没有被加载。
我尝试了这两个演示:
https://www.offensive-security.com/metasploit-unleashed/building-module/https://github.com/rapid7/metasploit-framework/wiki/Loading-External-Modules
并得到与未找到模块相同的结果。
在这里发帖之前,我检查了这些:
https://forums.kali.org/showthread.php?28940-Metasploit-modules-not-loading! https://www.offensive-security.com/metasploit-unleashed/modules-and-locations
来自 SO:
I can't get new modules to load in metasploit How to add module in Metasploit?
没有帮助
仅使用 github 示例,在 Kali 主机上,我确实将文件放在正确的位置(根据演示):
root@kali:~/.msf4/modules/exploits/test# ls -al
total 12
drwxr-xr-x 2 root root 4096 Mar 19 13:59 .
drwxr-xr-x 3 root root 4096 Mar 19 13:58 ..
-rw-r--r-- 1 root root 9 Mar 19 13:59 test_module.rb
然后我运行reload_all 并在使用此命令时:
use exploit/test/test_module 它返回 Failed to load module。
我也尝试手动加载该路径,但也失败了:
msf > loadpath ~/.msf4/modules/
Loaded 0 modules:
【问题讨论】:
标签: metasploit