【问题标题】:My metasploit module(s) not found/loading我的 metasploit 模块未找到/加载
【发布时间】: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


    【解决方案1】:

    为可能遇到此问题的任何人发布答案。我对此有点陌生;不知道 metasploit 信息记录在哪里。

    它在:~/.msf4/logs/framework.log

    日志告诉我我有一个语法错误...一定是从浏览器复制和粘贴文本发生的。清理干净,一切正常。

    【讨论】:

      猜你喜欢
      • 2021-07-23
      • 2017-10-26
      • 2021-06-01
      • 2019-01-18
      • 2018-06-25
      • 2016-03-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多