admin_check is a tiny utility that detects whether the program is running with administrator (root) privileges. Built to be simple and practical, usefull for some privilege escalation.
- Compiled on Linux.
- A portable Linux executable (binary) is available on the repository Releases page.
g++(C++ compiler)- Optional: SFML libraries only if your code actually uses SFML. Remove SFML link flags if unused.
With SFML (if used in your code):
g++ main.cpp -o admin_check -lsfml-graphics -lsfml-window -lsfml-systemWithout SFML:
g++ main.cpp -o admin_checkRun normally:
./admin_checkRun as root to test privileged case:
sudo ./admin_checkIf you download the portable binary from Releases, make it executable and run:
chmod +x admin_check
./admin_checkA portable Linux binary is attached on the Releases page of this repository.
Have fun!