Chapter 7: Active Information Gathering Flashcards

1
Q

What does DNS stand for?

A

Domain Name System

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

What is the DNS and what does it do?

A

A distributed database responsible for responsible for translating user-friendly domain names into IP addresses.

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

Explain the process that goes on behind the scenes when a domain name is entered into a web browser.

A

Hostname sent to OS’s DNS client which passes it to an external DNS server known as the DNS recursor.

This server interacts with all the DNS infrastructure. The recursor contacts a server in the root zone, which then returns a TLD (top level domain), usually a .com

Once the recursor receives the TLD, it queries it and looks for the nameserver which contains the DNS records. There are two types - the forward lookup zone which finds IP address to a specific domain name and the reverse lookup zone which looks for domain names matches to an IP address.

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

In terms of DNS records, what does NS stand for?

A

Name server.

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

What do the nameserver records do?

A

Contain the name of the authoritative servers hosting the DNS records for a domain.

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

In terms of DNS records, what does A stand for?

A

A stands for the host record.

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

What does the host record do?

A

It contains the IP address for a given domain.

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

In terms of DNS records, what does MX stand for?

A

MX stands for mail exchange.

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

What do mail exchange records do?

A

Contain the names of the servers responsible for handling email for the domain.

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

In terms of DNS records, what does CNAME stand for?

A

CNAME stands for Canonical Name Records and are used to create alias for other records.

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

In terms of DNS records what does TXT stand for?

A

Text

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

What do the Text records do?

A

Contain arbitary data and can be used for various purposes.

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

What is a forward look up?

A

A forward look up is searching for an IP address based on a specific hostname.

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

What is a reverse look up?

A

A reverse look up is searching for a host name based on a specific IP address.

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

What is a DNS Zone Transfer?

A

A database replication between related DNS servers. The zone file is copied from the master server to a slave server.

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

What does a zone file contain?

A

All DNS names configured for that zone.

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

What is the command for performing a DNS zone transfer?

A

host -l

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

What service is usually running on port 80?

A

http service

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

What service is usually running on port 443?

A

SSL/TLS encrypted web service

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

What nmap command will scan for the top 1000 ports and nothing else?

21
Q

What simple nmap command will scan for all ports?

22
Q

In nmap, what does the -sC switch do?

A

All scripts

23
Q

In nmap, what does the -sV switch do?

A

Enumerate versions

24
Q

In nmap, what does the -sU switch do?

A

Scans for open UDP ports

25
In nmap, what does the -oA switch do?
Output all formats
26
In nmap, what does -sS do?
A SYN scan. This scan fails to complete the third part of the three way handshake present in the TCP protocol. This results in a faster and more efficient scan.
27
In nmap, what does the -O switch do?
Fingerprint - determining the Operating Systems version.
28
In nmap, what does the -A switch do?
Runs service enumeration and operating system enumeration scripts.
29
What is the file path of the NSE scripts?
/usr/share/nmap/scripts
30
What does SMB stand for?
Server Message Block
31
What port does NetBIOS listen on?
Port 139 and several UDP ports
32
What port does SMB listen on?
Port 445
33
What is the difference between SMB and NetBIOS?
SMB is a file sharing protocol while NetBIOS is an older transport layer protocol designed to allow Windows computers to talk to each other on a local network.
34
What does NFS stand for?
Network File System
35
What is NFS?
NFS is a distributed file system protocol. It allows a user to access files over a computer network as if they were on locally mounted storage.
36
What services are associated with NFS shares?
rpcbind and portmapper
37
What port are NFS share found on?
Port 111
38
How do we enumerate NFS shares using nmap?
nmap -p 111 --script nfs*
39
On NFS shares, once we've found the mounting point, how do we mount?
Make a directory identical to the mount directory. Use the command: sudo mount -o nolock 10.11.1.72:/home ~/home/
40
What does SMTP stand for?
Simple Mail Transport Protocol
41
What command in SMTP verifies whether a user account exists?
VRFY
42
What command in SMTP checks the membership of a mailing list?
EXPN
43
What does SNMP stand for?
Simple Network Management Protocol
44
What protocol does SNMP use?
UDP
45
What is one flaw in the SNMP protocol?
It fails to use any sort of traffic encryption with versions 1, 2 and 2c.
46
What is the SNMP MIB tree?
A database containing information related to network management within the SNMP protocol. The database is organised like a tree and the final endpoints (leaves of the tree) have specific variable values which can be accessed and probed by an external user.
47
What port does SNMP use?
Port 161
48
When scanning for SNMP, what protocol must be use?
UDP. We use -sU to ensure we pick it up.