Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
HTB-NanoCorp-CVE-2024-0670 — PowerShell exploit for CVE-2024-0670 that abuses CheckMK Agent MSI repair to escalate privileges to SYSTEM on the NanoCorp Hack The Box machine. | Kitploit
Tools/GitHubGitHub/taktak0x/htb-nanocorp-cve-2024-0670
Privilege EscalationVulnerability AnalysisExploitationCTFPenetration TestingLearning & EducationLabs & Practice
GitHub
Share
taktak0x/htb-nanocorp-cve-2024-0670

HTB-NanoCorp-CVE-2024-0670

PowerShell exploit for CVE-2024-0670 that abuses CheckMK Agent MSI repair to escalate privileges to SYSTEM on the NanoCorp Hack The Box machine.

View Repository
394 months agoNot yet reviewed

CVE-2024-0670 - CheckMK Agent MSI Repair Privilege Escalation (NanoCorp HTB)

This repository contains a PowerShell script used to exploit CVE-2024-0670 on the NanoCorp machine from Hack The Box. The vulnerability allows a low-privileged user to abuse the CheckMK Windows Agent MSI repair functionality and execute arbitrary commands with SYSTEM privileges.

Note: This exploit was developed for the NanoCorp Hack The Box machine and may require modification before use in other environments.

Disclaimer: This repository is provided for educational purposes and authorized security testing only. Use it only on systems you own or have explicit permission to test.

Usage

Prerequisites

  • RunasCs.exe (used to execute commands as another user)

Quick Start

  1. Upload RunasCs.exe — required to run the exploit as the web_svc user.

  2. Execute the script as the web_svc user:

    .\RunasCs.exe "web_svc" "YourWebSvcPassword" "powershell -ExecutionPolicy Bypass -File C:\ProgramData\CVE-2024-0670-NanoCorp.ps1"
    
  3. Wait for the MSI repair process to complete. This may take a few minutes.

  4. Once finished, the script will output credentials for the newly created local administrator account:

    A new User added as administrator with the following credentials: dfdxarjy Password123@
    
  5. Verify successful privilege escalation:

    nxc smb nanocorp.htb -u "dfdxarjy" -p "Password123@" -k
    

    Expected output:

    [+] nanocorp.htb\dfdxarjy:Password123@ (Pwn3d!)
    

Description

The vulnerability allows a low-privileged user (such as web_svc) to escalate privileges to NT AUTHORITY\SYSTEM by abusing the Windows Installer repair functionality used by the CheckMK Agent.

The script performs the following actions:

  1. Locates the installed CheckMK MSI package on the target system.
  2. Writes a batch file to C:\Windows\Temp containing commands to create a local user account.
  3. Triggers a repair of the MSI package using msiexec /fa.
  4. The repair process executes the batch file with SYSTEM privileges.
  5. The batch file creates a local administrator account by adding the user to the local Administrators group.
  6. Temporary files are removed after execution.

References

  • CVE-2024-0670
  • CheckMK Windows Agent MSI Repair Privilege Escalation
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    968
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    556
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    347
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    346
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    319
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    297

Explore all tools

Browse our collection of tools

View all tools →