Skip to main content

How to Scan a Network with Nmap on Linux (Ubuntu)

HardReset.InfoDecember 17, 20258 min133 views
5 connections·9 entities in this video→

Installing and Using Nmap on Linux

  • πŸ’‘ Nmap is a powerful network scanning tool for Linux, particularly useful on Ubuntu and Debian distributions.
  • πŸš€ To install Nmap, use the command sudo apt install nmap in the terminal.

Basic Network Scanning Techniques

  • πŸ“Œ To find your IP address, use the command ip a.
  • 🎯 Scanning a single host is done by typing nmap followed by the IP address (e.g., nmap 10.0.2.15).
  • 🌐 Scanning an entire subnet is achieved using CIDR notation (e.g., nmap 10.0.2.0/24).
  • ⚑ A ping scan (nmap -sn) can discover active hosts without port scanning.

Advanced Nmap Options

  • πŸ” To scan specific ports, use the -p flag followed by the port number (e.g., nmap -p 80 10.0.2.15).
  • πŸ“Š The -sV flag is used to detect services and their versions running on open ports.
  • πŸ’» OS detection can be performed with the sudo nmap -O command to identify the operating system.
  • πŸ’₯ An aggressive scan (nmap -A) enables OS detection, version detection, script scanning, and traceroute for comprehensive information.
  • πŸ› οΈ Installing services like Apache2 (sudo apt install apache2) can help demonstrate scanning specific ports like HTTP (port 80).
Knowledge graph9 entities Β· 5 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
9 entities
Chapters3 moments

Key Moments

Transcript29 segments

Full Transcript

Topics13 themes

What’s Discussed

NmapLinuxUbuntuNetwork ScanningIP AddressSubnet ScanPing ScanPort ScanningService DetectionOS DetectionAggressive ScanTerminal CommandsDebian
Smart Objects9 Β· 5 links
ProductsΒ· 2
LocationΒ· 1
ConceptsΒ· 6