【问题标题】:Executing a Python Script with Metasploit使用 Metasploit 执行 Python 脚本
【发布时间】:2023-04-10 15:12:01
【问题描述】:

我正在尝试对一个类进行漏洞测试,脚本中的第一行代码是:

从 metasploit.msfrpc 导入 MsfRpcClient

但是,当我尝试运行程序时,我收到“ModuleNotFoundError: No Module named 'metasploit'”

我在 Kali Linux 上运行; metasploit 是标准的,但要么我做错了什么,要么缺少一个模块。有没有人遇到过这个问题,也许可以提出一个解决方案?

【问题讨论】:

    标签: python metasploit


    【解决方案1】:

    首先, pip3 安装 --user pymetasploit3 $ msfrpcd -P 你的密码 -S

    然后在python中,

    从 pymetasploit3.msfrpc 导入 MsfRpcClient

    它可以工作。祝你好运。

    【讨论】:

      猜你喜欢
      • 2019-06-08
      • 1970-01-01
      • 1970-01-01
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-21
      相关资源
      最近更新 更多