Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PrivKit — PrivKit is a simple beacon object file that detects privilege escalation vulnerabilities caused by misconfigurations on Windows OS. | Kitploit
Tools/GitHubGitHub/mertdas/privkit
Privilege EscalationVulnerability AnalysisExploitationPost-ExploitationPenetration TestingBinary AnalysisRed Teaming
GitHubmertdas/privkit

PrivKit

PrivKit is a simple beacon object file that detects privilege escalation vulnerabilities caused by misconfigurations on Windows OS.

View Repository
611717 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

PrivKit

A collection of Beacon Object Files (BOFs) for Windows Local Privilege Escalation Checks.



GitHub License GitHub Repo stars
GitHub forks GitHub watchers GitHub contributors

Description

PrivKit is an open-source tool that empowers red teamers and penetration testers to quickly identify common Windows local privilege escalation vectors using Cobalt Strike Beacon Object Files (BOFs).

Static Badge Static Badge Static Badge Static Badge Static Badge

For command-line usage and examples, please refer to the Usage section.

If you find any bugs, don't hesitate to report them. Your feedback is valuable in improving the quality of this project!

Disclaimer

The authors and contributors of this project are not liable for any illegal use of the tool. It is intended for educational and authorized security testing purposes only. Users are responsible for ensuring lawful usage.

Table of Contents

  • PrivKit
    • Description
    • Disclaimer
    • Table of Contents
    • Acknowledgement
    • Features
    • Instalation
    • Usage
    • Examples
    • References

Acknowledgement

Speacial thanks to my friend @nickvourd for all his contributions.

Special thanks to the TrustedSec team for their excellent CS-Situational-Awareness-BOF project, which served as an inspiration for this tool.

Grateful acknowledgment to the Cobalt Strike team for their comprehensive BOF documentation and examples.

PrivKit was created with ❤️ by @merterpreter.

Features

PrivKit offers a comprehensive suite of privilege escalation checks, including:

Why BOFs?

  • ✅ In-memory execution - No files dropped to disk
  • ✅ Lightweight - Minimal beacon footprint
  • ✅ Fast - Native execution speed
  • ✅ Stealthy - Runs within beacon's process context
  • ✅ Cross-architecture - Supports both x64 and x86

PrivKit is written in C and compiled as Beacon Object Files, making it compatible with Cobalt Strike 4.x on Windows targets.

Installation

⚠️ Please ensure that MinGW-w64 is installed on your system.

ℹ️ For Linux platforms (Ubuntu/Debian) install the following package:

root@kitploit:~
sudo apt update && sudo apt install mingw-w64 -y

ℹ️ For MacOS platforms install the following package:

root@kitploit:~
brew install mingw-w64
  1. Clone the repository by executing the following command:
root@kitploit:~
git clone https://github.com/mertdas/PrivKit.git
  1. Once the repository is cloned, navigate into the PrivKit directory:
root@kitploit:~
cd PrivKit
  1. Use the make_all.sh script compiles all BOFs for both x64 and x86 architectures:
root@kitploit:~
./make_all.sh
  1. Load the aggressor script in Cobalt Strike:
root@kitploit:~
Cobalt Strike -> Script Manager -> Load -> PrivCheck.cna
  1. Verify installation in beacon:
root@kitploit:~
beacon> help

Usage

Run All Checks

Execute all privilege escalation checks at once:

root@kitploit:~
beacon> PrivCheck

Run Individual Checks

Run specific checks as needed:

root@kitploit:~
beacon> AlwaysInstallElevatedCheck
beacon> AutologonCheck
beacon> CredentialManagerCheck
beacon> HijackablePathCheck
beacon> ModifiableAutorunCheck
beacon> ModifiableSVCCheck
beacon> TokenPrivilegesCheck
beacon> UnquotedSVCPathCheck
beacon> PowerShellHistoryCheck
beacon> UACStatusCheck

Examples

AlwaysInstallElevatedCheck

root@kitploit:~
beacon> AlwaysInstallElevatedCheck
[*] BOF by @merterpreter && @nickvourd
[*] Checking AlwaysInstallElevated privilege escalation vulnerability...

=== AlwaysInstallElevated Check ===

[*] HKCU\...\Installer\AlwaysInstallElevated = 1
[*] HKLM\...\Installer\AlwaysInstallElevated = 1

[+] VULNERABLE: AlwaysInstallElevated is set in both HKCU and HKLM

UACStatusCheck

root@kitploit:~
beacon> UACStatusCheck
[*] BOF by @merterpreter && @nickvourd
[*] Checking UAC status, integrity level, and admin membership...

=== UAC Status Check ===

[11/27 15:08:08] [+] received output:
[*] UAC Enabled (EnableLUA): Yes

[11/27 15:08:08] [+] received output:
[*] ConsentPromptBehaviorAdmin: 5 
[11/27 15:08:08] [+] received output:
(Prompt for consent for non-Windows binaries)

[11/27 15:08:08] [+] received output:
[*] PromptOnSecureDesktop: Yes

[11/27 15:08:08] [+] received output:


[11/27 15:08:08] [+] received output:
[*] Integrity Level: 
[11/27 15:08:08] [+] received output:
Medium

[11/27 15:08:08] [+] received output:
[*] Local Admin Group Member: Yes

[11/27 15:08:08] [+] received output:

[*] Summary:

[11/27 15:08:08] [+] received output:
[+] User is local admin but NOT elevated (UAC filtered token)

[11/27 15:08:08] [+] received output:
[+] UAC bypass may be possible

References

  • Cobalt Strike BOF Documentation
  • TrustedSec CS-Situational-Awareness-BOF
  • TrustedSec CS-Remote-OPs-BOF
  • Windows-Local-Privilege-Escalation-Cookbook GitHub by nickvourd
  • Windows Privilege Escalation - PayloadsAllTheThings
  • WIN32 APIs Microsoft Documentation
  • Offensive Coding by Mr.Un1k0der
  • Sektor7 Institute
Download Tool
CheckDescription
AlwaysInstallElevatedCheckChecks for AlwaysInstallElevated misconfiguration in HKCU and HKLM
AutologonCheckEnumerates stored Autologon credentials in Winlogon registry
CredentialManagerCheckDumps credentials from Windows Credential Manager
HijackablePathCheckIdentifies writable directories in system PATH
ModifiableAutorunCheckFinds writable autorun executables in Run/RunOnce keys
ModifiableSVCCheckFinds services with modifiable permissions (DACL)
TokenPrivilegesCheckEnumerates current process token privileges
UnquotedSVCPathCheckDetects unquoted service paths with spaces
PowerShellHistoryCheckChecks for PowerShell PSReadLine history file
UACStatusCheckChecks UAC status, integrity level, and admin group membership