linuxprivcheck: Python script for privilege escalation for Linux

linuxprivcheck

linuxprivcheck

Python script for privilege escalation for Linux

The original author is Mike Czumak (T_v3rn1x) — @SecuritySift.linuxprivcheck

Scripts

  • old-linuxprivchecker.py: Famous linuxprivchecker.py (Python) with updates – I’ll not update it anymore.
  • linuxprivchecker3.py: Famous linuxprivchecker.py, compatible both Python 2 & 3 with updates.

Options

The –fast does not perform the check for passwords in .sh files.

What’s new

  • Support both Python 2 and 3 in one script
  • Add tips (jail escape) and resources (links)
  • Correction for broken links
  • Support ip and ss for new Linux versions
  • Add a fast option (avoid check for passwords in .sh files)
  • New check for:
  • Improve exploits part:
    • New exploits added (however I recommend to use a more complete tool for this part)
    • Correct versions for previous exploit to avoid false positives

Download

git clone https://github.com/cervoise/linuxprivcheck.git

What if Python is not on the target?

On Kali (or other Linux) install pyinstaller:

$ pip install pyinstaller
$ pip3 install pyinstaller

Then compile the script:

$ python -m PyInstaller --onefile linuxprivchecker.py
$ python3 -m PyInstaller --onefile linuxprivchecker3.py

Standalone ELF will be in ./dist/

Source: https://github.com/cervoise/