Skip to content

Instantly share code, notes, and snippets.

@ChrisTaylorDeveloper
Last active January 9, 2021 09:11
Show Gist options
  • Save ChrisTaylorDeveloper/be5999699bee5e35feaf2c0a714fde9f to your computer and use it in GitHub Desktop.
Save ChrisTaylorDeveloper/be5999699bee5e35feaf2c0a714fde9f to your computer and use it in GitHub Desktop.
Network security - running services and open ports

netstat

Discover which services are running locally

sudo netstat -plunt

nmap

The association between ports and services are listed in this file

/usr/share/nmap/nmap-services

Scan a specific port

sudo nmap -p 80 scanme.nmap.org

Scan a single host

nmap x.x.x.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment