A collection of scripts for automating Linux pentesting tasks. Suitable for OSCP and HTB machines.
This script can be used to enumerate common privilege escalation paths. It includes the following checks:
- Sudo version
- Sudo privileges
- System information
- Current user information
- Permission check for /etc/passwd and /etc/shadow
- SUID/SGID binaries
- Cron jobs
- Processes running as root
- Capabilities
- Mailbox permissions
To run the script:
git clone https://github.com/anirbala98/Linux-Pentest-Kit.git
cd Linux-Pentest-Kit/
chmod +x priv_esc.sh
./priv_esc.sh