Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.27 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.27 KB

Kerbrute User Enumeration Script

This script executes the Kerbrute command to enumerate valid usernames in an Active Directory environment. While the command is running, an ASCII art is displayed. After the command completes, the valid usernames are saved to a specified file.

Prerequisites

  • Unix-based operating system (Linux, macOS, etc.)
  • Kerbrute tool installed and configured
  • Bash shell

Installation

  1. Save the script to a file, e.g., KerbruteUserenumWordlist.sh.

  2. Grant execute permissions to the script:

    chmod +x KerbruteUserenumWordlist.sh

Usage

The script requires two arguments:

  1. The Kerbrute command to execute.
  2. The path to the output file where valid usernames will be saved.
  3. An optional --emails flag to indicate if full email addresses should be saved instead of just usernames.

Example

Save Only Usernames

./KerbruteUserenumWordlist.sh "kerbrute userenum -d inlanefreight.local --dc 172.16.5.5 /usr/share/seclists/Usernames/top-usernames-shortlist.txt" valid_usernames.txt

Save Full Email Addresses

./KerbruteUserenumWordlist.sh "kerbrute userenum -d inlanefreight.local --dc 172.16.5.5 /usr/share/seclists/Usernames/top-usernames-shortlist.txt" valid_usernames.txt --emails