Giter Club home page Giter Club logo

privilege-check's Introduction

Privilege check

CI

Check your privilege. On Windows.

Displays a window, showing

  • if the current user belongs to the BUILTIN\Administrators group,
  • whether the process is "run as Administrator",
  • if it has elevated privileges,
  • process's "integrity level".

If it's not "run as Administrator", a button allows to actually re-run the executable as Administrator, utilizing Windows' User Account Control feature.

Development

Build using CMake. The project is Windows-only, so building with either MSVC or MinGW-64 is required.

There's a Makefile with useful shortcuts to build the project in the build/ directory (defaults to building with MinGW-w64):

make build

Cross table

Snippets of information provided by the tool on different Windows versions are summarized in the table below.

"Administrator" below stands for the built-in Administrator account. "testadmin" is a user that belongs to the BUILTIN\Administrators group. "test" is a user that doesn't belong to this group.

UAC on

User Windows 7 Windows 8.1 Windows 2012 R2
Administrator Integrity level - - High
Elevated? - - True
testadmin Integrity level Medium Medium Medium
Elevated? False False False
test Integrity level Medium Medium Medium
Elevated? False False False

UAC off

User Windows 7 Windows 8.1 Windows 2012 R2
Administrator Integrity level - - High
Elevated? - - True
testadmin Integrity level High High High
Elevated? True True True
test Integrity level Medium Medium Medium
Elevated? False False False*

* True on domain controllers.

License

Distributed under the MIT License. See LICENSE.txt for details.

privilege-check's People

Contributors

egor-tensin avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.