在Pymetasploit3库中使用特定模块时卡住

2024-09-29 03:30:07 发布

您现在位置:Python中文网/ 问答频道 /正文

首先,我对python的了解是基本的,所以我无法理解修复该问题的库代码

这个库中的问题是https://github.com/DanMcInerney/pymetasploit3它从https://github.com/allfro/pymetasploitpython2更新为python3,并具有新功能

$ python3                                                                                                                                                                                                                                                                                                
Python 3.9.1+ (default, Feb  5 2021, 13:46:56) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pymetasploit3.msfrpc import MsfRpcClient
>>> client = MsfRpcClient('mypassword', port=12345, ssl=True)
>>> exploit = client.modules.use('exploit', 'linux/misc/saltstack_salt_unauth_rce')

当我试着像你上面看到的那样运行代码时,没有响应或错误,它被卡住了很长时间,甚至没有退出

当我尝试任何其他模块时,除了这个linux/misc/saltstack_salt_unauth_rce:(

我看到另一个类似这样的库,但没有新功能:https://github.com/iCarossio/PyMetasploit_Python3当我试图在其中使用这个模块时linux/misc/saltstack_salt_unauth_rce它的响应是错误的,我需要使用https://github.com/DanMcInerney/pymetasploit3因为新功能,所以我不能使用PyMetasploit_Python3即使它比pymetasploit3工作得更好,请帮助我:)

谢谢


Tags: 代码https功能githubcomlinuxpython3misc