PXEnum (post-exploitation enumeration) is a shell script that automatically performs a series of *NIX enumeration tasks.
You can install PXEnum directly by cloning the repository with Git, or you can fetch the source code directly with a tool such as wget if Git is unavailable.
Cloning with Git
$ git clone https://github.com/shawnduong/PXEnum
Downloading with wget
$ wget https://raw.githubusercontent.com/shawnduong/PXEnum/master/PXEnum.sh
You can add executability to the shell script and then run it, or you can pass it through the shell interpreter directly.
Method 1: Adding executability and running
$ chmod +x PXEnum.sh $ ./PXEnum.sh
Method 2: Passing it through the shell interpreter
$ sh PXEnum.sh
v2.0.2 (2021.04.18) Changelog
- Fixed a bug occurring in the outputting of active/running services.
v2.0.1 (2020.11.17) Changelog
- Fixed a bug occurring in the default shells of some systems related to unexpected redirections.
v2.0 (2020.3.27) Changelog
- The source code has been completely revamped to improve readability.
- Got rid of colored text output as it was not universal among shells or terminals. All output is now standard without any colorful gimmicks.
- All checks belonging to a section are now done all at once before being displayed together.
- Moved away from using utilities such as lcpci, lscpu, dmidecode, and they’ve become less universal and sometimes require elevated privileges. Instead, reading from
/sysfiles has been implemented.
- printf alignment has been implemented wherever applicable for easier reading.
- Moved away from cron in favor of systemd timers.
- Moved away from services in favor of systemd services.
- Checks have been revamped. A full list of checks can be found later on in this README.
Testing, Compatibility, and Contributing
This script was tested on a custom Arch Linux system. Further testing on a multitude of operating systems is needed to ensure compatibility. Please open up an issue if you find bugs.
Contributions are highly welcomed. Please refer to this guide if you are new to Git and/or need some guidance when it comes to making contributions.
The following is a full list of checks done by PXEnum.
- Home Path
- Kernel Name
- Kernel Release
- Kernel Version
- OS Name
- Product Family
- Product Name
- Product Version
- CPUs and CPU bugs
- RAM Total
- RAM Available
- RAM Free
- BIOS Vendor
- BIOS Date
- BIOS Version
Users and Groups
- Users with login shells
- Users with home directories
- MAC Addresses
- IP Addresses
- Open Ports
- Currently Online Users
- Currently Running Processes
- Active Services
- Running Services
- sudo History
- SSH Keys
- Python 2
- Python 3