Bu gün eski dostlardan birtanesi olan nc komutunu hatırlatıyorum.
nc ile bir çok şeyler yaplıdığını araştırılınca görürsünüz.
En güzel tarafıda bir servise erişebilirlik kontrolü.
Oldukça basit, sadece -z paremetresi ip ve portu vermemiz yeterli oluyor.
# nc -z 172.16.0.49 7777
Connection to 172.16.0.49 7777 port [tcp/cbt] succeeded!
nc — arbitrary TCP and UDP connections and listens
DESCRIPTION
The nc (or netcat) utility is used for just about anything under the sun
involving TCP, UDP, or UNIX-domain sockets. It can open TCP connections,
send UDP packets, listen on arbitrary TCP and UDP ports, do port scan‐
ning, and deal with both IPv4 and IPv6. Unlike telnet(1), nc scripts
nicely, and separates error messages onto standard error instead of send‐
ing them to standard output, as telnet(1) does with some.
-z Specifies that nc should just scan for listening daemons, without
sending any data to them. It is an error to use this option in
conjunction with the -l option.
nc ile bir çok şeyler yaplıdığını araştırılınca görürsünüz.
En güzel tarafıda bir servise erişebilirlik kontrolü.
Oldukça basit, sadece -z paremetresi ip ve portu vermemiz yeterli oluyor.
# nc -z 172.16.0.49 7777
Connection to 172.16.0.49 7777 port [tcp/cbt] succeeded!
nc — arbitrary TCP and UDP connections and listens
DESCRIPTION
The nc (or netcat) utility is used for just about anything under the sun
involving TCP, UDP, or UNIX-domain sockets. It can open TCP connections,
send UDP packets, listen on arbitrary TCP and UDP ports, do port scan‐
ning, and deal with both IPv4 and IPv6. Unlike telnet(1), nc scripts
nicely, and separates error messages onto standard error instead of send‐
ing them to standard output, as telnet(1) does with some.
-z Specifies that nc should just scan for listening daemons, without
sending any data to them. It is an error to use this option in
conjunction with the -l option.
Yorumlar
Yorum Gönder