问题描述
首先我对 Python 的了解是基本的,所以我无法理解解决问题的库代码。
这个库中的问题 https://github.com/DanMcInerney/pymetasploit3 它是从 https://github.com/allfro/pymetasploit python2 更新到具有新功能的 python3!
// Calculate sobel value for each channel (capping at 255)
int sobel (int Gx,int Gy)
{
int n = sqrt(Gx^2 + Gy^2);
if (n > 255)
{
n = 255;
}
return n;
}
当我尝试像上面看到的那样运行代码时,没有响应或错误,它卡住了很长时间甚至没有退出!
当我尝试任何其他模块时,它工作正常,除了这个 $ 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')
:(
我看到另一个类似的库,但没有新功能:https://github.com/iCarossio/PyMetasploit_Python3 当我尝试在其中使用此模块时 linux/misc/saltstack_salt_unauth_rce
它的响应是错误,我需要使用 https://github.com/DanMcInerney/pymetasploit3 因为新功能,所以我不能使用 linux/misc/saltstack_salt_unauth_rce
即使它比 PyMetasploit_Python3
工作得更好,请帮助我 :)
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)