Skip to content
Robin te Hofstee — Personal Blog
➜~neofetch

robin@blog

Name
Robin te Hofstee
Role
Full-stack developer, sysadmin & technical writer
Focus
homelab · Linux · self-hosting · Next.js
Posts
60 · latest Nov 17, 2026
Host
blog.robintehofstee.com
Links
github · rss · portfolio
➜curlblog.robintehofstee.com
➜~cat/blog/ethical-hacking-commands.mdx
←cd ~

Ethical Hacking Commands Cheatsheet

Aug 13, 20262 minsecuritynetworkingcheatsheetpentesting

via Spyriot Security Cyber Hub (@spyriotsecuritycyberhub)

Curated safe cheatsheet — authorized use only. Only run these commands against systems and domains you own or have explicit written permission to test.

Recon#

bash
whois target.com
# Domain registration info

nslookup target.com
# DNS lookup

dig target.com
# Detailed DNS records

traceroute target.com
# Network path

Enumeration#

bash
theHarvester -d target.com -b google
# Public emails & subdomains

dnsenum target.com
# DNS enumeration

sublist3r -d target.com
# Find subdomains

wget --spider -r target.com
# Crawl structure

Network Analysis#

bash
nmap -sV target.com
# Detect services

arp -a
# View ARP cache

tcpdump -i eth0
# Capture traffic

nc -zv target.com 22
# Check open port

Web Checks#

bash
whatweb target.com
# Identify technologies

nikto -h http://target.com
# Server checks

curl -I http://target.com
# Inspect headers

curl -s http://target.com | grep "admin"
# Search page content

System Inspection#

bash
uname -a
# System info

cat /etc/passwd
# View users

ps aux | grep process
# Find process

dmesg | tail
# Recent kernel messages

File / Firewall#

bash
iptables -L
# View firewall rules

scp file.txt user@target.com:/home/user/
# Secure transfer

shred -u file.txt
# Secure delete

gpg --decrypt file.gpg
# Decrypt owned file

Knowledge is power. Ethics is our strength. Stay legal. Stay ethical. Stay safe.

Credit: Spyriot Security Cyber Hub — @spyriotsecuritycyberhub