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

当装完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即可。
在这里插入图片描述

©️2020 CSDN 皮肤主题: 游动-白 设计师:上身试试 返回首页