tools

Tool Penetration Testing: A Complete Guide to the Attack Phase"

Tool Penetration Testing: A Complete Guide to the Attack Phase"

All offensive penetration testing tools organized by attack phase: recon, exploitation, post-exploitation, pivoting, AD. With real attack chains for CTF, OSCP, OSEP, and red teams.

  • Posted on 2026-06-10
  • Reading time: 9 min

This guide collects all the offensive tools used in penetration testing, organized by attack phase—not alphabetically. From OSINT recon to exploitation, from AD lateral movement to pivoting on segmented networks. Each tool has its own context, its own moment, its own real-world use case. Each phase of a penetration test has its own tools. Nmap is useless if you don't know how to read the output. Mimikatz doesn't work without the right privileges. BloodHound is useless if you haven't first enumerated the domain. Choosing the wrong tool at the wrong time is the main cause of failed engagements and incomplete labs.

The operational reference for those preparing OSCP, OSEP, working on HTB, or performing red team engagements. For the services exposed on each port and their associated vectors, see the Complete Guide to TCP/UDP Ports in Penetration Testing.

text
Recon → Scanning → Enumeration → Exploitation → Post-Exploitation → Pivoting → Exfiltration

Top Offensive Toolkit 80/20 #

If you're just starting out or preparing for OSCP, these are the 10 tools that cover 80% of real-world scenarios. Learn them before anything else.

#toolWhy it is essential
1NmapPort scan, version detection, NSE — it all starts here
2Burp SuiteWeb vulnerability interception and testing — irreplaceable
3blood houndAttack path AD — shows you the path to Domain Admin
4NetExecWindows Enumeration and Lateral Movement — Current Standard
5PacketPython AD Toolkit — SMB, Kerberos, DCSync, WMI
6ReplyAutomatic NTLM hash capture over LAN — instant win
7FFUFFast web fuzzing — directories, parameters, vhost
8MimikatzDump Windows Credentials — NTLM, Kerberos, DPAPI
9LinPEASEnumerate everything on Linux — privesc automatically
10HydraMulti-protocol brute force — SSH, FTP, HTTP, SMB

NetExec vs CrackMapExec: NetExec is an active fork of CrackMapExec, developed by the community after the original project was abandoned. It uses the same basic syntax, but NetExec is more up-to-date. Use NetExec for new engagements, and CME if you follow documentation that references it.


Index #


Recon & OSINT #

Before you hit the target, gather everything you can from public sources. Subdomains, emails, technologies, employees, cloud infrastructure—anything that reduces noise in the next phase and increases your known attack surface.

toolWhat does it do in the pentest?Guide
amassPassive and active subdomain enumeration, ASN mappingamass
AquatoneAutomatic screenshot of all found subdomainsAquatone
AssetfinderRapid discovery of subdomains from OSINT sourcesAssetfinder
EyewitnessScreenshot + visual report of web and RDP servicesEyewitness
SEALMetadata from public documents, domain and user informationSEAL
GitrobSearch for secrets and credentials in public GitHub repositoriesGitrob
HostReconRapid single-host recon, technologies and servicesHostRecon
HTTPXFast HTTP probe on host list, status code, and tech stackHTTPX
MaltegoVisual OSINT graph — relationships between entities, emails, IPs, domainsMaltego
Recon-ngModular OSINT framework, similar to Metasploit for reconRecon-ng
ReconSpiderAutomated multi-source OSINT on specific targetsReconSpider
ShodanSearch Engine for Exposed Devices — IoT, ICS, ServicesShodan
Spider FootAutomated OSINT, passive domain/IP scanningSpider Foot
SubfinderFast subdomain discovery with certified transparencySubfinder
theHarvesterEmails, subdomains, search engine names, and OSINTtheHarvester
WappalyzerWeb technology identification — CMS, frameworks, librariesWappalyzer
Wayback URLsHistorical URLs from Wayback Machine — hidden endpoints, parametersWayback URLs
WhatWebFingerprinting web technologies from CLIWhatWeb

Network Scanning & Discovery #

Once the OSINT perimeter is identified, you map the infrastructure. The goal is to find all active hosts, all open ports, and all exposed services. Nmap is the hub—the others complement it for specific speeds or protocols.

toolWhat does it do in the pentest?Guide
NmapPort scan, version detection, NSE scripts — the standardNmap
MascanHigh-speed port scan on large subnetsMascan
Arp-scanLAN host discovery via ARP — more reliable than ping sweepArp-scan
NetdiscoverPassive and active ARP host discovery on the local networkNetdiscover
PingICMP echo — host discovery base, TTL fingerprinting OSPing
NbtscanScan NetBIOS on network — hostname, domain, MAC addressNbtscan
NBTSScannbtscan alternative for NetBIOS enumerationNBTSScan
RPCinfoLists registered RPC services — NFS, NIS, portmapperRPCinfo
ShowmountListing exported NFS shares — a prerequisite for anonymous mountingShowmount
SNMP-checkEnumerate SNMP info — users, processes, routing tableSNMP-check
SNMPwalkFull MIB dump via SNMP — device config, credentialsSNMPwalk

Web Application Testing #

Once the web services are found, every surface is tested: hidden directories, vulnerable parameters, injection points, weak authentication. The FFUF + Burp Suite combo covers 90% of cases.

toolWhat does it do in the pentest?Guide
Burp SuiteProxy intercept, web vulnerability scanner, fuzzer — the centralBurp Suite
FFUFFast web fuzzing — directories, parameters, vhost, LFIFFUF
FeroxbusterRecursive Brute Force Directory with Multi-ThreadingFeroxbuster
GobusterBrute force DNS and directory search — fast on a single targetGobuster
DirsearchDirectory scan with wordlist, status code filtersDirsearch
NobodyAutomatic web server scan — misconfig, header, known CVEsNobody
OWASP ZAPOpen source DAST scanner, alternative to Burp SuiteOWASP ZAP
NucleiTemplate-based vulnerability scanner — CVE, misconfigurationNuclei
ArjunParameter discovery — find hidden GET/POST parametersArjun
CommixAutomated command injection — find and exploit OS injectionsCommix
SQLmapAutomated SQL injection — DB dump, OS shell, file readSQLmap
SearchSploitSearch for exploits in local ExploitDB — offline, fastSearchSploit
JWTJSON Web Token Analysis and Attack — alg:none, weak secretJWT

Exploitation #

Once the vulnerability is identified, you move on to exploitation. Metasploit handles standardized cases. For custom vulnerabilities or hardened environments, combine SearchSploit with manual exploits and public PoCs.

toolWhat does it do in the pentest?Guide
MetasploitExploitation frameworks — modules for hundreds of CVEsMetasploit
msfconsoleMetasploit CLI Interface — Daily Operational Usemsfconsole
ExploitDBPublic Exploit Databases — PoCs and CVE ReferencesExploitDB
RouterSploitExploitation framework for embedded devices and routersRouterSploit
Weevely3Stealth PHP Webshell with Encrypted Channel — Post-Exploitation WebWeevely3
Vulnerability ExploitationMethodology and approach to manual exploitationVulnerability Exploitation

Brute Force & Credentials #

When exploits aren't available, weak credentials are often the way to go. Hydra covers almost all protocols in online mode. Hashcat is for offline cracking of captured hashes.

toolWhat does it do in the pentest?Guide
HydraBrute force online — SSH, FTP, HTTP, SMB, RDP, mail, DBHydra
MedusaBrute force parallel multi-host — Hydra alternativeMedusa
HashcatOffline password cracking — NTLM, NTLMv2, Kerberos, MD5Hashcat
PatatorModular brute force — more flexible on custom protocolsPatator

Active Directory & Windows #

The densest cluster. In an AD engagement, you use these tools sequentially: enumeration with BloodHound and Enum4linux, Kerberos attacks with Rubeus, lateral movement with NetExec and Impacket, and credential dumps with Mimikatz.

toolWhat does it do in the pentest?Guide
blood houndAD Attack Path Map — Shortest Path to Domain Adminblood hound
NetExecAD enumeration, password spray, and exec commands on WindowsNetExec
CrackMapExecEnumeration and lateral movement on a Windows networkCrackMapExec
PacketPython Toolkits — SMB, Kerberos, MSSQL, WMI, DCSync, RPCPacket
The redKerberos Attacks — AS-REP Roasting, Kerberoasting, ticket forgeThe red
MimikatzDump LSASS, NTLM hash, Kerberos tickets, DPAPI secretsMimikatz
SafetyKatzMimikatz .NET port — AV bypass, in-memory executionSafetyKatz
Evil-WinRMShell on WinRM (5985/5986) — lateral movement and file transferEvil-WinRM
Enum4linux-ngSMB/LDAP Enumeration — Users, Shares, Policies, GroupsEnum4linux-ng
LDAP searchRaw LDAP Query — Dump Users, Groups, GPOs, ComputersLDAP search
rpcclientRPC shell — enumerate users, SIDs, policies via null sessionrpcclient
SMBclientSMB share access — list, download, file uploadSMBclient
SMBmapEnumerate SMB shares — permissions, contents, drive mappingSMBmap
SMBexecExecuting commands via SMB without touching the diskSMBexec
WMIexecCommand execution via WMI — agentless, low noiseWMIexec
PsExecRemote execution via SMB — create temporary servicePsExec
AdFindAD enumeration via LDAP — alternative to BloodHound collectorAdFind
seat beltEnumerate Windows host configuration — privileges, defenses, credentialsseat belt
SharpUpDetect Windows misconfiguration for privilege escalationSharpUp
SharpDPAPIDPAPI Secret Dump — Browser Credentials, Password ManagerSharpDPAPI
SharpChromeDump Chrome credentials and cookies via DPAPISharpChrome
SherlockFind local CVEs for privilege escalation on WindowsSherlock
InveighResponder .NET — LLMNR/NBT-NS poisoning from WindowsInveigh
KeyThiefExtracts KeePass keys from memory — credential theftKeyThief
lazagneDump credentials from browsers, mail clients, and various toolslazagne
Invoke-ManipulationBypass AMSI and PowerShell logging — evasion defensesInvoke-Manipulation
WMICLOLBin Windows — exec commands, WMI queries, lateral movementWMIC
Pass the HashUse NTLM hash without cracking it to authenticatePass the Hash

Linux Post-Exploitation & PrivEsc #

Once you've got a Linux shell, the goal is to become root. LinPEAS automates the search for vectors, while GTFOBins tells you how to exploit them. Pspy monitors processes in real time without root—this is often the way to discover cron jobs with elevated privileges.

toolWhat does it do in the pentest?Guide
LinPEASAutomatically enumerate everything — privesc, credentials, configLinPEAS
LinEnumBash script for privilege escalation check — legacy but reliableLinEnum
LSELinux Smart Enumeration — Priority-graded outputLSE
LynisLinux system audit — find misconfiguration and hardening gapsLynis
GTFOBinsLinux Binary Reference for Privesc, Bypass, and Shell — EssentialGTFOBins
GetcapLinux Capabilities List — Often-Ignored Privesc VectorGetcap
PspyMonitor processes in real time without root — find cron jobsPspy
JAWSPowerShell script for private Windows — analogue of LinPEASJAWS
WinPEASAutomatic Windows enumeration for privilege escalationWinPEAS
WinEnumEnumerate Windows configuration — services, tasks, permissionsWinEnum
Unix-PrivEsc-CheckPerl script for legacy Unix systems — compatible with shUnix-PrivEsc-Check
MimiPenguinDump credentials from memory on Linux — gnome-keyring, SSHMimiPenguin
chkrootkitLocates rootkits installed on Linux systemchkrootkit
osquerySQL queries on operating system — processes, network, files, usersosquery

Pivoting & Tunneling #

Within the network, you need to reach segments that aren't directly accessible. Chisel and socat are the most commonly used in HTB labs. SSHuttle is the most transparent in real-world environments. ProxyChains routes existing tools through the tunnel without modifying them.

toolWhat does it do in the pentest?Guide
ChiselTCP/UDP tunneling via HTTP — also works through proxiesChisel
SocatMulti-purpose TCP/UDP relay — port forward, bind/reverse shellSocat
SSHuttleVPN via SSH — Route all traffic without an additional clientSSHuttle
ProxyChainsRoute tool through SOCKS/HTTP proxy — transparent pivotingProxyChains
PlinkPuTTY CLI — SSH tunneling from Windows without installationPlink
RevSocksReverse SOCKS proxy — useful when the target is behind NATRevSocks
NetcatTCP/UDP relay, bind/reverse shell, basic file transferNetcat
ncNetcat — Variants and Syntax on Different Systemsnc

Sniffing & MITM #

On the LAN, unencrypted traffic is an immediate source of credentials. Responder poisons the network and automatically captures NTLM hashes. Wireshark and tcpdump analyze traffic. Ettercap and Bettercap handle full MITM attacks with real-time packet modification.

toolWhat does it do in the pentest?Guide
WiresharkGUI Traffic Analysis — Filter, decode, and track TCP streamsWireshark
tcpdumpPacket capture CLI — capture, filter, export .pcaptcpdump
TsharkWireshark CLI — Offline, scriptable analysis of pcap filesTshark
ReplyLLMNR/NBT-NS/MDNS poisoning — capture NTLM hash automaticallyReply
EttercapARP poisoning + MITM — intercept and modify LAN trafficEttercap
BettercapModern MITM framework — ARP, DNS, HTTPS downgradeBettercap
MITMProxyInteractive HTTP/HTTPS Proxy — Inspects and modifies requestsMITMProxy

Social Engineering & Phishing #

When there are no exploitable technical vulnerabilities, the attack goes through people. GoPhish manages comprehensive phishing campaigns with tracking. EvilGinx2 captures credentials and session cookies, bypassing MFA.

toolWhat does it do in the pentest?Guide
GoPhishPhishing framework — email campaigns, landing pages, trackingGoPhish
EvilGinx2Reverse proxy phishing — capture credentials and bypass MFA cookiesEvilGinx2
BeEFBrowser Exploitation Framework — browser hooks via stored XSSBeEF
Social Engineer ToolkitSE framework — phishing, vishing, automated pretextingSocial Engineer Toolkit

Cloud & Infrastructure #

Misconfigured cloud environments expose public S3 buckets, overly privileged IAM roles, and unauthenticated APIs. These tools automate the detection of these vectors across AWS, Azure, and GCP.

toolWhat does it do in the pentest?Guide
CloudEnumList public cloud resources — AWS, Azure, GCPCloudEnum
S3ScannerFind and test public or misconfigured S3 bucketsS3Scanner
AWS Privilege EscalationTechniques and tools for private on AWS IAMAWS Privilege Escalation

LOLBins & Native Windows Tools #

Native Windows tools are the stealthiest: already present on the system, designed by Microsoft, and rarely blocked by AV/EDR. Always use them before downloading external tools to the target—less noise, fewer traces, less detection.

toolWhat does it do in the pentest?Guide
CertUtil.exeDownload files, encode/decode base64, verify certificatesCertUtil
WMICWMI queries, exec processes, lateral movement — Powerful LOLBinWMIC
Scheduled TaskPersistence and privacy via Windows task schedulerScheduled Task
crontabPersistence on Linux via cron — classic privesc vectorcrontab
RSHLegacy Unix remote shell — passwordless access via .rhostsRSH
telnetClear service connection, banner grab, port testtelnet
SSH AuditSSH configuration audit — weak algorithms, vulnerable versionsSSH Audit
SSH-KeyHunterSearch for private SSH keys in the filesystem — post-exploitationSSH-KeyHunter
EmpireC2 framework PowerShell/Python — advanced post-exploitationEmpire
Fail2banDefensive Log Analysis: Understanding Rate Limits Before BruteforceFail2ban

Real Attack Chains #

The tools aren't used in isolation. These are the most common chains you'll encounter in real-world environments, ProLab HTB, and OSCP assessments.

Chain 1 — External Recon → Web RCE #

text
Amass / Subfinder     →  Enumerazione subdomini
HTTPX                 →  Probe HTTP su tutti i subdomini trovati
Nmap                  →  Port scan + version detection sui target vivi
Nikto / Nuclei        →  Scan automatico vulnerabilità web note
FFUF                  →  Directory brute force, parameter fuzzing
Burp Suite            →  Analisi manuale, intercept, injection test
SQLmap / Commix       →  Exploitation — dump DB o OS shell
Weevely3              →  Webshell persistente per post-exploitation

Chain 2 — AD Attack Chain (from LAN network) #

text
Nmap                  →  Identifica DC, host Windows, porte AD aperte
Enum4linux-ng         →  Null session — utenti, share, policy dominio
Responder             →  LLMNR/NBT-NS poisoning → cattura NTLMv2 hash
Hashcat               →  Crack hash offline con wordlist
NetExec               →  Valida credenziali, password spray, enumera rete
BloodHound            →  Mappa attack path — trova percorso verso DA
Rubeus                →  Kerberoasting → hash account servizio
Hashcat               →  Crack hash Kerberos offline
Impacket secretsdump  →  DCSync → dump tutti gli hash del dominio
Mimikatz              →  Golden Ticket / credenziali da LSASS
Domain Admin          ✅

Chain 3 — Linux Post-Exploitation #

text
Shell iniziale        →  whoami, id, uname -a, ip a
LinPEAS               →  Enumera tutto — SUID, cron, sudo, capability
Pspy                  →  Monitora processi — trova cron job root
GTFOBins              →  Identifica binario sfruttabile per privesc
Getcap                →  Controlla capabilities — python3, perl, openssl
Root                  ✅
MimiPenguin           →  Dump credenziali da memoria
Chisel + ProxyChains  →  Pivoting verso subnet interna

Chain 4 — Internal Windows Lateral Movement #

text
Nmap                  →  Mappa rete interna — host Windows attivi
CrackMapExec          →  Verifica accesso su tutti gli host
SMBmap / SMBclient    →  Enumera share — cerca file con credenziali
Pass-the-Hash         →  Usa NTLM hash senza password in chiaro
Evil-WinRM            →  Shell su host via WinRM (5985)
WinPEAS / Seatbelt    →  Enumera privesc locale
SharpDPAPI            →  Dump credenziali salvate — browser, Windows
Mimikatz              →  Dump LSASS — NTLM hash e ticket Kerberos
BloodHound            →  Aggiorna attack path con nuove credenziali
Lateral movement      →  Ripeti fino a Domain Admin ✅

Related Hubs #

HubWhat it covers
TCP/UDP ports in Penetration TestingAll ports for offensive scenario — AD, web, database, mail, DevOps, protocols
Web Vulnerabilities & Attack TechniquesSQL injection, XSS, SSRF, SSTI, LFI and all web hacking

For professional penetration testing on real infrastructures, discover HackIta's services.

#Hacking-Tools #Post-Exploitation #Active-Directory

leave a message

I'm not a robot