tcpdump Flashcards

1
Q

[CMD, tcpdump] List all available network interfaces

A

ip a s

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

[CMD, tcpdump] Specify interface to listen on

A

-i {INTERFACE}

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

[CMD, tcpdump] Listen on all interfaces

A

-i any

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

[CMD, tcpdump] Save to a file

A

-w FILE

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

[CMD, tcpdump] Read from a file

A

-r FILE

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

[CMD, tcpdump] Specify number of packets to capture

A

-c {COUNT}

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

[CMD, tcpdump] Avoid DNS lookup

A

-n

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

[CMD, tcpdump] Avoid both DNS and port look up

A

-nn

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

[CMD, tcpdump] Limit packages to a certain source based on IP or hostname

A

-src host HOSTNAME or -src host ip

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

[CMD, tcpdump] Limit packages to a certain destination IP or hostname

A

-dst host HOSTNAME or -dst host ip

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

Explain this command:
tcpdump -i eth0 host example.com and tcp port 443 -w https.pcap

A

Listen on interface eth0 with a host DNS example.com with TCP only filter on port 443 and write the packets captured to https.pcap

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

What is the library associated with tcpdump called?

A

lipbcap

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

[CMD] Count packets using protocol icmp, read from a file

A

tcpdump -r FILE icmp | wc -l

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

[CMD] Read from file, which ip asked for the MAC address of a destination ip? And what protocol is used for these types of things?

A

tcpdump -nn -r traffic.pcap arp and dst host ip

ARP is used (Address resolution protocol)

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