# NSE

{% code overflow="wrap" %}

```
-sC #Executes the default Nmap script scan, running a set of standard scripts against the target.

-A #Aggressive scan combining -sV, -O, and -sC for a comprehensive analysis of services, OS, and scripts.
```

{% endcode %}

**`/usr/share/nmap/scripts`**: This directory stores the Nmap Scripting Engine (NSE) scripts, used for automating various scanning tasks.

NSE scripts are written in the Lua programming language and have the `.nse` extension. These scripts extend Nmap's functionality to perform specialized tasks.

## Default Scripts

```
nmap -sC [IP]
```

Enables the default set of NSE scripts, providing a broader view of the network’s security posture.

## Scripts

```
nmap --script-help=[Script Name]
nmap --script=[Script Name]/--script [Script Name]
```

Specifies one or more NSE scripts to run during an Nmap scan.

## Aggressive Scan

```
nmap -A [IP]
```

Combines several Nmap options: version detection (`-sV`), default script scan (`-sC`), and OS detection (`-O`), providing extensive information about the target.
