5

ping - . , , IP- . Ping , Internet Control Message Protocol (ICMP), .

, , TCP UDP. , , .

, Windows Linux .


?

ICMP , IP-. ICMP , ICMP .

Ping ICMP, ICMP , , . ping - , .

. , . , , .


Linux?

Linux:

  • Telnet
  • Netcat (NC)
  • Network Mapper (nmap)

Telnet

Telnet - , .

1. , telnet, :

telnet
telnet

2. telnet ,

  • CentOS/Fedora: yum -y install telnet
  • Ubuntu: sudo apt install telnet

3. telnet, :

telnet [address] [port_number]

[address] - IP- , [port_number] - , .

telnet google.com 443     
telnet

, telnet . .

4. telnet, Ctrl +] q.


Netcat

Netcat (nc) TCP UDP, . .

1. , netcat:

  • Debian, Ubuntu Mint: netcat -h
  • Fedora, Red Hat Enterprise Linux CentOS: ncat -h

2. netcat , :

sudo apt install netcat

3. netcat, :

nc -vz [address] [port_number]    
nc -vz

. - .


Nmap

Nmap - , . .

1. , Nmap, nmap -version .

nmap

Nmap , , .

2. Nmap, :

  • CentOS RHEL Linux: sudo yum install nmap
  • Ubuntu Debian Linux: sudo apt install nmap

3. Nmap :

nmap -p [port_number] [address]  
nmap -p

, , .

4. , nmap -p [number-range] [address].

[number-range]- , , . :

nmap -p 88-93 google.com
nmap range

Windows?

Windows :

  • Telnet
  • PowerShell

Telnet

telnet , :

  1. .
  2. , .
  3. Windows.
  4. Telnet . .

! Telnet .

telnet. :

1. cmd . .

2.

telnet [address] [port_number]

[address] - IP- , [port_number] - , .

telnet

, , .


PowerShell

PowerShell - , Windows.

PowerShell, :

1. PowerShell . Windows PowerShell.

2. PowerShell :

Test-NetConnection [address] -p [port_number]
PowerShell

, TCP . , TCP- .


, - , , Linux Windows.


50% Merion Academy