This repository contains a small Python utility that automates the setup of two common Linux privilege escalation tools in penetration testing labs:
The script:
- Searches for an existing
linpeasbinary or script on the local system and copies it into the current working directory. - Downloads the
pspybinary from GitHub into the current working directory. - Makes both files executable.
- Optionally starts a Python HTTP server to serve these files to a target host (for example, during a CTF or lab environment).
- Python 3.x
- Network access to GitHub (for downloading
pspy) - Optional but recommended:
locateinstalled and its database updated (updatedb) to speed uplinpeasdiscovery if it exists on the system.
This script is primarily designed with Kali-like environments in mind.
Clone the repository and move into the project directory:
git clone https://github.com/sebafvs/linpeas_pspy.git
cd linpeas_pspy
python3 linpeas_pspy.py