kali安装checksec报“/usr/local/bin/checksec“, line 6, in <module>

kali安装checksec报“/usr/local/bin/checksec“, line 6, in <module>当装完pwntools后使用kalichecksec报错

当装完pwntools后使用kali checksec报错。
raceback (most recent call last):
File “/usr/local/bin/checksec”, line 6, in
from pkg_resources import load_entry_point
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3251, in
@_call_aside
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3235, in _call_aside
f(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 583, in _build_master
ws.require(requires)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 900, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘MarkupSafe>=0.9.2’ distribution was not found and is required by mako

在这里插入图片描述
是/usr/local/bin/中checksec有问题。

$ git clone https://github.com/slimm609/checksec.sh.git
$ cd checksec.sh

把checksec 文件 复制替换/usr/local/bin/中checksec即可。
在这里插入图片描述

今天的文章kali安装checksec报“/usr/local/bin/checksec“, line 6, in <module>分享到此就结束了,感谢您的阅读。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/60405.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注