A Python3 utility to extract and convert LinPEAS security scan findings into readable formats.
LinPEAS (Linux Privilege Escalation Awesome Script) is a powerful enumeration script that searches for possible paths to escalate privileges on Linux/Unix systems. It's part of the PEASS-ng (Privilege Escalation Awesome Scripts SUITE) project by Carlos Polop.
LinPEAS output can be overwhelming with thousands of lines. This tool helps you focus on the most critical findings by extracting only the highlighted security issues and converting them to clean, readable formats.
LinPEAS uses ANSI color codes to highlight findings by severity:
- Red/Yellow Background (
-yrmode): Highest priority findings - potential privilege escalation vectors - Red Text Only (
-rmode): Medium priority findings - interesting information that may lead to privilege escalation - Other colors: Lower priority informational data
This tool extracts only the red/yellow and red-only findings, filtering out the noise to help you focus on what matters most during privilege escalation assessments.
- Terminal-mode extraction of red/yellow or red-only highlights
- HTML conversion of full report or extracted findings
- Debug mode for internal parsing details
- Python 3 (Kali GNU/Linux Rolling)
- Standard libraries:
re,sys,argparse,datetime,os
chmod +x linpeas_extractor.py
# (Optionally) install to system PATH:
# sudo mv linpeas_extractor.py /usr/local/bin/linpeas_extractorpython3 linpeas_extractor.pypython3 linpeas_extractor.py -yr output.ansipython3 linpeas_extractor.py -r output.ansipython3 linpeas_extractor.py --html output.ansipython3 linpeas_extractor.py --html -yr output.ansipython3 linpeas_extractor.py --html -r output.ansiCreated by Yaniv Haliwa for security testing and educational purposes.




