08 Flashcards

1
Q

Which command syntax performs a service version detection scan on 192.168.0.80?

A

nmap -sV 192.168.0.80

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

use the local network discovery and port scanning tool…

What tool are they talking about?

A

nmap

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

What are option used with nmap gives me the port versions?

A

nmap -sV 192.168.0.81

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

What command can I use to give me the percentage likelihood that a machine is Liniux 6.24.90?

A

nmap –osscan-guess 192.168.0.80

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

use the packet sniffing tool too….

What tool is this?

A

tcpdump

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

what options in tcp dump can be used to give me the all the information on int7? only ICMP traffic on the src host?

What does src host mean?
what does dst host mean?

A

tcpdump -i eth7 -XX ICMP -srchost 192.168.0.81

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

How do I read all the information in tcpdump file, tmp/mycapture.pcap

A

tcpdump -r -XX /tmp/mycapture.pcap

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

what command do I use too too see if TCP wrappers is installed on /bin/bin/ls? How do I tell it has a TCP wrapper?

A

ldd

if there is a libwrap.so.0 at the front

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

What file do I go into too configure the tcp wrapper too deny SSH from 192.168.0.81?

how do I make it so that all others are denied?

What is the other filer called?

A

/etv/hosts.allow

sshd: 192.168.0.80: ALLOW

sshd: ALL: DENY

/etc/hosts.deny

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

What command creates an ssh tunnel?

A

ssh <username>@192.168.0.80 -L 8080:192.168.0.82:80</username>

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

What iptables command gives me a list of all the rules?

What iptables comamnd gives me a lit of avaliable interfaces?

A

iptables -L

iptables -D

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

what iptables command makes it so a new rule is added to input chain, on eth7, allow tcp packets from the dst port 88

A

iptables -A INPUT -i eth7 -p tcp –dport 88 -j ACCEPT

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

How do you tell the dependencies of a service?

A

ldd /etc/bin/ftpd

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

what command uses –sport and –dport?

A

iptables

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

what command uses port, host src port, dst port, src host, dst host

A

tcpdump

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