CCN Experiment - 6-1
CCN Experiment - 6-1
Experiment No. 6
Tasks
SCREENSHOT:
PROBLEM: ○ Write a simple NMAP script to automate a scanning task of your choice.
// Create socket
sock = socket(AF_INET, SOCK_STREAM, 0);
if (sock < 0) {
perror("Socket creation failed");
return;
}
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
printf("Scan completed.\n");
return 0;
}
SCREENSHOT:
Problem Statements
PROBLEM: 1.Scan a given network range and identify all active hosts.
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
SCREENSHOT:
PROBLEM: 2. Identify the top 5 most commonly open ports on a specific target.
SCREENSHOT:
SCREENSHOT:
PROBLEM: 4. Perform a scan to detect the presence of HTTP and HTTPS services on a
target network.
SCREENSHOT:
PROBLEM: 5. Find out if a particular host has FTP service running on it.
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
SCREENSHOT:
SCREENSHOT:
PROBLEM: 7. Scan a range of IP addresses and list all hosts that have Telnet service
running.
SCREENSHOT:
SCREENSHOT:
SCREENSHOT:
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
PROBLEM: 10. Find out if a specific host has Remote Desktop Protocol (RDP) enabled.
SCREENSHOT:
PROBLEM: 11. Scan a target network and determine if any hosts are running DNS
services.
SCREENSHOT:
PROBLEM: 12. Detect if a host has SNMP (Simple Network Management Protocol)
enabled.
SCREENSHOT:
PROBLEM: 13. Perform a scan to identify any SMTP (Simple Mail Transfer Protocol)
servers on a network.
SCREENSHOT:
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
PROBLEM: 14. Determine if a target network has any active FTP servers allowing
anonymous login.
SCREENSHOT:
PROBLEM: 15. Find out if any hosts in a network are running vulnerable versions of the
Apache HTTP server.
SCREENSHOT:
PROBLEM: 16. Detect if a target host has any open NFS (Network File System) shares.
SCREENSHOT:
PROBLEM: 17. Identify the presence of any MySQL database servers on a given
network.
SCREENSHOT:
PROBLEM: 18. Scan a network to determine if any hosts have the Remote Procedure
Call (RPC) service running.
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
SCREENSHOT:
PROBLEM: 19. Detect if a specific host has any open VNC (Virtual Network
Computing) ports.
SCREENSHOT:
PROBLEM: 20. Perform a scan to identify any hosts with the Secure Shell (SSH) service
running on non-default ports.
SCREENSHOT:
Through practical exercises such as ping scans, TCP SYN scans, service
detection, and OS fingerprinting, we gained insights into how Nmap
operates and how it can be leveraged for network security analysis and
troubleshooting.