Perform a TCP SYN scan on a local home network to discover active devices and open ports using Nmap, analyze the results for potential security risks, and verify scan traffic using Wireshark.
| Tool | Purpose |
|---|---|
| Nmap | Network discovery and port scanning |
| Wireshark | Packet capture to verify SYN scan traffic |
| Kali Linux | OS environment for execution |
Before scanning, the local subnet was identified using:
ip aFinding: Machine IP was 192.168.1.39/24 β meaning the scan range was 192.168.1.0/24 (256 addresses).
# 1. Verify Nmap installation
nmap -v
# 2. Run TCP SYN scan on local subnet
sudo nmap -sS 192.168.1.0/24
# 3. Save results to file
sudo nmap -sS 192.168.1.0/24 -oN nmap_result.txt
# 4. View saved results
cat nmap_result.txtNote:
-sS(SYN scan) requires root privileges to craft raw packets. It does not complete the full TCP three-way handshake, making it faster and less likely to be logged.
- Total hosts scanned: 256
- Active hosts found: 10
| IP Address | Port | State | Service | Notes |
|---|---|---|---|---|
| 192.168.1.1 | 21 | open | FTP | |
| 192.168.1.1 | 22 | open | SSH | β Secure Shell |
| 192.168.1.1 | 80 | open | HTTP | |
| 192.168.1.1 | 443 | open | HTTPS | β Secure web |
| 192.168.1.33 | 80 | open | HTTP | Web service |
| 192.168.1.41 | 62078 | open | iphone-sync | Apple device sync |
FTP transmits credentials in plaintext β anyone on the network can sniff them.
- Fix: Disable FTP on the router; use SFTP if file transfers are needed.
Router admin interface accessible over unencrypted HTTP.
- Fix: Force HTTPS (port 443) for all admin access.
Standard Apple sync port β low risk, but reveals device type.
- Fix: Close if unused to reduce attack surface.
Scan traffic was captured in Wireshark using the filter:
tcp.flags.syn == 1
Observations:
- Open ports replied with
SYN/ACK - Closed ports replied with
RST - Nmap behavior: Immediately sent
RSTafter receivingSYN/ACKβ confirming the half-open scan never completed the handshake
All screenshots are in the /screenshots folder:
| File | Description |
|---|---|
01_nmap_install.png |
Nmap installation verification |
02_ip_address.png |
Local IP and subnet identification |
03_scan_command.png |
SYN scan command execution |
04_scan_results.png |
Raw scan output |
05_saved_output.png |
Saved results file |
06_wireshark.png |
Wireshark packet capture |
- How to calculate scan range using CIDR notation (
/24) - Difference between a full TCP connect scan (
-sT) and a SYN scan (-sS) - Visualizing the TCP handshake:
SYN β SYN/ACK β RST - Mapping open ports to real-world vulnerabilities (e.g., FTP vs SFTP)
- Importance of redacting sensitive info (MACs, hostnames) in public reports
Cybersecurity-Internship-Task-1/
βββ README.md
βββ nmap_result.txt
βββ screenshots/
βββ 01_nmap_install.png
βββ 02_ip_address.png
βββ 03_scan_command.png
βββ 04_scan_results.png
βββ 05_saved_output.png
βββ 06_wireshark.png
π This scan was performed on a personal home network for educational purposes only as part of the Elevate Labs Cybersecurity Internship.