Pentesting Tools

KrbRelayEx : Mastering Kerberos Ticket Relay Attacks In Active Directory Environments

KrbRelayEx is a sophisticated tool designed for performing Man-in-the-Middle (MitM) attacks by relaying Kerberos AP-REQ tickets.

It is particularly useful in scenarios where an attacker seeks to exploit vulnerabilities in Active Directory environments, especially those related to DNS manipulation and Kerberos authentication.

Key Features Of KrbRelayEx

  • Kerberos AP-REQ Ticket Relay: The tool captures and relays Kerberos authentication tickets to access SMB shares or HTTP Active Directory Certificate Services (ADCS) endpoints on behalf of the victim.
  • Fake RPC/DCOM Server: KrbRelayEx implements a fake RPC/DCOM server that listens for authenticated requests, extracts dynamic port bindings, and forwards victim requests transparently.
  • Cross-Platform Compatibility: Built with .NET 8.0, it supports both Windows and GNU/Linux platforms.
  • Multithreaded Operations: Offers interactive or background SMB consoles for managing multiple connections and supports multithreaded port forwarding for additional traffic.

Usage And Scenarios

  1. Interactive SMB Console: bashKrbRelayEx.exe -spn CIFS/target.domain.com -console -redirecthost <ip_target_host>
  2. List SMB Shares: bashKrbRelayEx.exe -spn CIFS/target.domain.com -list
  3. Dump SAM & LSA Secrets: bashKrbRelayEx.exe -spn CIFS/target.domain.com -secrets -redirecthost <ip_target_host>

Exploitation Scenarios

  • DnsAdmins Group: Members can modify DNS records, enabling DNS spoofing attacks.
  • Insecure DNS Updates: Allows unauthorized DNS updates, potentially leading to domain takeover.
  • HOSTS File Manipulation: Redirects hostname-based traffic by modifying client HOSTS files.

Important Considerations

  • Legitimate Use Only: This tool is intended for authorized penetration testing and security research purposes.
  • Configuration: Ensure proper configuration of HOSTS file entries to target IP addresses.

To use KrbRelayEx, you need to install the .NET 8.0 runtime. On Windows, download from the official .NET site, and on Ubuntu, use sudo apt install dotnet8.

Required files include KrbRelayEx.dll, KrbRelayEx.runtimeconfig.json, and optionally KrbRelayEx.exe for Windows.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Playwright-MCP : A Powerful Tool For Browser Automation

Playwright-MCP (Model Context Protocol) is a cutting-edge tool designed to bridge the gap between AI…

2 weeks ago

JBDev : A Tool For Jailbreak And TrollStore Development

JBDev is a specialized development tool designed to streamline the creation and debugging of jailbreak…

2 weeks ago

Kereva LLM Code Scanner : A Revolutionary Tool For Python Applications Using LLMs

The Kereva LLM Code Scanner is an innovative static analysis tool tailored for Python applications…

2 weeks ago

Nuclei-Templates-Labs : A Hands-On Security Testing Playground

Nuclei-Templates-Labs is a dynamic and comprehensive repository designed for security researchers, learners, and organizations to…

2 weeks ago

SSH-Stealer : The Stealthy Threat Of Advanced Credential Theft

SSH-Stealer and RunAs-Stealer are malicious tools designed to stealthily harvest SSH credentials, enabling attackers to…

2 weeks ago

ollvm-unflattener : A Tool For Reversing Control Flow Flattening In OLLVM

Control flow flattening is a common obfuscation technique used by OLLVM (Obfuscator-LLVM) to transform executable…

2 weeks ago