You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if I run the pwntool with python2, everything works fine:
pwntools@localhost:~$ python2.7 getdyn.py libpcl_recognition.so
[!] Could not populate PLT: invalid syntax (unicorn.py, line 110)
amd64
Update Pwntools First
I have updated the pwntools to 4.11.0
pwntools@localhost:~$ python3 -m pip install --upgrade pwntools
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pwntools in ./.local/lib/python3.10/site-packages (4.11.0)
Debug Output
I ran the cmd $ python3 getdyn.py DEBUG LOG_FILE=log.txt libpcl_recognition.so
and the log.txt only shows:
If it's still relevant, I guess the ffi sucks and it is related to the unicorn. A solution can be to try and rebuild unicorn with debug symbols and then checking what exactly happens.
When the pwntools loads a specific elf file by python3, it shows
Aborted (core dumped)
.The elf file is attached below.
attach.tar.gz
It can be reproduced in the official docker image:
$ docker pull pwntools/pwntools:stable $ docker run -it \ --privileged \ --net=host \ --hostname localhost \ --ulimit core=-1:-1 \ -v $PWD:/workdir \ pwntools/pwntools:stable $ python3 getdyn.py libpcl_recognition.so
and the output is
However, if I run the pwntool with python2, everything works fine:
Update Pwntools First
I have updated the pwntools to 4.11.0
Debug Output
I ran the cmd
$ python3 getdyn.py DEBUG LOG_FILE=log.txt libpcl_recognition.so
and the
log.txt
only shows:The text was updated successfully, but these errors were encountered: