Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
12.09k stars 1.71k forks source link

WHEN I USE ROP(),IT always WRONG #922

Closed letitbezh closed 7 years ago

letitbezh commented 7 years ago

b = ELF('./login') rop = ROP(b) when I use this,the ROP always wrong,log is like this

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/angr/pwntools/pwnlib/rop/rop.py", line 398, in __init__
    import ropgadget
  File "/home/angr/ctfpwn/local/lib/python2.7/site-packages/ropgadget/__init__.py", line 14, in <module>
    import ropgadget.binary
  File "/home/angr/ctfpwn/local/lib/python2.7/site-packages/ropgadget/binary.py", line 13, in <module>
    from ropgadget.loaders.elf       import *
  File "/home/angr/ctfpwn/local/lib/python2.7/site-packages/ropgadget/loaders/__init__.py", line 13, in <module>
    import ropgadget.loaders.elf
  File "/home/angr/ctfpwn/local/lib/python2.7/site-packages/ropgadget/loaders/elf.py", line 13, in <module>
    from capstone   import *
  File "/home/angr/ctfpwn/local/lib/python2.7/site-packages/capstone/__init__.py", line 6, in <module>
    from . import arm, arm64, mips, ppc, sparc, systemz, x86, xcore
ImportError: cannot import name arm

what should. I do ? THANK YOU

zachriggle commented 7 years ago

I have no idea, looks like your install is broken. Try on a clean machine or Docker.

letitbezh commented 7 years ago

i use env ,but it is wrong ... i think i should try docker

zachriggle commented 7 years ago

There is a docker image that you can use pretty easily. Just docker pull pwntools/pwntools:stable (or :dev if you prefer).