I usually write a solver using pwntools in Python3, but I needed to run pwntools in python2 to execute the ropchain code generated by ROPgadget --binary xxx --ropchain. However, I'm addicted to various things, so I'll write it down as a memo. .. ..
There is simply no pip.
Solve by hitting the following command.
sudo apt install python-pip
pip install pwntools
and even though pwntools is included, I get the error No module named pwn
with from pwn import *
Solved with python -m pip install pwntools
.
A CTF team member taught me.
The error of No module namde pwn was not solved even if I put the Development version of pwntools for python2, so this may be the only solution.
Recommended Posts