Theory Test 3 Flashcards

1
Q

Port Scanning

A

A method of finding out which services/ports a host computer offers.

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

Port States

A

Open, Closed, Filtered

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

Open Port

A

Send a SYN, receive a SYN/ACK

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

Closed Port

A

Send a SYN, receive a RST

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

Filtered Port

A

(Presumably behind a firewall) Packet dropped, no response

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

Types of Port Scans

A

TCP SYN Scan, TCP FIN Scan, Connect Scan, NULL Scan

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

TCP SYN Scan

A

Half-open scanning. SYN is sent, if SYN/ACK recieved, port is listening, send a RST immediately to terminate connection. Few servers log this because no full connection is made. (nmap -s in root for SYN scan)

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

TCP FIN Scan

A

Attempt to close a connection that isn’t open. Closed ports reply with RST. Open ports ignore, so no response is a listening port.

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

Connect Scan

A

Opens a connection to every interesting port. Success if port is listening. Not stealthy but fastest scanning method.

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

NULL Scan

A

No flags, target doesn’t know how to handle, packet dropped, no response, port listening. Closed port sends a RST.

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

Common Scanning Types

A

Terminal/Command line ping sweeps, port scanner software

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

Terminal/Command Line Ping Sweeps

A

Look for echo replies. Recon looking for shares or accessibilities.

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

Port Scanning Software

A

Look for normal TCP connection response. Further recon looking for OS/Software vulnerabilities.

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

Windows File Sharing Ports

A

139 (NetBIOS), 445 (SMB)

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

Port scanning programs report what?

A

Port state, best guess OS, services likely running, ping reports, more.

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

Scanning Tools

A

Nmap, NetScan, Nessus, Fping, more.

17
Q

Nmap

A

Command line tool for Win and Linux, GUI version is Zenmap. Determine open ports, services running, and OS.

18
Q

Enumeration

A

Involves connecting to a system, not just identifying.

19
Q

Windows FOR Command

A

FOR /L loops multiple iterations

FOR /F provides input from a file

20
Q

FOR Syntax

A

FOR /L %i in (start,step,stop) do (command) %i
*@ used to hide words and show only result
FOR /F %i in (filename.txt) do (command) %i

21
Q

CLI Output Options

A

Command>nul: sends err to nul so not shown on screen
Command > error.txt
Command&raquo_space; error.txt: sends to txt and appends to existing content
Pipe output to other commmands using |
enter 2 commands in order using & (cls clears screen)
&& to only execute second command if first worked

22
Q

Enum.exe

A

enum -d -u name -f password.txt

runs all passwords against the username on computer with given ip

23
Q

Enumeration Commands

A

NBTStat, NBTScan, net view, net use

24
Q

NBTStat

A

Shows computer names, workgroups, MAC addresses, assigned to a single ip address host.
Syntax: nbtstat -a

25
Q

NBTScan

A

Shows sharing at ip targets through network ip address ranges.
Syntax: nbtscan / or - (ex. 10.80.10.2/24)

26
Q

net view

A

Displays information of shared folders at a target ip address
Syntax: netview
netview /all shows all shares including admin shares
netview /domain: will list all of the sharing computers in the domain.

27
Q

net use

A

Most powerful net command. Allows connections to network share. Can also map a network drive
Syntax: net use ///

28
Q

fping

A

Ping multiple ip addresses simultaneously. Command: fping -g/-f option