ROPgadget command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ROPgadget: command not found
or when using sudo you get the following error message
sudo: ROPgadget: command not found
Solutions to ROPgadget: command not found
How To Fix ROPgadget: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ROPgadget is provided by python3-ropgadget package.
python3-ropgadget is:
ROPGadget is a tool for security research and vulnerability exploitation. It lets you search binaries for sequences of useful machine code instructions followed by a return statement (“gadgets”). If an exploit can manipulate the callstack to point to a sequence of gadgets, the return statements will redirect the program flow to execute the sequence (“return oriented programming”). By reusing existing code out of context, an attacker can potentially circumvent security measures which prevent the execution of injected code.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-ropgadget
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-ropgadget.
sudo apt -y install python3-ropgadget
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-ropgadget
Summary
In this tutorial we learn how to fix ROPgadget command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.