Notes Module 3
Notes Module 3
Network Scanning :
Network scanning is a systematic process used to identify live hosts, open ports, and available
services on a network. It is an essential aspect of both network administration and cybersecurity.
Network scanning helps administrators understand the network's topology, detect vulnerabilities,
and ensure network resources are used efficiently. It is also a crucial step in the reconnaissance
phase of ethical hacking and penetration testing.
1. Port Scanning
Port scanning involves probing a target system to identify active communication ports. Ports
are gateways for data transmission, and scanning them helps determine which applications
or services are running. Common port statuses include:
2. Vulnerability Scanning
This type of scan searches for known vulnerabilities within network devices, systems, or
applications. Tools used for this type of scanning match identified services to databases of
known security issues.
3. IP Scanning
IP scanning identifies live systems in a network by sending packets to multiple IP addresses.
It helps determine which devices are active and ready to communicate.
4. Service Scanning
Service scanning determines the specific services and applications running on identified
open ports. It often involves banner grabbing to extract version numbers and other details.
1. Ping Sweep
A ping sweep sends ICMP (Internet Control Message Protocol) echo requests to a range of IP
addresses to identify live hosts. It is often used to map out active devices in a network.
4. UDP Scan
UDP scans are used to check for open UDP ports. Since UDP is a connectionless protocol, this
type of scan is slower and less reliable.
5. Stealth Scanning
This involves scanning techniques that minimize detection by intrusion detection systems
(IDS) or firewalls. Examples include fragmenting packets or using spoofed source IP
addresses.
Several tools are available for performing network scans, such as:
• Nmap (Network Mapper): A powerful open-source tool for port scanning, service detection,
and vulnerability identification.
• Angry IP Scanner: A fast and lightweight tool for IP address and port scanning.
1. Network Management
Network administrators use scanning to inventory devices, manage IP allocations, and ensure
services are operational.
2. Security Assessment
Ethical hackers and security analysts employ scanning to identify vulnerabilities and patch
them before exploitation.
3. Incident Response
After detecting a security breach, scanning can help identify affected systems and track
attackers' movements.
4. Compliance Audits
Many regulatory frameworks require routine scanning to ensure systems meet security
standards.
Network scanning can raise legal and ethical concerns if conducted without proper authorization.
Always ensure compliance with applicable laws, obtain consent, and follow organizational policies
when performing scans.
Network scanning, when conducted responsibly, is a powerful tool for ensuring the security and
efficiency of modern networks. It plays a critical role in proactive defense strategies and maintaining
the overall health of IT systems.
o The most common method for host discovery involves sending ICMP (Internet
Control Message Protocol) echo requests, also known as "pings," to target IP
addresses.
2. ARP Requests
o ARP (Address Resolution Protocol) requests are used to discover hosts in a local
network by mapping IP addresses to MAC addresses.
o This method is effective in local area networks (LANs) since ARP traffic cannot
traverse routers.
o This method sends TCP SYN packets to specified ports on the target system. If the
port is open and the host is active, it responds with a SYN-ACK packet.
4. UDP Requests
o UDP-based discovery involves sending packets to common UDP ports, such as port
53 (DNS) or port 161 (SNMP).
o These requests are less common but can be used when standard ICMP echo requests
are blocked.
o ICMP Timestamp Request: Determines the target host's time for synchronization
purposes.
o ICMP Address Mask Request: Used to obtain the subnet mask of the target.
6. Banner Grabbing
o Some host discovery tools rely on "banner grabbing," where they send specific
requests to a system to elicit identifying information about the host, such as the
operating system or services.
1. Nmap
o A versatile tool that supports various host discovery techniques, including ICMP, TCP,
and ARP-based discovery.
2. Ping Tools
o Standard tools like ping and fping are used for simple ICMP-based host discovery.
3. Advanced IP Scanner
4. NetDiscover
1. Network Inventory
2. Vulnerability Assessment
3. Penetration Testing
o Ethical hackers use host discovery to map the attack surface of a target network.
4. Troubleshooting
5. Compliance Audits
Host discovery can be misused for malicious purposes, such as unauthorized network scanning or
cyber-attacks. Always adhere to the following principles:
Host discovery is a vital process for securing and managing modern networks. Whether used for
routine administration or security assessments, effective host discovery enables organizations to
maintain a clear and accurate picture of their network infrastructure.
4. Penetration Testing: Understand the attack surface during ethical hacking exercises.
o Establishes a full TCP connection with the target system using a three-way
handshake.
o Sends a TCP SYN packet to the target port but does not complete the handshake.
o If the target responds with a SYN-ACK, the port is open. If it responds with RST, the
port is closed.
3. UDP Scan
o Sends UDP packets to target ports. If the port is open, no response may be received;
if it is closed, the target usually responds with an ICMP "Port Unreachable" message.
4. FIN Scan
o If the port is closed, it responds with an RST packet. Open ports typically ignore the
FIN packet.
5. Xmas Scan
o Sends a TCP packet with the FIN, URG, and PSH flags set.
o Similar behavior to FIN Scan; no response indicates an open port, while RST indicates
a closed port.
6. Null Scan
7. ACK Scan
o Does not identify open or closed ports but helps map firewall rules.
8. Window Scan
1. Nmap (Network Mapper): One of the most popular tools, supporting various scan types and
advanced options.
Ethical Considerations
Port scanning, while a legitimate tool for network management and security, can be misused for
malicious purposes. To ensure ethical use:
• Use port scanning responsibly and within legal and organizational boundaries.
Conclusion
Port scanning techniques are indispensable for understanding and securing networks. By identifying
open ports, associated services, and potential vulnerabilities, port scanning helps organizations
protect their infrastructure and prevent unauthorized access. When conducted ethically and
responsibly, it is a powerful tool for enhancing network security.
1. Vulnerability Assessment: Identifying the exact version of a service helps in mapping known
vulnerabilities and potential exploits.
When a service runs on a networked device, it often exposes a port to communicate with other
devices. The service typically responds to specific queries with data that can reveal its identity and
version. Service version discovery tools use these responses to extract and interpret this information.
• Banner Grabbing: Many services send a welcome message, or "banner," upon connecting,
which often includes the service name and version.
• Protocol-Specific Queries: Tools may send crafted queries specific to a protocol (e.g., HTTP,
FTP) to elicit detailed responses from the service.
1. Active Discovery
2. Passive Discovery
o The -sV flag in Nmap is widely used for service version detection.
2. Netcat
3. Nikto
o A web server scanner that detects web service versions and known vulnerabilities.
4. WhatWeb
5. OpenVAS
1. Vulnerability Identification
o Helps map service versions to known vulnerabilities in public databases like CVE
(Common Vulnerabilities and Exposures).
2. Security Auditing
o Assists organizations in verifying that services are updated and comply with security
standards.
3. Penetration Testing
o Enables ethical hackers to determine which attack vectors are most likely to succeed.
4. Incident Response
1. Obfuscation
3. False Positives
4. Encrypted Traffic
o Services using encryption (e.g., HTTPS) may make version discovery more
challenging.
Service version discovery, while a legitimate practice in network security, can be misused for
unauthorized activities. To ensure ethical use:
• Use the information responsibly to secure systems and not exploit vulnerabilities.
Conclusion
Service version discovery is a vital step in understanding the security posture of a network. By
identifying the type and version of running services, organizations can detect vulnerabilities, apply
patches, and fortify their defenses against cyber threats. Proper use of this technique ensures secure
and efficient network management while minimizing risks of exploitation.
OS Discovery :
OS Discovery, also known as Operating System Fingerprinting, is the process of identifying the
operating system (OS) running on a target device or system in a network. It is an essential step in
network reconnaissance, helping network administrators and security professionals understand the
nature of devices in their network to ensure proper configuration, security, and compatibility.
Purpose of OS Discovery
5. Compliance Audits: Ensuring that systems run approved and updated operating systems.
Every operating system implements network protocols slightly differently, which can reveal clues
about its identity. OS discovery relies on analyzing these protocol behaviors or responses to crafted
queries. Two main approaches are used:
1. Active OS Discovery
o Sending crafted packets to the target system and analyzing its responses.
2. Passive OS Discovery
o Observing traffic from the target system without sending any packets.
Techniques of OS Discovery
o Example: Differences in packet structure, such as TTL (Time to Live), window size,
and flag combinations.
2. ICMP-based Fingerprinting
o OS-specific differences in ICMP packet fields help identify the operating system.
3. Banner Grabbing
o Extracting information from services running on open ports (e.g., HTTP, FTP) that
often reveal OS details.
o Example: A web server's header might display the OS type and version.
o Example: Some OSes use different RST (reset) behaviors for closed ports.
o Example: A specific version of a web server might only be available for certain OS
versions.
Sends packets to the target and analyzes Observes existing traffic without active
Method
responses. probing.
Speed Faster and more detailed. Slower and reliant on sufficient traffic.
1. Nmap
2. p0f
3. Xprobe2
4. Netcat
5. Wireshark
Applications of OS Discovery
2. Penetration Testing
3. Compliance Verification
4. Incident Investigation
5. Asset Inventory
2. Spoofed Responses
3. Obfuscation
4. Encrypted Traffic
o Passive discovery relies on existing traffic, which may not always be available.
Ethical Considerations
OS discovery, while a legitimate activity for network administration and security, can be misused for
malicious purposes. To ensure ethical use:
Conclusion
OS discovery is a powerful technique for understanding the systems present in a network. It helps
organizations manage, secure, and optimize their infrastructure by providing crucial insights into
device operating systems. When conducted ethically and responsibly, it plays a key role in proactive
defense and efficient network management.
Banner Grabbing :
Banner grabbing is a technique used to gather information about a system or application running on
a target device by extracting details from its service banners. These banners are typically text-based
messages sent by a service (e.g., web server, FTP server, or SMTP server) upon establishing a
connection. Banner grabbing is commonly employed in network reconnaissance, penetration testing,
and vulnerability assessments to identify running services and their versions.
3. Network Inventory: Document services and applications for effective network management.
5. Compliance Audits: Ensure that systems and services comply with organizational security
policies.
When a connection is made to a network service, the service may respond with a banner containing
details such as:
Banner grabbing tools or techniques establish a connection to the target service and capture this
initial response to extract the desired information.
o Example: Using telnet or Netcat to connect to a web server and view its HTTP
response header.
o Observes network traffic to capture banners without interacting directly with the
service.
o A versatile tool for establishing raw connections to services and capturing banners.
2. Telnet
3. Nmap
o Supports banner grabbing with the -sV flag for service version detection.
4. WhatWeb
o Specializes in identifying web technologies and extracting banners from web servers.
5. Wireshark
o A network packet analyzer capable of capturing and displaying banners from live
network traffic.
6. cURL
o A command-line tool for fetching headers and banners from web services.
1. Vulnerability Identification
2. Service Inventory
3. Security Auditing
4. Penetration Testing
3. Encrypted Connections
o Services using encryption (e.g., HTTPS or SSH) make banner grabbing more difficult
without decrypting traffic.
4. False Positives
o Banner information might not accurately reflect the actual service or version
running.
Ethical Considerations
Banner grabbing, while a legitimate practice for network security, can be misused for malicious
purposes. Ethical practices include:
• Using the technique responsibly to improve security and not for exploitation.
3. Encryption
o Use secure protocols like HTTPS and SSH to prevent direct banner access.
4. Regular Updates
Conclusion
Banner grabbing is a valuable tool for network reconnaissance and security assessments, providing
critical information about running services and applications. While effective, it must be used
responsibly and ethically to ensure that networks are secured against potential threats. By combining
OS Fingerprinting :
OS Fingerprinting is the process of determining the operating system (OS) running on a target
machine. This is achieved by analyzing the characteristics of network communication protocols and
their responses to crafted queries. OS fingerprinting is widely used in network reconnaissance,
security assessments, and penetration testing to identify potential vulnerabilities associated with the
detected OS.
Purpose of OS Fingerprinting
3. Inventory Management: Maintain an accurate record of devices and their operating systems.
5. Compliance Audits: Verify that devices comply with organizational and regulatory standards.
Types of OS Fingerprinting
1. Active OS Fingerprinting
o Involves sending specially crafted packets to a target system and analyzing its
responses.
2. Passive OS Fingerprinting
o Observes and analyzes network traffic without actively interacting with the target
system.
▪ TTL (Time to Live): Default TTL values vary between operating systems.
▪ Window Size: The initial TCP window size is often unique to the OS.
▪ TCP Options: Differences in flags like SYN, ACK, and RST reveal OS-specific
patterns.
2. ICMP Fingerprinting
o Observes the behavior of open, closed, or filtered ports to infer the OS.
o Examines specific header fields in captured network traffic (e.g., DHCP options or
HTTP headers) for OS-related details.
1. Nmap
2. p0f
3. Xprobe2
5. Netcat
Applications of OS Fingerprinting
1. Vulnerability Identification
2. Security Audits
o Verifies whether systems are running supported and patched operating systems.
3. Penetration Testing
4. Incident Investigation
5. Asset Management
2. Encrypted Traffic
3. Spoofed Responses
4. Ambiguity
Ethical Considerations
1. Traffic Obfuscation
3. Encryption
o Use secure protocols like HTTPS and VPNs to prevent direct analysis of packet
headers.
4. Regular Updates
Conclusion
Packet Fragmentation :
Packet fragmentation is the process of breaking down a large network packet into smaller fragments
so that it can be transmitted across a network. This process is necessary because certain network
protocols, such as Internet Protocol (IP), impose a maximum size limit on the packets that can be
transmitted. When the packet exceeds this size limit, it is fragmented into smaller packets, each with
a portion of the original data, and sent separately across the network.
Once the fragments reach their destination, they are reassembled into the original packet.
Fragmentation helps ensure that large amounts of data can be transmitted over networks that may
have limitations on packet size, such as older routers or networks with low Maximum Transmission
Unit (MTU) sizes.
o Network links and devices have a maximum allowed packet size, called the
Maximum Transmission Unit (MTU). If a packet exceeds the MTU, fragmentation
allows the data to be split into smaller, manageable parts.
o It enables the transmission of large data, like images or video files, even when
network infrastructure has constraints on packet size.
3. Compatibility:
o Fragmentation ensures that large packets can pass through devices that might not be
able to handle larger packets, allowing for compatibility across diverse network
hardware.
1. Fragmentation Process:
o When a packet is larger than the MTU of a network device, it is divided into smaller
fragments. Each fragment will carry a part of the original data, along with a header
that contains information for reassembly.
o The IP header contains specific fields that help in fragmentation and reassembly:
▪ Flags: A bit flag indicating whether the packet is fragmented. One important
flag is the "More Fragments" (MF) bit, which shows if there are more
fragments to follow.
▪ Total Length: The length of the entire packet, including the header and data.
Each fragment will have its own total length.
3. Reassembly:
o When all fragments of a packet reach the destination, the fragments are
reassembled in the correct order using the Identification, Fragment Offset, and
More Fragments bits. Once all fragments are received, the original packet is
reconstructed.
1. Suppose a device wants to send a large 5,000-byte packet over a network where the MTU is
1,500 bytes.
2. The original 5,000-byte packet is fragmented into 4 smaller packets (fragments). The size of
each fragment will be 1,500 bytes, except for the last fragment, which will carry the
remaining data (in this case, 500 bytes).
3. The first three fragments carry 1,500 bytes of data and will have the "More Fragments" bit
set, indicating that more fragments follow.
4. The last fragment will carry the remaining data (500 bytes) and will have the "More
Fragments" bit cleared to indicate it is the last fragment.
5. When the receiving device gets all 4 fragments, it will use the Identification field and the
Fragment Offset to correctly reassemble them into the original 5,000-byte packet.
• IPv4:
o In IPv4, fragmentation is handled by both the sending and receiving devices. The
sender fragments the packet if necessary, and the receiver reassembles the
fragments.
• IPv6:
o IPv6 does not support fragmentation by routers. Instead, the sender must ensure
that the packet fits within the MTU of the path (a process known as Path MTU
Discovery). If the packet is too large, it must be fragmented by the sender itself.
o Fragmentation can also occur at the Transport Layer, particularly in protocols like
Transmission Control Protocol (TCP), where large chunks of data are split into
smaller segments before transmission.
1. Performance Impact:
2. Fragment Loss:
3. Security Risks:
4. MTU Mismatch:
o If there is a mismatch between the MTU of different network devices (e.g., a router
with a lower MTU value), it may cause excessive fragmentation or packet drops,
leading to network inefficiency.
3. IDS/IPS Evasion:
o Intrusion Detection and Prevention Systems (IDS/IPS) that are not configured to
reassemble fragmented packets may fail to detect malicious activity in fragmented
traffic.
o Ensure that the entire path from source to destination supports an appropriate MTU
size to avoid fragmentation.
2. Reassembly Buffering:
3. IDS/IPS Systems:
4. Disable Fragmentation:
Packet fragmentation is a crucial process for transmitting large data packets over networks with
limited MTU sizes. It allows data to be split and sent across the network, ensuring compatibility with
various network devices. However, fragmentation introduces performance overhead, security risks,
and potential challenges in ensuring reliable and efficient packet transmission. Understanding how
fragmentation works and implementing proper network management strategies can help mitigate
these risks and improve network performance.
Source Routing :
Source Routing is a networking technique in which the sender of a packet specifies the exact route
the packet should take to reach its destination, bypassing the traditional role of routers. Normally,
routers in a network independently determine the best path for packets based on their routing
tables. However, in source routing, the sender embeds the path information directly within the
packet, allowing the packet to follow a pre-determined route through the network.
This routing method is commonly found in specific network protocols, such as IPv4, and is primarily
used for diagnostic, testing, and network troubleshooting purposes. It offers the sender more control
over the packet's journey across the network, ensuring that it follows a defined sequence of routers.
o In Strict Source Routing, the sender specifies the exact path the packet must follow,
including each intermediate router that the packet will pass through, in a precise
sequence. The packet header includes a list of IP addresses of the routers that must
be traversed. Each router along the path must follow this sequence and forward the
packet accordingly, without deviating from the path.
o Advantages: Guarantees that the packet will travel exactly through the specified
routers.
o Loose Source Routing is more flexible. In this method, the sender specifies only
certain routers that must be passed through, leaving intermediate routers free to
choose the best route between the specified routers. The packet header includes a
list of IP addresses, but the routers are allowed to select the optimal path between
them.
o Advantages: Offers more flexibility compared to strict source routing, allowing the
network to adapt to changes and congestion.
o Disadvantages: The route can still vary, making it less predictable than strict source
routing.
In IPv4, source routing is implemented through options in the IP header. The Options field in the IP
header contains the routing information, including two primary types of source routing options:
• Strict Source and Record Route (SSRR): Specifies a strict list of routers the packet must pass
through.
• Loose Source and Record Route (LSRR): Specifies a partial list of routers the packet must
pass through, but intermediate routers can select the route between them.
These options are stored in the IP packet and are used to determine the route that the packet should
take. However, due to security concerns and potential abuse, many modern networks and routers
disable or restrict the use of source routing.
Security Concerns
While source routing can be useful for network diagnostics and performance testing, it also
introduces several security vulnerabilities:
1. Bypassing Firewalls and Security Filters: Attackers can manipulate source routing to send
packets through specific routes that bypass security measures like firewalls and intrusion
detection systems (IDS).
2. Spoofing and Evasion: Source routing can be exploited to spoof the source address of
packets or evade network monitoring, making it easier for attackers to conceal their identity
or malicious intent.
3. Denial of Service (DoS) Attacks: By controlling the path of a packet, attackers can direct
traffic through congested or vulnerable parts of the network, causing performance
degradation or outages.
Due to these risks, many security-conscious organizations and ISPs disable source routing by default,
especially on public or enterprise networks.
1. Network Troubleshooting:
Source routing allows network administrators to trace the exact path a packet takes through
the network, helping to identify routing issues, faulty routers, or areas of congestion. This is
especially useful for debugging and testing network configurations.
2. Load Balancing:
Source routing can be used to distribute traffic across multiple routes, helping to balance the
load on the network and avoid overloading any single router or path.
1. Network Flexibility:
Source routing restricts the ability of routers to dynamically adjust to network changes. If a
network path is congested or fails, strict source routing may not be able to adapt, leading to
inefficiencies or delays.
2. Packet Fragmentation:
If the packet is too large to fit within the MTU (Maximum Transmission Unit) of any link in
the specified path, the packet must be fragmented. This introduces additional complexity in
the handling of the packet and can impact performance.
Conclusion
Source routing allows network administrators and engineers to control the exact path that packets
take through a network, providing valuable insights for troubleshooting and network performance
testing. However, due to security concerns, its use has become limited, with many networks and
routers disabling source routing as a precaution. While useful in certain contexts, the security risks
and inflexibility of source routing make it less suitable for widespread deployment in modern, secure
networks.
IP Address Spoofing :
IP Address Spoofing is a technique used in computer networks where an attacker sends packets to a
target system, but manipulates the source IP address in the packet header to make it appear as
though the packet is coming from a trusted or legitimate source. This is done by changing the source
IP address in the header of the IP packet, effectively "spoofing" the identity of the sender.
IP address spoofing is often used in various types of cyber attacks, including Denial of Service (DoS)
attacks, Distributed Denial of Service (DDoS) attacks, and man-in-the-middle attacks, among others.
o Every packet sent over an IP network contains a header that includes several key
pieces of information, such as the source and destination IP addresses. In IP address
spoofing, the attacker alters the source IP address in this header to make it appear as
if the packet is coming from a different system.
o The attacker then sends the packet to the target or intermediary systems, often as
part of a larger attack. Since the source IP appears legitimate, the recipient system
may trust the packet and respond, unaware that it’s actually coming from an
unauthorized source.
3. Spoofing Motivation:
o Evading Detection: By masking their true IP address, attackers can hide their identity
and make it harder for security systems to track them down.
o Launch Attacks: Spoofed IP addresses are commonly used in attacks, such as DoS or
DDoS, to flood a target system with traffic from multiple sources, overwhelming its
resources.
o In a DoS attack, an attacker sends a large number of packets to a target system with a
spoofed source IP address. The goal is to overwhelm the target system’s resources
(e.g., memory, bandwidth) and cause it to crash or become unresponsive. The
spoofed IP address can be used to disguise the origin of the attack and complicate
response efforts.
o A more sophisticated version of DoS attacks, DDoS attacks use multiple machines
(often compromised devices) to send traffic to the target, all using spoofed IP
addresses. This makes it difficult for the target to block the attack, as the attack
appears to be coming from multiple legitimate sources.
4. Smurf Attacks:
o In a smurf attack, the attacker sends ICMP (Internet Control Message Protocol) Echo
Request packets (ping requests) to a network’s broadcast address, with the source IP
address spoofed to be the target victim. All devices on the network then respond to
the spoofed IP, causing a flood of traffic to overwhelm the target system.
o Some security systems rely on the IP address to verify the identity of incoming traffic.
If an attacker can spoof a trusted IP address, they may be able to bypass firewalls,
intrusion detection systems (IDS), and access control lists (ACLs), gaining
unauthorized access to networks and resources.
2. Resource Exhaustion:
o In DoS and DDoS attacks, spoofed IP addresses can flood the target system with
traffic, causing resource exhaustion. This can lead to a significant slowdown of
services or even complete service outages.
3. Difficulty in Traceback:
o Spoofing makes it difficult for network administrators to trace the origin of malicious
activity. Since the true source of the attack is hidden behind a false IP address,
identifying the attacker becomes more challenging, making it harder to respond or
prevent future attacks.
o IP address spoofing used for malicious purposes can have legal consequences.
Organizations that fall victim to attacks may face financial losses due to downtime,
recovery costs, and reputational damage.
o Ingress filtering involves filtering incoming traffic at the network perimeter to ensure
that packets with a source IP address not valid for that network are discarded. Egress
filtering ensures that packets leaving the network do not have spoofed source IP
addresses.
o RPF is a technique used in routers that checks whether the source of an incoming
packet is reachable through the reverse path from the destination. If the packet does
not come from the correct source, it is discarded.
o Many attacks relying on IP address spoofing target the network layer. By ensuring
that applications use additional forms of authentication (e.g., tokens, encryption)
Conclusion
IP address spoofing is a significant security threat in computer networks, commonly used in various
types of cyber attacks, including DoS, DDoS, and MITM attacks. It can bypass security measures, lead
to resource exhaustion, and complicate traceback efforts, making it difficult to identify the attacker.
Effective countermeasures, such as filtering, IPsec, and monitoring, are essential to mitigate the risks
of IP spoofing and protect network infrastructure from malicious activity.
Scanning Tools :
Scanning tools are essential utilities in the field of cybersecurity, used by both network
administrators and attackers to explore and analyze computer networks for various purposes. These
tools allow users to detect active devices, open ports, services running on devices, vulnerabilities,
and other network characteristics. While scanning tools can be used for legitimate network
management, they can also be misused for malicious purposes, such as identifying weaknesses to
exploit in an attack.
Scanning tools are integral to tasks like network mapping, vulnerability assessment, penetration
testing, and security audits. Understanding these tools and their functions is crucial for network
defense and detection of unauthorized activities.
1. Network Scanners:
o Network scanners are used to identify active hosts, devices, and services running on
a network. These tools send out probes to different IP addresses in a network and
detect which systems are online, as well as the services they are running.
o Examples:
▪ Nmap (Network Mapper): One of the most widely used network scanners,
Nmap can discover hosts and services, perform port scanning, and gather
detailed information about devices in a network.
▪ Advanced IP Scanner: A tool that scans for all devices connected to the
network, showing their IP addresses, device names, and other details.
2. Port Scanners:
o Examples:
▪ Nmap: Also serves as a robust port scanner, capable of scanning for open
ports and identifying the services running on those ports.
▪ Netcat: A network utility often called a "Swiss army knife" for TCP/IP
networks, used for port scanning and banner grabbing.
3. Vulnerability Scanners:
o Examples:
▪ Nessus: One of the most popular vulnerability scanners, Nessus scans for
vulnerabilities across systems, such as outdated software, missing patches,
and security misconfigurations.
4. OS Fingerprinting Tools:
o Examples:
o Examples:
▪ Nmap: It can be used to create a map of the network, showing which hosts
are up and the services available on each host.
o Nmap is a versatile and widely-used scanning tool that can discover hosts, services,
open ports, and even perform OS fingerprinting. It has a wide array of features,
including:
▪ TCP and UDP port scanning: Helps identify open ports and services.
▪ Service detection: Identifies which services (e.g., HTTP, FTP) are running on
open ports.
▪ Scripting: Nmap comes with a scripting engine (NSE) that allows users to
write scripts for custom network scanning tasks.
2. Nessus:
3. Wireshark:
4. Nikto:
o Nikto is a web server scanner that performs comprehensive tests against web
servers for vulnerabilities such as outdated software, insecure server configurations,
and possible web-based exploits.
▪ Features: Includes over 6,700 known vulnerabilities and checks for issues like
server misconfigurations, cross-site scripting (XSS), and SQL injection
vulnerabilities.
5. Netcat:
While scanning tools are essential for legitimate network maintenance and security, their use can be
problematic if used maliciously. Penetration testers (ethical hackers) use scanning tools to identify
vulnerabilities in systems with the consent of the system owner. Unauthorized use of scanning tools
to scan or probe systems without permission is considered illegal and unethical.
Network administrators should use scanning tools regularly to assess the health of their networks,
detect unauthorized devices, and ensure that all services are appropriately secured. On the other
hand, attackers might use these tools to gain unauthorized access to networks or exploit
vulnerabilities for malicious purposes.
Conclusion
Scanning tools are critical components of network management, security testing, and vulnerability
assessment. Tools like Nmap, Nessus, and Wireshark help professionals understand the structure,
weaknesses, and potential risks in their network environments. While these tools offer immense
value in maintaining the integrity and security of networks, they must be used responsibly and
ethically to prevent misuse and ensure network safety.