The objective of this task was to perform a TCP SYN scan on the local network using Nmap to identify active hosts, discover open ports, understand the services running on those ports, and analyze potential security risks.
- Nmap
- Windows Command Prompt
- GitHub
Downloaded and installed Nmap from the official website.
Used the following command:
ipconfigThe local network range was identified and masked for privacy.
Example:
192.168.x.0/24
Executed the following command:
nmap -sS 192.168.x.0/24nmap -sS 192.168.x.0/24 -oN scan_results.txtThe scan identified active hosts and their open TCP ports within the local network.
Starting Nmap 7.xx
Nmap scan report for 192.168.x.1
Host is up.
PORT STATE SERVICE
53/tcp open domain
80/tcp open http
443/tcp open https
Nmap scan report for 192.168.x.10
Host is up.
PORT STATE SERVICE
135/tcp open msrpc
139/tcp open netbios-ssn
445/tcp open microsoft-ds
| Port | Service | Description |
|---|---|---|
| 22 | SSH | Secure Remote Login |
| 53 | DNS | Domain Name Service |
| 80 | HTTP | Web Server |
| 135 | RPC | Windows Remote Procedure Call |
| 139 | NetBIOS | Windows File Sharing |
| 443 | HTTPS | Secure Web Traffic |
| 445 | SMB | Windows File Sharing |
- Unauthorized access through exposed services.
- Exploitation of outdated or vulnerable applications.
- Information disclosure.
- Malware propagation across the network.
- Increased attack surface.
- Close unnecessary ports.
- Enable and configure firewalls.
- Keep operating systems and software updated.
- Disable unused services.
- Use strong passwords and authentication.
- Monitor network activity regularly.
An open port is a network communication endpoint that is actively accepting incoming connections.
Nmap sends a SYN packet to a target port. If the target responds with a SYN-ACK packet, the port is considered open. Nmap then sends an RST packet instead of completing the connection.
Open ports can expose services that attackers may exploit to gain unauthorized access or gather information.
TCP scanning checks connection-oriented services, while UDP scanning checks connectionless services and is generally slower due to the lack of acknowledgements.
Unused ports should be closed, firewalls should be configured properly, unnecessary services should be disabled, and systems should be kept updated.
A firewall controls incoming and outgoing network traffic by allowing or blocking access to specific ports based on security rules.
A port scan is the process of identifying open ports and services on a device. Attackers use port scanning to discover potential vulnerabilities and entry points.
Wireshark captures and analyzes network packets, allowing users to inspect traffic generated during port scans and troubleshoot network communication.
Successfully performed a TCP SYN scan using Nmap, identified active hosts and open ports, understood the services running on those ports, and gained practical knowledge of network reconnaissance and basic network security.
Note: Local IP addresses have been masked to protect network privacy.