NSE Scripts Flashcards

1
Q

Scan with default NSE scripts. Considered useful for discovery and safe

A

-sC

nmap 192.168.1.1 -sC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Scan with default NSE scripts. Considered useful for discovery and safe

A

–script default

nmap 192.168.1.1 –script default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Scan with a single script. Example banner

A

–script

nmap 192.168.1.1 –script=banner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Scan with a wildcard. Example http

A

–script

nmap 192.168.1.1 –script=http*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Scan with two scripts. Example http and banner

A

–script

nmap 192.168.1.1 –script=http,banner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Scan default, but remove intrusive scripts

A

–script

nmap 192.168.1.1 –script “not intrusive”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

NSE script with arguments

A

–script-args

nmap –script snmp-sysdescr –script-args snmpcommunity=admin 192.168.1.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

http site map generator

A

nmap -Pn –script=http-sitemap-generator scanme.nmap.org

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fast search for random web servers

A

nmap -n -Pn -p 80 –open -sV -vvv –script banner,http-title -iR 1000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Brute forces DNS hostnames guessing subdomains

A

nmap -Pn –script=dns-brute domain.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Safe SMB scripts to run

A

nmap -n -Pn -vv -O -sV –script smb-enum,smb-ls,smb-mbenum,smb-os-discovery,smb-s,smb-vuln,smbv2 -vv 192.168.1.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Whois query

A

nmap –script whois* domain.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Detect cross site scripting vulnerabilities

A

nmap -p80 –script http-unsafe-output-escaping scanme.nmap.org

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Check for SQL injections

A

nmap -p80 –script http-sql-injection scanme.nmap.org

How well did you know this?
1
Not at all
2
3
4
5
Perfectly