Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1 KB

File metadata and controls

55 lines (35 loc) · 1 KB

admin_check

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.

Platform

  • Compiled on Linux.
  • A portable Linux executable (binary) is available on the repository Releases page.

Requirements

  • g++ (C++ compiler)
  • Optional: SFML libraries only if your code actually uses SFML. Remove SFML link flags if unused.

Compile

With SFML (if used in your code):

g++ main.cpp -o admin_check -lsfml-graphics -lsfml-window -lsfml-system

Without SFML:

g++ main.cpp -o admin_check

Usage

Run normally:

./admin_check

Run as root to test privileged case:

sudo ./admin_check

If you download the portable binary from Releases, make it executable and run:

chmod +x admin_check
./admin_check

Releases

A portable Linux binary is attached on the Releases page of this repository.

Have fun!