Skip to content
Knowledge base Updated: September 30, 2026

What Is Nmap and How Does It Work?

Learn what Nmap is, how it works, and why it's one of the most important tools for network scanning and security audits.

In the dynamically evolving world of cybersecurity, where network infrastructure is becoming increasingly complex and threats are evolving at an alarming pace, having reliable tools for security analysis and auditing is of key importance. Nmap (Network Mapper) has remained the gold standard in network scanning for over two decades, combining powerful capabilities with application flexibility.

Regular network infrastructure analysis makes it possible to catch many security problems before anyone exploits them. That is why Nmap becomes not just a tool but a fundamental element of any security-conscious organization’s strategy. Used by professionals worldwide, from system administrators to penetration testing experts, Nmap offers unmatched capabilities in network mapping, vulnerability detection, and security analysis.

In this article, we’ll dive into the world of Nmap, starting from the basics, through advanced scanning techniques, to best practices and strategies for using this versatile tool. Based on real-world use cases and the latest cybersecurity trends, we’ll present a comprehensive picture of Nmap’s capabilities and limitations, providing practical knowledge essential for the daily work of a security specialist.

Whether you’re an experienced pentester, network administrator, or security specialist, understanding Nmap’s advanced capabilities and the ability to effectively use them can significantly increase the effectiveness of your IT infrastructure protection activities. Given what security breaches cost today, investing in deep understanding of tools like Nmap becomes not so much an option as a necessity.

What Is Nmap?

Nmap (Network Mapper) is one of the most recognized and versatile tools for network scanning and security auditing, created by Gordon Lyon in 1997. Since its creation, this tool has revolutionized the way security specialists and network administrators conduct network infrastructure reconnaissance.

At its core, Nmap acts as a sophisticated network scanner that sends specially crafted packets to target systems and analyzes received responses. This simple concept hides an extremely advanced mechanism that allows for detailed mapping of network architecture, detection of active hosts, and identification of running services and their versions.

It’s worth emphasizing that Nmap is an open source project, which means its source code is publicly available and subject to continuous improvements by the developer community from around the world. The tool is widely used by network security professionals.

What distinguishes Nmap from other tools is its versatility and flexibility. It can be used for both simple scanning of a single host and complex analysis of extensive corporate networks consisting of thousands of devices. The tool also offers advanced features such as operating system detection, network service identification, or the ability to run personalized scripts.

📚 Read the complete guide: NIS2: Complete guide to the NIS2 Directive - obligations, penalties, deadlines

What Are the Main Functions of Nmap?

Nmap’s primary task is discovering and mapping computer networks, but its arsenal of capabilities is much broader. The tool offers a comprehensive set of functions for network infrastructure analysis, which can be divided into several key categories.

The first and most fundamental function is host discovery. Nmap uses various techniques, from simple ICMP pings to advanced TCP/UDP methods, to identify active devices in the network.

Another key aspect is port scanning, which allows for identifying open, closed, and filtered ports on target systems. The Nmap documentation describes more than a dozen scanning techniques, each with its own set of advantages and limitations. Particularly important is that the tool can perform parallel scanning of multiple ports, which significantly speeds up the analysis process.

The service version detection system is another powerful Nmap feature. Using an extensive database of service signatures, the tool can precisely determine not only the type of running service but also its exact version. This is invaluable during security audits, as it allows for quick identification of outdated or vulnerable software versions.

The built-in OS detection mechanism uses TCP/IP fingerprinting techniques to determine the type and version of the operating system running on the scanned host.

What Is Nmap Used for in Practice?

In a real business environment, Nmap finds application in many key areas related to security and IT infrastructure management. The practical use of this tool goes far beyond basic network scanning functions.

In the context of security audits, Nmap is a fundamental first-contact tool. Professional auditors use it to create a detailed map of the client’s infrastructure, which is a crucial first step in the security assessment process. Security audits often begin with a scan using Nmap.

System administrators regularly use Nmap to monitor network status and detect unauthorized changes in infrastructure. The tool allows for quick identification of new devices in the network, changes in service configuration, or unusual communication patterns. In corporate organizations, where infrastructure can include thousands of endpoints, automatic scanning using Nmap saves the team time.

Incident response specialists, including dedicated incident response teams, often turn to Nmap when analyzing potential security breaches. The tool enables quick identification of compromised systems by detecting unusual open ports or unauthorized services. Using Nmap in the incident response process can shorten response time.

In the area of compliance and regulatory compliance, Nmap is used to verify whether infrastructure meets required security standards. Regular scanning allows for detection of potential non-compliances, such as unauthorized services or open ports, before they are detected during an official audit. Organizations using Nmap for regular compliance checks can reduce the number of findings raised during external audits.

How to Install Nmap on Different Operating Systems?

The Nmap installation process varies depending on the target platform, but it has been designed to be as simple and intuitive as possible. Currently, the tool supports virtually all popular operating systems, offering both graphical installers and command-line installation methods.

For Linux systems, installing Nmap is particularly easy thanks to package managers. For Debian/Ubuntu-based distributions, the process comes down to executing the commands “apt update” followed by “apt install nmap”.

Windows users have access to an official graphical installer that can be downloaded from the Nmap project website. The installation process is fully automated and also includes installation of necessary components such as WinPcap or Npcap, which are required for the tool to work properly.

On macOS systems, the preferred installation method is using the Homebrew package manager, via the command “brew install nmap”. Alternatively, a pkg installer is also available that guides the user through the process step by step. It’s worth noting that on the macOS platform, Nmap requires administrator privileges to perform some types of scans, which is related to system security restrictions.

After installation, a key step is verifying the correctness of installation by running a simple test, for example the command “nmap -v”. Additionally, it’s recommended to regularly update the tool, as new versions often contain important security fixes and new features. Updates also bring new signatures and scripts, so a scan can detect more potential security issues.

How Does Nmap Work at a Technical Level?

At a technical level, Nmap uses a range of advanced mechanisms and network protocols to conduct its operations. Understanding these mechanisms is key to effectively using the tool in practice.

The fundamental element of Nmap’s operation is TCP/IP packet manipulation. The tool generates specially crafted packets that are sent to target systems in a strictly defined order and with precisely selected parameters. Each packet is constructed “from scratch,” giving full control over the scanning process.

The host discovery process is based on various techniques, from simple ICMP pings to advanced TCP SYN/ACK methods. Nmap also uses so-called parallel scanning, which means it can simultaneously scan multiple hosts and ports. This functionality noticeably speeds up the process compared to sequential scanning.

A particularly interesting aspect is the operating system detection system, which is based on analysis of TCP/IP responses. Nmap sends a series of specially constructed packets and analyzes subtle differences in responses that are characteristic of different TCP/IP stack implementations. This technique, known as OS fingerprinting, uses a signature database covering thousands of systems.

In the context of service detection, Nmap uses a combination of passive and active techniques. Passive detection involves analyzing port numbers and standard responses, while active detection involves sending specific queries to services and analyzing their responses.

What Types of Scans Does Nmap Offer?

Nmap offers a wide range of different scanning types, each designed for specific applications and scenarios. Understanding the differences between them is key to effectively using the tool.

TCP SYN scan (-sS) is the default and most commonly used type of scanning — the Nmap documentation calls it the default and most popular scan option. It uses so-called “half-open” scanning, where the TCP connection is not fully established, which gives a good compromise between speed, reliability, and discretion.

TCP Connect scan (-sT) is a more complete form of scanning, where a full TCP connection is established. It’s particularly useful in situations where we don’t have root/administrator privileges or are scanning through a proxy. This type of scanning is slower than SYN scan but offers greater confidence in results.

UDP scanning (-sU) is often overlooked, even though the UDP protocol is widely used in networks. UDP scanning is inherently slower and more difficult than TCP scanning due to protocol specifics. However, as the Nmap documentation points out, exploitable UDP services are quite common and attackers do not ignore the protocol.

FIN, NULL, and Xmas scans (-sF, -sN, -sX) are examples of stealth scanning techniques that attempt to bypass basic intrusion detection systems. According to the Nmap documentation, they can sneak through certain non-stateful firewalls and packet filtering routers, although modern IDS/IPS systems are usually able to identify them.

How to Perform Basic Port Scanning with Nmap?

Basic port scanning is fundamental to working with Nmap and requires understanding both command syntax and results interpretation. Proper execution of such a scan can provide valuable information about network infrastructure with minimal risk of disrupting system operation.

The simplest form of scanning is the command “nmap [target]”, where the target can be a single IP address or domain name. By default, Nmap scans the 1,000 most commonly used TCP ports.

When specifying the scan range, Nmap offers flexible syntax. You can scan entire subnets (e.g., 192.168.1.0/24), IP ranges (e.g., 192.168.1.1-50), or even target lists from a file.

A key element of basic scanning is specifying ports to check. The “-p” option allows for precise indication of ports of interest. For example, “-p 80,443,3389” scans only ports related to HTTP, HTTPS, and RDP. Focused scanning of selected ports is much faster than full scanning.

It’s worth paying attention to options related to scan timing. The “-T” parameter allows for adjusting scanning aggressiveness on a scale from 0 (paranoid) to 5 (insane). In practice, most administrators choose level 3 or 4, which provides a reasonable compromise between speed and network load. Moving from level T3 to T4 shortens the scan at the cost of a higher risk of missing some ports.

How to Scan Networks and Hosts Using Nmap?

Scanning entire networks requires a slightly different approach than scanning individual hosts. Nmap offers advanced options for optimizing the scanning process of large IP address ranges, which is particularly important in corporate environments.

The first step in network scanning is usually determining active hosts. The “-sn” option (formerly known as -sP) allows for quick detection of live hosts without full port scanning. In a typical corporate network, this stage reduces the number of scan targets, shortening total operation time.

When scanning large networks, optimizing parallel processing is crucial. Nmap automatically adjusts the level of concurrency, but this can be controlled using parameters such as “—min-hostgroup” and “—max-hostgroup”. Properly tuning these parameters can speed up scanning in networks with many active hosts.

An important aspect is also considering network topology and potential bottlenecks. Nmap offers “—initial-rtt-timeout” and “—max-rtt-timeout” options for adjusting response wait times. In networks with high latency or varying connection quality, proper setting of these parameters can reduce the number of false negatives.

Particular attention should be paid to mechanisms for detecting intermediate network devices, such as firewalls or load balancers. Nmap has advanced techniques for identifying such elements, which is crucial for understanding the real network topology.

How Does Nmap Identify Operating Systems and Services?

The process of identifying operating systems and services by Nmap is based on advanced fingerprinting techniques and analysis of network responses. This is one of the most complex aspects of the tool’s operation, using a range of sophisticated algorithms.

Operating system identification (-O) uses characteristic features of TCP/IP stack implementation in different systems. Nmap sends a series of specially crafted packets and analyzes subtle differences in responses. The effectiveness of this method is high for popular operating systems and lower for embedded systems and unusual configurations. The OS fingerprinting signature database covers thousands of systems and is regularly updated.

Service version detection (-sV) is performed through active port sampling and response analysis. Nmap has an extensive database of network service signatures, allowing identification not only of the service type but also its exact version. Version detection accuracy is higher for standard services than for unusual or heavily modified ones.

A particularly important element is Nmap’s ability to adapt its behavior depending on received responses. For operating system detection over IPv6, Nmap uses machine learning — a logistic regression algorithm — rather than a simple comparison against a list of fingerprints.

In the latest versions of Nmap, advanced data correlation techniques have also been introduced, combining information from various sources (OS detection, service detection, script scanning) to increase identification confidence.

How to Interpret Nmap Scan Results?

Proper interpretation of Nmap scan results requires not only understanding the technical aspects of the tool but also analytical thinking skills and knowledge of network context. Effective analysis of results can provide invaluable information about the security state of infrastructure.

The basic element of scan results is port status, which can take several states: open (open), closed (closed), filtered (filtered), unfiltered (unfiltered), open|filtered, or closed|filtered. In a typical corporate environment, some ports are marked as filtered, which often indicates the presence of a firewall or other access control mechanisms such as a properly implemented next-generation firewall. The open|filtered state is particularly interesting, as it may indicate advanced service hiding techniques.

Response latency and scanning time for individual ports also carry valuable diagnostic information. Nmap automatically adjusts its timers based on received responses, and analysis of these patterns can help identify network problems. Marked response time differences for similar ports may indicate the presence of IDS/IPS systems or network performance issues.

Particular attention should be paid to so-called “soft findings” - unusual responses or patterns that don’t constitute a security problem in themselves but may indicate potential vulnerabilities. For example, the presence of outdated protocols or unusual combinations of services may suggest configuration errors or outdated systems.

A key element of interpretation is also the business context - not every open port or detected service constitutes a threat. Professional security analysts usually create baselines for their environments, allowing for quick detection of anomalies. Without business context, many alerts generated by automatic Nmap results analysis systems turn out to be false alarms.

How to Use Advanced Scanning Techniques in Nmap?

Advanced scanning techniques in Nmap go far beyond basic open port detection, offering a range of sophisticated methods for examining network infrastructure. Proper use of these techniques requires deep understanding of both network protocols and the tool’s operation mechanisms.

Packet fragmentation (-f) and specifying custom packet size (—mtu) are advanced techniques allowing for bypassing some intrusion detection systems. Properly configured fragmentation can improve scanning effectiveness in the presence of IDS. However, it should be remembered that these techniques lengthen scanning time.

Timing templates and precise control of scanning speed represent another level of advancement. In addition to standard templates (-T0 to -T5), Nmap offers detailed control over parameters such as —min-rate, —max-rate, and —min-parallelism. Proper tuning of these parameters can shorten scanning time while maintaining accuracy.

A particularly interesting technique is idle scan (-sI), using an external system as a zombie to conduct scanning. This technique is extremely difficult to detect because the scanning traffic appears to originate from another system. The Nmap documentation describes it as a truly blind port scan — no packets are sent to the target from the scanner’s real IP address. However, this requires finding an appropriate zombie system, which in practice does not always succeed.

Decoy scanning (-D) allows for masking the real source of scanning by generating fake traffic from multiple IP addresses. This technique hinders identification of the real scanning source, although modern security systems are increasingly better at detecting it.

What Is the Nmap Scripting Engine (NSE) and How to Use It?

Nmap Scripting Engine (NSE) is a powerful extension of Nmap’s basic functionality, enabling automation of complex security and network diagnostics tasks. It’s one of the most advanced components of the tool, offering virtually unlimited expansion possibilities.

NSE was written in Lua, which provides an excellent compromise between performance and ease of creating new scripts. Currently, the NSE database contains over 600 official scripts, divided into categories such as auth, broadcast, default, discovery, dos, exploit, external, fuzzer, intrusive, malware, safe, version, and vuln.

NSE scripts can be run at different scanning stages: pre-scanning, during-scanning, and post-scanning. This flexibility allows for creating comprehensive solutions automating entire security audit processes. Well-selected NSE scripts can noticeably shorten the time to conduct a basic security audit.

A particularly valuable NSE functionality is the ability to share data between scripts. This mechanism, known as the script database, allows for building complex workflows where the results of one script affect the operation of others.

In the context of security, an important NSE feature is the ability to precisely control scanning aggressiveness. Each script has an assigned risk level, and the administrator can easily limit execution to scripts marked as “safe”. For routine scans of production environments, limiting NSE script execution to the “safe” and “version” categories is good practice.

What Are the Best Security Practices When Using Nmap?

Proper use of Nmap requires not only technical skills but also awareness of potential security implications and responsible approach to scanning. Following best practices is key to minimizing risk and maximizing the value of obtained information.

A fundamental principle is obtaining appropriate authorizations before starting scanning. Formal consent should include the exact scope of scanning, techniques used, and schedule of activities. In corporate environments, it’s recommended to keep a detailed record of all scans, which reduces the risk of misunderstandings.

Controlling scanning aggressiveness is another key aspect of safe Nmap use. Overly aggressive scanning can lead to network overload or disruption of sensitive system operation. A sensible starting point is timing template T3 for standard scans, reduced to T2 for production systems. Such an approach reduces the risk of negative impact on infrastructure with little loss of result accuracy.

Particular attention should be paid to storing and managing scan results. Nmap reports contain detailed information about infrastructure that in the wrong hands could serve as a roadmap for potential attackers. It’s recommended to encrypt results using at least 256-bit AES and limit access to authorized persons only.

From an operational perspective, it’s also important to consider the impact of scanning on monitoring and security systems. Coordination with SOC teams helps avoid false alarms triggered by the scan. In practice, this means informing appropriate teams in advance and potentially adjusting rules in IDS/IPS systems for the duration of scanning.

The tool itself is legal — it is an open program for network diagnostics and auditing. The legal risk depends on whose systems you scan and how deeply. The Polish Criminal Code does not mention port scanning by name, but its chapter on offences against the protection of information contains four provisions that set the boundaries for working with Nmap (legal status: consolidated text of 2025 as amended in 2026):

  • Article 267 § 2 — penalises gaining unauthorised access to all or part of an IT system; prosecution requires a motion from the injured party. The Nmap documentation flags some of the scripts run by -sC as intrusive — ones to keep away from a network you have no permission to test.
  • Article 269a — penalises an unauthorised person who, by transmitting data (or deleting, damaging, altering or blocking access to it), significantly disrupts the operation of an IT system or ICT network. Nmap’s authors acknowledge that version detection (-sV), some NSE scripts and OS detection (-O) can bring down poorly written applications and older devices.
  • Article 269b — covers producing, obtaining, selling and sharing programs adapted to commit computer offences. Its § 1a excludes liability for anyone acting solely to secure a system or network, or to develop a method of securing it.
  • Article 269c — exempts from punishment for an act under Article 267 § 2 or Article 269a a person who acted solely to secure the system, promptly notified its controller of the threats uncovered, and did not harm a public or private interest or cause damage. The conditions apply jointly, so this provision is no substitute for the network owner’s consent.

Nmap’s own author gives the advice the statutes point to: get written authorisation from the target network’s representatives before scanning it, and ask a lawyer who knows the local law when in doubt. Scanning your own machines and the networks you administer rarely causes controversy. For a company that wants to check its infrastructure from the outside, the natural format is a penetration test with agreed rules of engagement — the address range, permitted techniques and limitations are fixed before the first scan, so Nmap reconnaissance stays within the consent given.

How Does Nmap Support Penetration Testing and Security Audits?

Nmap is a fundamental tool in the arsenal of pentesters and security auditors, offering a range of features particularly useful in the process of assessing infrastructure security. Its versatility and precision make it indispensable in the reconnaissance and information gathering phase.

In the context of penetration testing, Nmap is most often used in the reconnaissance phase. Pentesters often begin their tasks with detailed scanning using Nmap. The tool allows for creating an accurate map of target infrastructure, identifying not only active systems and services but also potential attack vectors.

Particularly valuable is Nmap’s integration with other tools used in penetration testing. Through XML output format, scan results can be directly used by tools such as Metasploit or various vulnerability scanners. Such integration speeds up the penetration testing process and can increase vulnerability detection accuracy.

In the area of security audits, Nmap provides objective data needed to assess compliance with security policies and industry standards. Automating the audit process through NSE scripts allows for regular compliance checking. Organizations using automated audits based on Nmap can detect and fix non-compliances faster than those relying solely on manual controls.

An important aspect is also the ability to generate detailed reports in various formats (text, XML, HTML), which significantly facilitates audit process documentation.

What Are the Limitations and Risks Associated with Using Nmap?

Despite its power and versatility, Nmap has certain inherent limitations and involves specific risks, awareness of which is key to effectively using the tool. Understanding these limitations allows for better planning of activities and interpretation of results.

The first important limitation is detection accuracy in environments with advanced security mechanisms. Service detection effectiveness in networks with active IPS/IDS systems can drop noticeably. Particularly problematic are environments using honeypot and deception technology techniques, where Nmap may generate a significant number of false positives.

Performance issues represent another important limitation, especially when scanning large networks or using advanced techniques. Full scanning of a class B network (/16) with version and operating system detection enabled can take several days. As a result, some organizations give up some Nmap features in regular scans due to their execution time.

Nmap can also generate significant network load, especially with aggressive scanning settings, which in larger networks can lead to performance problems. Application disruptions during intensive scanning also occur.

From a legal and compliance perspective, using Nmap involves the risk of violating security policies or regulations. This is particularly important in multitenancy environments or when scanning systems belonging to different organizational units.

What Are the Alternatives to Nmap and When to Use Them?

Although Nmap remains the gold standard in network scanning, there are situations where other tools may better meet specific requirements. Understanding available alternatives and their unique characteristics allows for selecting the optimal tool for a specific scenario.

Masscan is an interesting alternative, especially in the context of scanning very large networks or the internet. Its main advantage is extraordinary speed — it is designed as an Internet-scale port scanner. However, this comes at the cost of accuracy and versatility — Masscan may miss some hosts detected by Nmap, especially in networks with high latency. It’s a tool particularly useful in the initial reconnaissance phases of large infrastructures, where quickly obtaining a general picture is more important than detailed analysis.

Zmap presents a similar approach to Masscan but with a slightly different set of trade-offs. It offers advanced statistical sampling capabilities, allowing for obtaining representative results without the need to scan the entire address space. In practice, Zmap is often used in scientific research on network security due to its statistical capabilities and result reproducibility.

Unicornscan is distinguished by its asynchronous scanning model and advanced packet manipulation capabilities at the TCP/IP level. It’s particularly effective in environments where standard scanning techniques are blocked — in some cases it can detect more services than Nmap in heavily secured networks. However, its development has been stopped, which is a significant limitation in the context of modern security requirements.

In corporate environments, commercial solutions such as Qualys or Nexpose are gaining increasing popularity. They offer not only scanning functions but also comprehensive vulnerability management and regulatory compliance. Large organizations often opt for commercial solutions due to their integration with business processes and technical support. However, the costs of such solutions are significant.

In the context of automation and integration with CI/CD pipelines, it’s worth paying attention to tools such as OpenVAS or Arachni. They are particularly effective in automated security tests and can be easily integrated with existing DevSecOps processes. Organizations using automated scanning in the CI/CD process can detect and fix vulnerabilities faster than those relying on periodic audits.

The choice of appropriate tool should be dictated by specific project requirements and constraints. Security practitioners often use a layered approach, using different tools at different stages of the process — they usually combine several network scanning tools, adapting their selection to the specifics of the task.

Summary

Nmap remains a fundamental tool in every network security specialist’s arsenal, offering an unmatched combination of versatility, accuracy, and customization capabilities. Its importance in the modern cybersecurity landscape is difficult to overestimate — the tool is widely used in professional security audits and penetration tests.

However, effective use of Nmap requires deep understanding of both its capabilities and limitations. Knowledge of advanced scanning techniques, ability to interpret results, and awareness of security implications are key to maximizing the value of this tool. Organizations that invest in training in advanced Nmap use can achieve better results in vulnerability detection.

The future of Nmap seems to be connected with the development of automation and integration with modern DevSecOps practices. The growing popularity of NSE scripts and integration capabilities with other tools indicates evolution toward more comprehensive solutions automating security processes. The importance of automation in security processes will continue to grow, and Nmap, thanks to its flexibility and expansion capabilities, will remain a key element of this ecosystem.

Frequently Asked Questions (FAQ)

Using Nmap to scan your own networks or networks you have explicit authorization to test is completely legal. However, scanning networks without permission may violate computer crime laws in many jurisdictions. Always obtain written authorization before scanning any systems you do not own.

What is the difference between Nmap and Nessus?

Nmap is primarily a network discovery and port scanning tool that identifies hosts, open ports, and running services. Nessus is a dedicated vulnerability scanner that checks discovered services against a database of known vulnerabilities and provides remediation guidance. Many professionals use both tools together - Nmap for discovery and Nessus for in-depth vulnerability assessment.

Is Nmap suitable for beginners?

Yes, Nmap is beginner-friendly thanks to its well-documented command syntax and the Zenmap graphical interface. Beginners can start with simple commands like “nmap target-ip” and gradually learn advanced scanning techniques. The extensive official documentation and active community make it an excellent learning tool.

How can I speed up Nmap scans?

You can speed up Nmap scans by using timing templates (-T4 or -T5), limiting the port range with -p, skipping host discovery with -Pn when hosts are known to be up, and using SYN scan (-sS) instead of full TCP connect scans. Scanning specific ports rather than all 65,535 can reduce scan time significantly.

Can Nmap scans be detected by firewalls or IDS?

Yes, most modern intrusion detection systems (IDS) and firewalls can detect standard Nmap scans. SYN scans and connect scans generate recognizable traffic patterns. While techniques like fragmentation, decoy scanning, and slow timing can reduce detection likelihood, advanced security systems are increasingly capable of identifying even stealthy scanning activity.


Learn key terms related to this article in our cybersecurity glossary:

  • Network Security — Network security is a set of practices, technologies, and strategies aimed at…
  • Wi-Fi Network Penetration Testing — Wi-Fi network penetration testing is the process of assessing the security of…
  • Cybersecurity — Cybersecurity is a collection of techniques, processes, and practices used to…
  • Firewall — A firewall, also known as a network firewall or security barrier, is a security…
  • IT Infrastructure Penetration Testing — IT infrastructure penetration testing is a controlled and ethical process of…

Learn More

Explore related articles in our knowledge base:


Explore Our Services

Need cybersecurity support? Check out:

More questions and answers

What does the -Pn option do in Nmap?

The -Pn option (no ping) skips the host discovery stage. Normally Nmap first works out which addresses respond and runs port scans, version detection or OS detection only against those. With -Pn it treats every specified address as live. That helps when a firewall drops the discovery probes and a host looks as if it were down, but on a large address range it lengthens the scan, because every address gets probed. Older Nmap versions called the same option -P0 and -PN.

What does the -sC option do in Nmap?

The -sC option runs a script scan with the default set of NSE scripts and is shorthand for --script=default. The Nmap documentation warns that part of this category counts as intrusive, so those scripts do not belong on a network you have not been authorised to test. The option is ignored if the same command also specifies at least one --script option.

Share:

Talk to an expert

Have questions about this topic? Get in touch with our specialist.

Sales Representative
Grzegorz Gnych

Grzegorz Gnych

Sales Representative

Response within 24 hours
Expert consultation
Individual approach

Providing your phone number will speed up contact.

Want to Reduce IT Risk and Costs?

Book a consultation - we respond within 24h

Response in 24h Custom quote No obligations