在 python 中获取 libc.so 找不到文件错误


Traceback (most recent call last):
  File "test.py", line 391, in <module>
    main()
  File "test.py", line 385, in main
    find_rop_gadgets('libc.so')
  File "test.py", line 78, in find_rop_gadgets
    e = elf.ELF(path)
  File "/usr/local/lib/python2.7/dist-packages/pwnlib/elf/__init__.py", line 51, in __init__
    self.file = open(path,'rb')
IOError: [Errno 2] No such file or directory: 'libc.so'

我是python的新手,所以如果有人可以帮助我,请在这里。谢谢。

如果您使用的是 ubuntu 14.04。您应该尝试以下命令:

sudo ln -s `locate libc.so.6` /lib/libc.so

或:

sudo ln -s `locate libc.so.6` /lib/libc.so.6

最新更新