Skip to content
Kahvi-0Public

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

image

ADEnum

Active Directory Enumeration

Windows:

IEX(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/Kahvi-0/ADEnum/refs/heads/main/ADEnum.ps1')
adenum

ADEnum

Linux:

wget https://raw.githubusercontent.com/Kahvi-0/ADEnum/refs/heads/main/ADEnum.sh && chmod +x ADEnum.sh

Requirements

sudo apt-get install -y krb5-user libsasl2-modules-gssapi-mit
ADEnum.sh [-u domain\user] [-p password] [-d domain] [-t dc] [-v LDAP/LDAPS] [-l LDAP port]

Required Options:

-u 	Username - Format (Shortform for domain): lab\Admin
-p		Password
-d		Domain - Format: test.lab
-t 	Domain controller - Format: dc1, 10.10.10.1, dc1.lab.local

Optinal Options:

-l		LDAP port
-v		LDAP type - LDAP or LDAPS
-k		Use Kerberos authenticaiton

#Example

./ADEnum.sh -u "LAB\Administrator" -p Password123 -d lab.local -t dc2 

ADWebServiceDiscovery

Scan discovered web ports for known AD web services

ADWebServiceDiscovery.sh ./scope.txt

CobraSniffer

Passive network sniffer listening for AD traffic that can help enumerate hosts and their hostname

Example:

 sudo python3 ./cobrasneeze.py --iface eth0 --keywords lab.local,.domain,.mdns,.netbios-dgm
image

Vulnscan

Common service port scan, nmap scripts, common service checks, etc

Windows - ensure that nmap is installed (may need to change the location in the script)

vulnscan.ps1 scope.txt

Linux

sudo vulnscan.sh scope.txt

Passpull

Automated enumeration of possible password policy locations

Linux

distingushed name can be found in bloodhound

https://raw.githubusercontent.com/Kahvi-0/ADEnum/main/passpull.sh  && chmod +x passpull.sh

Usage

passpull.sh [user] [password] [dc list] [domain.local] [distingushed name]

Example

passpull.sh CoffeeLover 'p@ssword123' ./dcs.txt domain.local "CN=PENTEST,OU=USERS,OU=test,DC=lab,DC=LOCAL"

LogHarvest

Inspired by: https://practicalsecurityanalytics.com/extracting-credentials-from-windows-logs/

Will Search through Windows 4688 events. This will only work if the client has enabled logging. The script will check for the regestry key.

IEX(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/Kahvi-0/ADEnum/main/logharvest.ps1')

More reading:

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages