- External Information Gathering
- Service Enumeration & Exploitation
- Web Enumeration & Exploitation
- Initial Access
- Post-Exploitation Persistence
- Internal Information Gathering
- Exploitation & Privilege Escalation
- Lateral Movement
- Active Directory Compromise
- Post-Exploitation
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
External Information Gathering
🎯 Overview
External Information Gathering is the critical first phase of enterprise network attacks. This process involves systematic reconnaissance to map the attack surface, identify services, discover subdomains, and gather intelligence for targeted exploitation against external-facing infrastructure.🔍 Initial Network Reconnaissance
📊 Quick Port Discovery
🔧 Comprehensive Service Enumeration
📈 Service Analysis with Nmap Grep
🌐 DNS Enumeration
📋 DNS Zone Transfer Attack
🔍 Alternative DNS Enumeration
🌐 Virtual Host Discovery
📊 VHost Enumeration Process
🔧 Alternative VHost Tools
📝 Host File Configuration
🔧 Adding Discovered Hosts
🎯 HTB Academy Lab Solutions
Lab Environment
🔍 Question 1: Banner Grab Non-Standard Service
🌐 Question 2: DNS Zone Transfer Flag
📍 Question 3: Flag Subdomain FQDN
🔍 Question 4: Additional VHost Discovery
🔄 Information Gathering Workflow
📊 Systematic Approach
🎯 Attack Surface Mapping
⚠️ Reconnaissance Best Practices
🔒 Stealth Considerations
📋 Documentation Standards
💡 Key Takeaways
- Systematic enumeration reveals complete attack surface
- DNS zone transfers provide valuable subdomain intelligence
- VHost discovery uncovers hidden applications
- Service versioning enables vulnerability research
- Anonymous access often provides immediate foothold opportunities
- Comprehensive documentation essential for attack planning
- Multiple enumeration methods ensure complete coverage
External information gathering establishes the foundation for enterprise network attacks by mapping the complete external attack surface and identifying high-value targets for exploitation.
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Service Enumeration & Exploitation
🎯 Overview
Service enumeration and exploitation focuses on systematically testing discovered services for vulnerabilities, misconfigurations, and attack vectors. This phase moves from reconnaissance to active testing of FTP, SSH, SMTP, DNS, HTTP, and email services.📊 Discovered Services Analysis
🔍 Service Inventory
📁 FTP Service Testing
🔓 Anonymous Access Validation
🔧 FTP Security Assessment
📋 FTP Attack Vectors
🔑 SSH Service Assessment
📊 Version Analysis
🔧 Authentication Testing
📧 Email Services Enumeration
📋 SMTP Configuration Analysis
👤 User Enumeration via SMTP
🔧 Advanced SMTP Testing
📮 POP3/IMAP Testing
🔍 Authentication Analysis
🔒 Secure Email Port Testing
🌐 RPC Service Assessment
📊 rpcbind Enumeration
🎯 HTB Academy Lab Solution
Lab Environment
📁 Question: Enumerate Services and Find Flag
🔄 Service Testing Methodology
📋 Systematic Approach
🎯 Finding Categories
⚠️ Testing Limitations
🔒 Ethical Boundaries
📋 Documentation Requirements
💡 Key Takeaways
- Anonymous FTP access often provides immediate foothold opportunities
- User enumeration via SMTP VRFY creates attack vectors
- Service versioning enables targeted vulnerability research
- Email services require SSL/TLS for secure authentication
- RPC services should not be externally exposed
- Systematic testing ensures comprehensive service coverage
- Professional documentation supports finding validation and remediation
Service enumeration and exploitation systematically tests each discovered service for security weaknesses while maintaining ethical boundaries and comprehensive documentation standards.
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Web Enumeration & Exploitation
🎯 Overview
Web applications present the largest attack surface during External Penetration Tests. Focus on high-risk vulnerabilities (RCE, data exposure) rather than minor issues. Use EyeWitness for efficient application discovery and systematic testing of each discovered service.🔍 Web Application Discovery
📊 EyeWitness Automation
🌐 Application-by-Application Analysis
📝 blog.inlanefreight.local - Drupal 9
💼 careers.inlanefreight.local - Job Portal
🔧 dev.inlanefreight.local - Key Vault
🔺 Unrestricted File Upload Chain
💰 ir.inlanefreight.local - WordPress
📊 status.inlanefreight.local - Log Search
🎫 support.inlanefreight.local - IT Support Portal
📦 tracking.inlanefreight.local - PDF Generator
🔐 vpn.inlanefreight.local - Fortinet SSL VPN
🦊 gitlab.inlanefreight.local - GitLab Instance
🛒 shopdev2.inlanefreight.local - Shopping Cart
📊 monitoring.inlanefreight.local - Monitoring Console
🎯 Key Vulnerabilities Discovered
🔴 High Risk Findings
🟡 Medium Risk Findings
🚀 Attack Chain Summary
🎯 External → Internal Pivot Path
🔧 Tools & Techniques Used
🌐 Web Enumeration
⚔️ Exploitation Techniques
🎯 HTB Academy Labs
📋 Lab Solutions Summary
🔍 Key Learning Points
🛡️ Defensive Recommendations
🔒 Application Security
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Initial Access
🎯 Overview
Initial Access transforms external reconnaissance into stable internal network foothold. This phase focuses on converting command injection into reverse shells, TTY upgrades, and privilege escalation to establish persistent access for internal Active Directory attacks.🚀 Reverse Shell Establishment
🔧 Socat Reverse Shell (Filter Bypass)
🎧 Listener Setup
🔄 TTY Upgrade Process
🛠️ Socat Interactive Terminal
🐍 Alternative Python TTY
🔍 Privilege Escalation Discovery
📋 Audit Log Analysis
🔐 Credential Extraction from Logs
🔺 User Escalation
🌐 Network Position Analysis
📊 Network Interface Discovery
🎯 Host Information
🔒 Persistence Preparation
🛡️ Access Maintenance Strategy
📋 Next Steps Planning
🎯 HTB Academy Lab
📋 Lab Solution Summary
🔍 Learning Objectives
🛡️ Defensive Recommendations
🔒 Application Security
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Post-Exploitation Persistence
🎯 Overview
Post-exploitation persistence ensures stable access after hard-fought initial compromise. Transform unstable reverse shells into persistent SSH access, escalate to root privileges, and establish reliable pivot points for internal Active Directory attacks.🔒 Establishing Stable Access
🔑 SSH Connection Upgrade
📊 System Information Gathering
🔺 Local Privilege Escalation
🔍 Privilege Assessment
🛠️ OpenSSL GTFOBin Exploitation
🔐 SSH Key Persistence Setup
🎯 Persistence Benefits Analysis
🚀 Access Advantages
🔄 Alternative Persistence Methods
🌐 Network Position Assessment
📊 DMZ Host Analysis
🎯 Internal Network Preparation
🛡️ Operational Security
🔒 Access Maintenance
📋 Pivot Preparation Checklist
🎯 HTB Academy Lab
📋 Lab Solution Summary
🔍 Learning Objectives
🛡️ Defensive Recommendations
🔒 System Hardening
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Internal Information Gathering
🎯 Overview
Internal Information Gathering transforms external foothold into comprehensive internal reconnaissance. Establish SSH/Metasploit pivoting, discover live hosts, enumerate Active Directory infrastructure, and exploit misconfigured services for credential harvesting and lateral movement preparation.🔄 Pivoting Setup Methods
🔑 SSH Dynamic Port Forwarding
🎯 Metasploit Autoroute Alternative
🔍 Internal Host Discovery
📊 Network Scanning Approaches
🎯 Discovered Infrastructure
🔍 Service Enumeration Results
📊 172.16.8.3 - Domain Controller Analysis
🖥️ 172.16.8.50 - Tomcat Server Analysis
🌐 172.16.8.20 - Windows Server + NFS
📁 NFS Share Exploitation
🔍 NFS Misconfiguration Assessment
🔐 Credential Discovery in Config Files
🌐 DotNetNuke (DNN) Analysis
📊 Application Assessment
🔍 Firefox SOCKS Proxy Configuration
📡 Network Traffic Analysis
🔍 Packet Capture Setup
📊 Network Intelligence Gathering
🎯 Attack Surface Assessment
🔴 High-Priority Targets
🟡 Secondary Targets
🛠️ Tools & Techniques Summary
🔄 Pivoting Methods
🔍 Discovery Techniques
🎯 HTB Academy Lab
📋 Lab Solution Summary
🔍 Learning Objectives
🛡️ Defensive Recommendations
🔒 Network Security
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Exploitation & Privilege Escalation
🎯 Overview
Exploitation & Privilege Escalation transforms credential discovery into SYSTEM-level access on internal hosts. Leverage DotNetNuke (DNN) administrative access, enable xp_cmdshell, exploit SeImpersonate privileges with PrintSpoofer, and establish multiple persistence methods for reliable internal network control.🌐 DotNetNuke (DNN) Exploitation
🔐 Administrative Access
🛠️ SQL Console Exploitation
📁 File Extension Bypass
🔺 Privilege Escalation Techniques
🖥️ Web Shell Deployment
🚀 PowerShell Reverse Shell
🎯 PrintSpoofer Exploitation
💾 Credential Harvesting
🔐 SAM Database Extraction
🔍 Secretsdump Analysis
🎯 Domain Credentials Discovery
🔄 Alternative Attack Methods
🔀 Reverse Port Forwarding
⚙️ SSH Configuration Requirements
🎯 Multiple Access Vectors
🔄 Attack Path Diversity
🛡️ Persistence Mechanisms
🎯 Active Directory Preparation
🔍 Domain Intelligence Gathered
📋 Next Phase Planning
🎯 HTB Academy Labs
📋 Lab Solution Summary
🔍 Key Learning Points
🛡️ Defensive Recommendations
🔒 Application Security
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Lateral Movement
🎯 Overview
Lateral Movement leverages domain credentials for Active Directory enumeration, share hunting, Kerberoasting, and privilege escalation across multiple hosts. Use BloodHound for attack path discovery, file share analysis for credential hunting, and post-exploitation techniques for comprehensive domain compromise.🩸 BloodHound AD Enumeration
🔍 Data Collection
🎯 Attack Path Analysis
📁 File Share Hunting
🔍 Share Discovery & Enumeration
💾 Credential Discovery in Shares
🎫 Kerberoasting Attack
🔍 SPN Account Discovery
🔐 Hash Cracking Results
🌊 Password Spraying Campaign
💥 Domain-Wide Password Attack
🔍 Additional Enumeration Techniques
🖥️ MS01 Host Compromise
🔑 WinRM Access Discovery
🔺 Local Privilege Escalation
🛠️ Sysax Automation Privilege Escalation
💎 Post-Exploitation Credential Harvesting
🕷️ Network Credential Harvesting
🎣 Inveigh LLMNR/NBT-NS Poisoning
📊 Additional Intelligence Gathering
🎯 Credential Summary
🔐 Compromised Accounts Inventory
🎯 Access Matrix
🔍 Attack Path Progression
📊 Lateral Movement Chain
🎯 Next Phase Preparation
🎯 HTB Academy Lab Context
📋 Techniques Demonstrated
🔍 Professional Methodology
🛡️ Defensive Recommendations
🔒 Active Directory Security
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Active Directory Compromise
🎯 Overview
Active Directory Compromise represents the final phase of enterprise network penetration testing. Leverage GenericWrite privileges for targeted Kerberoasting, exploit Server Admins group membership for DCSync attacks, and achieve Domain Administrator access through systematic privilege escalation and credential harvesting.🔍 BloodHound Attack Path Analysis
🎯 GenericWrite Privilege Discovery
📊 Attack Chain Visualization
🎫 Targeted Kerberoasting Attack
🔧 Fake SPN Creation
🎯 TGS Ticket Extraction
🔐 Password Cracking
🔺 Server Admins Group Escalation
👥 Group Membership Manipulation
🎯 DCSync Privileges Inheritance
🔄 DCSync Attack Execution
💎 NTDS Database Extraction
👑 Domain Administrator Access
🎯 Post-Compromise Activities
📊 Complete Domain Control Validation
🔒 Cleanup and Documentation
🏆 Complete Attack Chain Summary
🚀 External → Domain Admin Path
📋 Comprehensive Findings Summary
🛠️ Tools & Techniques Mastery
🔍 Reconnaissance Tools
⚔️ Exploitation Techniques
🎯 HTB Academy Labs
📋 Final Lab Solutions
🔍 Professional Methodology Demonstrated
🛡️ Comprehensive Defensive Recommendations
🔒 Active Directory Hardening
🌐 Network Security
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter:
Post-Exploitation
🎯 Overview
Post-Exploitation activities maximize assessment value after achieving Domain Administrator access. Perform domain password analysis, establish double pivoting for protected networks, exploit kernel vulnerabilities, and demonstrate comprehensive impact through systematic post-compromise enumeration and additional security assessments.📊 Domain Password Analysis
💎 NTDS Database Analysis
🔍 Password Policy Effectiveness Assessment
🔒 Active Directory Security Audit
🛡️ PingCastle AD Assessment
🔍 Additional AD Enumeration
🌐 Protected Network Access
🔍 Management Network Discovery
🗝️ SSH Key Discovery
🔄 Double Pivot Configuration
🛠️ Complex Tunneling Setup
🎯 Metasploit Routing Configuration
🖥️ MGMT01 Host Compromise
🔑 SSH Key Authentication
🔍 System Information Gathering
🔺 DirtyPipe Privilege Escalation
💥 CVE-2022-0847 Exploitation
🏆 Management Network Compromise
🎯 Additional Value-Add Activities
💰 Sensitive Data Discovery
🔍 Data Exfiltration Testing
🌐 Domain Trust Exploitation
📋 Professional Reporting Enhancement
📊 Comprehensive Impact Assessment
🎯 Executive Summary Enhancements
🎯 HTB Academy Labs
📋 Final Lab Solutions
🔍 Advanced Techniques Demonstrated
🛡️ Comprehensive Defense Strategy
🔒 Network Architecture
🛡️ Detection and Response
🏆 Complete Enterprise Assessment Summary
🎯 Full Attack Chain Achievement
📋 Professional Assessment Value
Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with theask query parameter: