ROPgadget突然抽风,出现错误:
$ ROPgadget -help
Traceback (most recent call last):
File "/usr/local/bin/ROPgadget", line 4, in <module>
__import__('pkg_resources').run_script('ROPGadget==5.8', 'ROPgadget')
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1437, in run_script
.format(**locals()),
pkg_resources.ResolutionError: Script 'scripts/ROPgadget' not found in metadata at '/usr/local/lib/python2.7/dist-packages/ROPGadget-5.8.dist-info'
百度了一下,只有一个csdn下载有相关的,本着自学的态度,自己尝试了一下(其实没积分)
其实很简单:
提示目录/usr/local/lib/python2.7/dist-packages/ROPGadget-5.8.dist-info没有scripts/ROPgadget。
重新cp一个就行了
git clone https://github.com/JonathanSalwan/ROPgadget.git
cd ROPgadget
sudo cp -r scripts /usr/local/lib/python2.7/dist-packages/ROPGadget-5.8.dist-info
就行了