Skip to content

Windows batch script that finds misconfiguration issues which can lead to privilege escalation.

Notifications You must be signed in to change notification settings

marciopocebon/Privesc-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Privesc

Windows batch and PowerShell script that finds misconfiguration issues which can lead to privilege escalation.
Batch script uses accesschk.exe from Sysinternals. This executable is mandatory.
Few checks also use Listdlls.exe and pipelist.exe from Sysinternals. Those executables are optional.

Usage:

  Edit script and set "mode" and "long" parameters:
  - mode - parameter takes two values "full" or "lhf". "lhf" tries to find only Low Hanging Fruits. "full" shows full output of all commands.
  - long - parameter takes two values "yes" or "no". If "yes" is configured then time consuming checks are also done.

  Run batch script:
  privesc.bat "Users group name" ["Next group name"]

Example usage:

  privesc.bat Everyone Users "Authenticated Users"

About

Windows batch script that finds misconfiguration issues which can lead to privilege escalation.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 70.4%
  • Batchfile 29.6%