Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Using Nmap Scripting Engine (NSE) | Service Enumeration, OS Detection, and NSE Scripting
Network Enumeration with Nmap

Using Nmap Scripting Engine (NSE)

Deslize para mostrar o menu

The Nmap Scripting Engine (NSE) is one of Nmap's most powerful features, allowing you to automate a wide range of network discovery and security tasks. NSE scripts extend Nmap’s core functionality, making it possible to perform advanced reconnaissance, vulnerability detection, and even exploitation in some cases.

NSE scripts are organized into categories based on their intended purpose, such as discovery for gathering information about hosts and services, vuln for checking known vulnerabilities, and safe for scripts that are unlikely to disrupt the target. Other categories include default, which contains scripts considered both useful and non-intrusive, and auth, intrusive, malware, and more.

By selecting scripts from these categories, you can tailor your scans to suit your specific objectives and risk tolerance.

NSE scripts are written in the Lua programming language and are executed by Nmap during a scan. Each script is designed to interact with network services in a specific way, such as probing for additional service details, testing for vulnerabilities, or gathering information that standard scanning techniques might miss. You should use NSE scripts when you want to go beyond simple port and service detection—for example, when you want to identify known security issues, enumerate users, or retrieve banner information. NSE scripts can be run individually, by category, or as part of a default set, providing flexibility and depth to your scanning process. Choosing the right scripts helps you balance thoroughness with stealth and safety, ensuring you gather the information you need without causing unnecessary disruption to the target.

# Example: Running the default NSE scripts on a target host
# This command uses Nmap to scan 192.168.1.1 and executes all scripts in the "default" category

# Command to run in your terminal:
nmap --script=default 192.168.1.1

The --script=default option tells Nmap to run all scripts classified as "default," which typically includes scripts that are both safe and useful for additional information gathering. These scripts might check for common vulnerabilities, enumerate services, or collect metadata, providing you with a richer set of scan results than a basic port scan alone. Using this option is a great way to enhance your reconnaissance without taking on the risk of running more aggressive or intrusive scripts.

question mark

What is the purpose of the --script option in Nmap?

Selecione a resposta correta

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 3

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Seção 3. Capítulo 3
some-alt