Skip to content

code404nul/admin_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors