
Learn Active Directory reconnaissance and discovery with nmap and LDAP enumeration to reveal misconfigurations, password policies, users, and domain groups, then use Responder and Bad Rats for authentication and enumeration.
Explore a vulnerable active directory lab with five VMs, two forests, and three domains, following the outline and resources, and using nmap, net exec, and GNOME to enumerate the domain.
Disclaimer:
The information, techniques, and tools presented in this online cybersecurity course are intended for educational purposes only. Any testing or experimentation based on the content of this course should be conducted exclusively on your own dedicated lab environment, virtual machines, or systems where you have explicit and legal authorization to perform such activities. The creators of this course take no responsibility for any actions taken by viewers that may lead to unauthorized access, breaches, or other malicious activities. It is the responsibility of the course viewer to ensure they comply with all relevant laws, regulations, and organizational policies when using the material provided.
Domain Enumeration Tools: NMAP, NetExec, and enum4Linux are essential utilities for gathering information about network domains. NMAP is a powerful network scanner that identifies hosts, services, and open ports, aiding in the discovery of domain controllers and other infrastructure. NetExec facilitates remote command execution and enumeration, uncovering details like network shares and user accounts. Enum4Linux, designed for Linux systems, extracts critical information from Windows environments via SMB protocols, such as user accounts, group memberships, and domain policies. Together, these tools provide valuable insights for network assessment and security analysis.
NMAP is a powerful tool for network scanning, service detection, and security assessment. For SMB enumeration, NMAP can identify hosts with port 445 open, analyze SMB signing configurations using the smb2-security-mode script, and highlight systems where "Message signing is enabled but not required," indicating potential vulnerabilities. Similarly, for LDAP services, NMAP detects hosts with port 389 open and uses targeted scripts to enumerate LDAP configurations, uncovering misconfigurations. These techniques showcase NMAP's ability to provide detailed insights into network services, supporting security auditing and infrastructure hardening.
NetExec offers a versatile approach to enhancing security assessments through domain-focused enumeration techniques. It includes domain password policy enumeration, enabling the identification of weak or misconfigured policies that may expose the network to password-based attacks. Domain user enumeration leverages network protocols to list active users, aiding in the identification of accounts that could be exploited by attackers. Additionally, domain SMB share enumeration focuses on discovering shared resources across systems with port 445 open.
enum4Linux is a powerful and lightweight tool designed for in-depth enumeration of SMB and NetBIOS services in Windows and Samba environments. It excels at gathering critical information about domain configurations, including user accounts, group memberships, and shared resources. By querying systems with open SMB ports, enum4Linux can uncover details such as operating system versions, network policies, and even potential vulnerabilities like weak permissions or poorly secured shares
Network Mapping and Traffic Tools such as fping, NBTScan, TCPDump, and Wireshark are essential utilities for analyzing and troubleshooting network environments. fping excels at efficiently pinging multiple hosts to check connectivity and identify live systems. NBTScan focuses on scanning networks for NetBIOS information, providing insights into shared resources and workgroups. TCPDump offers a command-line solution for capturing and analyzing network traffic, enabling detailed inspection of packet-level data. Wireshark, a comprehensive graphical tool, takes traffic analysis further by providing a user-friendly interface for in-depth packet inspection and protocol analysis. Together, these tools empower administrators and analysts to map networks, monitor traffic, and identify potential issues or security concerns.
Target Identification with fping and NBTScan involves leveraging these tools to efficiently discover and profile devices within a network. fping is optimized for high-speed host discovery, allowing users to ping multiple IP addresses simultaneously and identify active systems with minimal effort. NBTScan focuses on scanning networks for NetBIOS information, providing detailed insights into device names, shared resources, and workgroup associations. Together, these tools enable rapid identification of networked devices, offering valuable data for network mapping, troubleshooting, and security assessments.
(Note: 6 hosts are alive at 0:17, 7 minus my attacker host)
Practical TCPDump and Wireshark Usage focuses on leveraging these powerful tools for network traffic analysis and troubleshooting. TCPDump, a command-line utility, captures packets directly from the network, offering precise control and filtering options for real-time monitoring and debugging. Wireshark complements this with a graphical interface, making it easier to analyze captured data through detailed visualizations, protocol decoding, and packet inspection. Whether diagnosing connectivity issues, detecting anomalies, or investigating security incidents, these tools provide the essential capabilities needed for in-depth traffic analysis in both simple and complex network environments.
Network Poisoning with Responder and MITM6 involves exploiting vulnerabilities in network protocols to intercept or manipulate traffic for testing and security evaluation purposes. Responder targets weaknesses in protocols like LLMNR, NBT-NS, and MDNS to capture credentials or redirect traffic by impersonating legitimate network services. MITM6 focuses on IPv6 environments, leveraging automatic configurations to perform Man-in-the-Middle (MITM) attacks, redirecting traffic through the attacker's system.
Capturing and analyzing credentials with Responder involves exploiting weaknesses in network authentication protocols to intercept and examine sensitive data. By masquerading as legitimate services like LLMNR, NBT-NS, or MDNS, Responder coerces devices into sending authentication requests containing hashed credentials to the attacker’s system. These intercepted hashes can then be analyzed or cracked to reveal plaintext passwords.
MITM6 exploits focus on taking advantage of inherent vulnerabilities in IPv6 networks to execute Man-in-the-Middle (MITM) attacks and dominate network traffic. By leveraging features like IPv6 auto-configuration and spoofing router advertisements, MITM6 can redirect traffic through an attacker-controlled system without requiring user interaction. This allows attackers to intercept sensitive data, manipulate traffic, or exploit misconfigured systems relying on IPv6.
Utilizing persistent access with Badrats involves leveraging this tool to establish and maintain a foothold within a compromised system. Badrats is designed to create persistent backdoors by exploiting system vulnerabilities or misconfigurations, allowing attackers to execute commands, exfiltrate data, or manipulate system behavior over time.
Remote exploitation and domain enumeration with Badrats involves using this tool to gain unauthorized access to a domain and extract sensitive information such as user accounts, group memberships, and domain password policies.
This comprehensive cybersecurity course equips learners with foundational and practical skills in reconnaissance, network analysis, and remote exploitation. Starting with a clear overview of course goals and ethical guidelines, it progresses into hands-on exploration of essential tools like NMAP, NetExec, and Wireshark, emphasizing techniques for domain enumeration, service detection, and network traffic analysis. Students will gain knowledge of credential capture and exploitation methods, such as network poisoning with Responder and MITM6, and gain insights into utilizing remote access using C2s like BadRats. The course delves into topics like Active Directory exploitation, lateral movement, and remote access techniques, enabling learners to understand and counteract cyberattacks. Practical exercises simulate real-world scenarios, reinforcing theoretical concepts and offering opportunities for hands-on experience with Active Directory hosts. By addressing both offensive and defensive aspects of cybersecurity, participants will enhance their technical expertise while cultivating a strong ethical foundation. This course ensures learners are prepared to analyze, mitigate, and respond to threats effectively in modern network environments, developing robust strategies for handling cyberattacks, gaining deeper insights into modern threat landscapes, adversary behaviors, mitigation techniques, exploitation scenarios, offensive strategies, swift attack execution plans, targeted breach tactics, adapting to evolving vulnerabilities, and making decisive moves quickly in technical situations.