Skip to content

Latest commit

 

History

History
50 lines (47 loc) · 2 KB

File metadata and controls

50 lines (47 loc) · 2 KB

Enumeration and exploitation

Terminal logging

  • Always start logging terminal history before running any commands:
script -f ./history-<tab_number>.log

Port scanning

  • Scan common TCP ports:
nmap -v -sV -sC <single_ip_or_range> 
  • Aggressively SYN scan all TCP ports:
sudo nmap -v -p- -sS -A <single_ip_or_range>
  • Scan all TCP ports for known vulnerabilities:
sudo nmap -v -p- --script vuln <single_ip_or_range>
  • Aggressively scan common UDP ports:
sudo nmap -v --top-ports 20 -A -sU <single_ip_or_range>

Enumerating common ports and services