Tools
Hacker's toolbox
Everyday tools for rooms and CTFs. They run entirely in your browser: nothing you type is sent to Makoo's server.
Linux
Navigation and files
pwdPrint the current directoryls -laList all files, including hidden, with detailscd /var/logChange directory (cd .. goes up, cd ~ goes home)cat file.txtPrint a fileless file.txtPage through a long file (q to quit)find / -name '*.conf' 2>/dev/nullFind files by name, hiding permission errorsfile mystery.binGuess what kind of file something is
Searching text
grep -i 'failed' /var/log/auth.logCase-insensitive search in a filegrep -rn 'password' .Search all files below here, with line numberscut -d' ' -f1 access.log | sort | uniq -c | sort -rn | headTop values of the first columntail -f /var/log/syslogFollow a log as it growswc -l file.txtCount lines
Permissions and users
idYour user, groups, and IDschmod 600 id_rsaOwner read/write only (needed for SSH keys)sudo -lWhat you're allowed to run as rootfind / -perm -4000 -type f 2>/dev/nullFind SUID binariescat /etc/crontabSystem-wide scheduled jobs
Processes and network
ps auxAll running processeskill -9 1234Force-stop process 1234systemctl status sshStatus of a servicess -tulpnListening ports and the programs behind themip aNetwork interfaces and IP addressescurl -i https://example.comHTTP request, showing response headers
Nmap
Only scan systems you own or have written permission to test. See the Rules page.
Discovery and ports
nmap -sn 10.10.10.0/24Find live hosts (ping scan, no ports)nmap 10.10.10.5Top 1000 TCP portsnmap -p- 10.10.10.5All 65535 TCP portsnmap -p 22,80,443 10.10.10.5Specific portssudo nmap -sS 10.10.10.5SYN (half-open) scansudo nmap -sU --top-ports 50 10.10.10.5Top 50 UDP ports
Services, OS, and scripts
nmap -sV 10.10.10.5Detect service versionssudo nmap -O 10.10.10.5Guess the operating systemnmap -sC -sV 10.10.10.5Default scripts plus versions (a common first scan)nmap --script http-title -p80,443 10.10.10.5Run a specific NSE scriptnmap -A 10.10.10.5Aggressive: versions, OS, scripts, traceroute
Speed and output
nmap -T4 10.10.10.5Faster timing (T0 slowest โ T5 fastest)nmap -sV -oA scan 10.10.10.5Save output in all formats (scan.nmap, .xml, .gnmap)nmap -Pn 10.10.10.5Skip host discovery (for hosts that block ping)nmap --reason 10.10.10.5Explain why each port has its state