About installing Pwntools and Python2 series

Overview

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. .. ..

Status

  1. ʻE: Unable to locate package pip` is displayed

There is simply no pip.

Solve by hitting the following command.

sudo apt install python-pip

  1. I hit 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

About installing Pwntools and Python2 series
Python 2 series and 3 series (Anaconda edition)
About python objects and classes
About Python variables and objects
About Python, len () and randint ()
About Python datetime and timezone
About Python and regular expressions
About Python and os operations
Python # About reference and copy
About Python sort () and reverse ()
About python dict and sorted functions
About dtypes in Python and Cython
Installing Python 3.4.3.
About Python pickle (cPickle) and marshal
[Python] About Executor and Future classes
About Python, from and import, as
Difference between python2 series and python3 series dict.keys ()
Python 3.4 series is safe for installing and executing Python Kivy (macOS)
About time series data and overfitting
About _ and __
[Python] What is pandas Series and DataFrame?
Sh and py run after installing Python3
[Beginner] Installing Python and running programs (Windows)
A story about Python pop and append
Easy introduction of python3 series and OpenCV3
Talking about old and new Python classes
Talking about Python class attributes and metaclasses
About python slices
About python comprehension
About Python tqdm.
About python yield
About python, class
About python inheritance
About python, range ()
About python decorators
About python reference
About Python decorators
[Python] About multi-process
Notes on installing Python3 and using pip on Windows7
Think about depth-priority and width-priority searches in Python
About the difference between "==" and "is" in python
[Note] Installing Python 3.6 + α on Windows and RHEL
A story about modifying Python and adding functions
[Python] Learn about asynchronous programming and event loops
About the * (asterisk) argument of python (and itertools.starmap)
About shallow and deep copies of Python / Ruby
Basic operation of Python Pandas Series and Dataframe (1)
[python] Compress and decompress
About Python for loops
Getting Started with python3 # 2 Learn about types and variables
About Class and Instance
Python: Time Series Analysis
Summary about Python scraping
About function arguments (python)
Python and numpy tips
Easy verification series on Katacoda "Installing and using Cockpit"
[Python] pip and wheel
python2 series / 3 series, character code and print statement / command line
Batch design and python
Python iterators and generators
The process of installing Atom and getting Python running