LoginSignup
3
0

More than 5 years have passed since last update.

pwntoolsのROP関連の機能がうまく使えない時(ImportError: ERROR: fail to load the dynamic library.)

Last updated at Posted at 2018-03-01

問題

pwntoolsのROP関連の機能を使おうとしたら、以下のようなエラーが出た。

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pwnlib/rop/rop.py", line 441, in __init__
    import ropgadget
  File "/usr/local/lib/python2.7/dist-packages/ropgadget/__init__.py", line 14, in <module>
    import ropgadget.binary
  File "/usr/local/lib/python2.7/dist-packages/ropgadget/binary.py", line 13, in <module>
    from ropgadget.loaders.elf       import *
  File "/usr/local/lib/python2.7/dist-packages/ropgadget/loaders/__init__.py", line 13, in <module>
    import ropgadget.loaders.elf
  File "/usr/local/lib/python2.7/dist-packages/ropgadget/loaders/elf.py", line 13, in <module>
    from capstone   import *
  File "/usr/local/lib/python2.7/dist-packages/capstone/__init__.py", line 230, in <module>
    raise ImportError("ERROR: fail to load the dynamic library.")
ImportError: ERROR: fail to load the dynamic library.

解決法

python-capstoneを入れたら直った

$ sudo apt-get install python-capstone

参考

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0