Testing port connectivity Flashcards

1
Q

how would I test connectivity on windows

A

Test-NetConnection

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

How would I test port connectivity on Linux and mac

A

netcat

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

What tool can we run through the command nc, and has two mandatory arguments, a host and a port?

A

Netcat

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

What happens if you run:
nc google.com 80

A

it will try to establish a connection on port 80 to google.com.

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

What happens if the nc connection fails?

A

the command will exit

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

What happens if the nc command succeeds?

A

you see a blinking cursor waiting for more input.

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

This is a way for you to actually send application layer dat to the listening service from your own keyboard.

A

the blinking cursor after an nc command succeeds.

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

What command can I issue if I’m only curious about the status of a port?

A

nc with the -z flag

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

what does the -z flag stand for in nc?

A

zero input output mode

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

what does the -v flag stand for?

A

verbose. Makes the command output useful to human eyes as opposed to non-verbose.

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

what output type is best for usage and scripts?

A

non-verbose.

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

What happens if I issue:
nc -z -v google.com 80

A

Connection to google.com 80 port [tcp/http] succeeded!

The command’s output will simply tell me if a connection to the port in question is possible or not.

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

Test-NetConnection google.com
running test connection with only the host specified

A

It will default to using an ICMP echo request, like Ping does, but displays more data.

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

What commmand result default displays data including the data link layer protocol being used, computer name, remote address, interface alias, sourceaddress, pingSucceeded, PingReplyDetails

A

Test-NetConnection

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

How can I ask Test-NetConnection to test connectivity to a specific port?

A

Test-NetConnection -port

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

what are tools used to test network connectivity and communication between devices?

A

Netcat (nc) for Linux and Macand Test-NetConnection for Windows

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

What tools check port connectivity at the transport layer, which creates and manages communications in a network through connections?

A

Netcat and Test-NetConnection

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

what stands for networking?

A

net

19
Q

what stands for concatenate, from unix?

A

cat

20
Q

what means to link things together in a chain or series?

A

concatenate, cat

21
Q

What command tries to establish a transmission control protocol connection to the host <google.com> on the port <port 80>?</google.com>

A

nc [options] <host> <port>
ex: nc google.com 80</port></host>

22
Q

in netcat, what can the host be?

A

a website or targeted IP address

23
Q

In netcat, what can the port be?

A

a specific port or range of port numbers

24
Q

what command tells netcat to open a user datagram protocol (udp) connection, instead of a TCP connection?

A

nc -u <host> <port></port></host>

25
Q

Why what I need to use UDP ?

A

speed or efficiency purposes

26
Q

what command stands for zero input/ output and tells netcat to scan for open ports?

A

nc -z <host> <port></port></host>

27
Q

what netcat flag what I used to scan for unneeded services that could be listening into a network without sending any data to them? This can be combined with using a range of port numbers instead of a single port

A

nc -z <host> <port></port></host>

27
Q

what netcat command stands for verbose and gives extended output text important for debugging and troubleshooting

A

nc -v <host> <port></port></host>

28
Q

what command would I run if I want a scan looking for listening devices that will return lists of port and statuses on the network or website being scanned?

A

nc -v <host> <port></port></host>

29
Q

what stands for very verbose and gives more output text than just verbose

A

nc -vv <host> <port></port></host>

30
Q

what would I use if I’ve asked for a very detailed report of all ports and their statuses within the company network to get robust information on all ports and their statuses

A

nc -vv <host> <port></port></host>

31
Q

refers to a local port for a connection. Some protocols require specific source port to work properly, this lets you specify what port to connect from

A

nc -p <localport> <host> <port></port></host></localport>

32
Q

executes a program after connection established. this option is not supported by all versions of netcat, but you can also use standard unix command line pipelines to pass network input two or from other programs

A

nc -e <program> <host> <port></port></host></program>

33
Q

prevents domain name server lookup. use this when you have an IP address and numeric port to use for the connection and you want to avoid the overhead of domain name server, DNS, or if it is not working properly

A

nc -n <addr> <port></port></addr>

34
Q

if I want to evaluate a network for open doors a weak connections that would allow someone to hack into the network what can I run to determine if a connection to the port 80 is possible to google?

A

nc -v -z google.com 80

35
Q

command test paying connectivity and displays diagnostic information for a connection from the host on the selected port

A

Test-NetConnection <host> <port></port></host>

35
Q

what command, used in powershell, is case sensitive?

A

Test-NetConnection

36
Q

we command will I use of data transfer on the network is moving very slowly so I want to check the quality of the connection and view details about it?

A

Test-NetConnection -InformationLevel “Detailed”

36
Q

Tests ping connectivity with detailed results

A

Test-NetConnection -InformationLevel “Detailed”

37
Q

Tests a connection to a remote host

A

Test-NetConnection -ComputerName [remote host]

38
Q

Tests TCP connectivity to a specific host in port. This can be combined with the display detailed results option

example: PS C:> Test-NetConnection -ComputerName www.google.com
-Port 80 -InformationLevel Detailed

A

Test-NetConnection -ComputerName [remote host] -Port [port
number]

39
Q

Performs root diagnostics to connect to a remote host. This can require administrator privileges so you may have to run your powershell window as administrator

A

Test-NetConnection -ComputerName [remote host]
-DiagnoseRouting

40
Q

Performs root diagnostics to connect or remote hosts with routing constraints. example: an employees having trouble connecting to a specific website from their computer, but other sites are loading fine. I can track connecting to the site directly with this:

A

Test-NetConnection -ComputerName www.example.com -Port 80
-InformationLevel Detailed

Test-NetConnection -ComputerName [remote host]
-constrainInterface [interface number] -DiagnoseRouting
-InformationLevel “Detailed”

41
Q
A