refabr1k's Pentest Notebook
  • refabr1k's Pentest Notebook
  • Steganography
  • Kali USB with persistence memory
  • useful tools
  • Understanding ICACLS permissions
  • INFO GATHERING
    • Port Knocking
    • 22 tcp - SSH
      • SSH Tunneling
    • 25 tcp - SMTP
    • 53 tcp/udp - DNS
    • 88 tcp - Kerberos
    • 161 udp - SNMP
    • 445 tcp - SMB
    • 1098,1099 tcp - Java RMI
    • 8009 tcp - AJP
    • 5901,5902 tcp - VNC
  • Web
    • XSS cookie stealing
    • PHP
    • Webdav
    • Wordpress
    • XML RPC
    • SQL Injection
    • SSRF
  • EXPLOITATION
    • File Transfers
    • Buffer Overflow
    • Bruteforce
      • Hashcat
      • Ophcrack (rainbow tables)
      • John The Ripper
    • PHP rce
    • Compiling
    • msfvenom
    • Reverse shell
    • Using ENV to escape Bad Characters
    • shellshock
    • Ncat Persistent Backdoor
  • PRIVESC - LINUX
    • Basic checks
    • Upgrading Shells
    • SUID
  • Privesc - Windows
    • Basic checks / powershell
    • Privesc Openings
    • LonelyPotato - SeImpersonatePrivilege
    • Enable RDP @ Firewall
    • NTLM (Pass The Hash)
  • Windows
    • NTDS.dit
    • Responder / SMB Relay
    • Attacking AD
      • AD Hacking Lab Setup
  • Metasploit
    • Basic Usage
    • Meterpreter
      • Pivoting
      • Windows Post Exploitation
  • Unsorted
    • other notes
  • eLearnSecurity eJPT
    • eJPT notes
  • OSWP
  • Getting started
  • WEP Attacks
    • WEP Attack (OPEN) - Clients connected
    • WEP Attack (OPEN) - Clientless
    • WEP Attack (SKA)
  • WPA/WPA2 Attacks
  • Scripts
    • get port from nmap
    • Curl response
    • ping sweep
    • iptables-counter.sh
    • (DNS) zonetransfer_check.sh
    • (DNS) dns-rev-brute.sh
    • (DNS) dns-fwd-brute.sh
    • (SMB) vuln-scan.sh
    • (SMB) samba-checker.sh
    • (SMTP) vrfy.py
    • (SNMP) mib-check.sh
  • Zeroday vulnerabilities explained
    • 2020-12 Solarwind supply chain
Powered by GitBook
On this page

Was this helpful?

  1. Windows

Attacking AD

PreviousResponder / SMB RelayNextAD Hacking Lab Setup

Last updated 4 years ago

Was this helpful?

  • Microsoft Virtual Academy

  • LM,NTLM, Net-NTLMv2 -

  • Tim Medin - Attacking Kerberos: Kicking the Guard Dog of Hades

  • PayloadAllTheThings AD Attack Cheatsheet -

AD BASICS

AD DS Data store:

  • Juicy file Ntds.dit in %SystemRoot%\NTDS

AD DS Schema

  • Defines type of objects stored in directory. Eg. Class (User, Computers), Attribute (display name, uid)

  • Enforce rules for object creation/config

Domains

  • Collection of objects eg. computers. Essentially an authentication/authorization boundary

Trees

  • Hierachy of domains. Eg. Parent, child relationships

  • Default: 2-way transitive trust with other domains (Parent and child)

Forests

  • Collection of Trees

  • Sharing common config, cataloging for searching

OU Organizational Units

  • Containers for users, groups, computers etc

  • Apply policies

  • Permission delegation

Trusts

  • Directional: Trust between domain only. Eg. You and me, we are friends.

  • Transitive: Trust between domain extended to include other trusted domains. Eg. You and me, your friends included are my friends.

  • All domains in forest trust all other domains in the forest

  • Trust can extend outside the forest

Objects

  • User

  • InetOrgPerson: Similar to user account, used for compatibility with other directory services

  • Contacts

  • Groups

  • Computers

  • Printers

  • Shared folders

https://medium.com/@petergombos/lm-ntlm-net-ntlmv2-oh-my-a9b235c58ed4
https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology and