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.
Kaydol:
Kayıt Yorumları (Atom)
Elektrikli Bisiklet Bataryaları hakkında
Bafang M615 (BBS02B / BBSHD) – Tam Paket Tablo + BOM + Özet Bafang M615MM G320.750/1000.C (BBS02B / BBSHD) – Tam Paket ...
-
Systemd ile Linux Sistem Kaynak Yönetimi: RHEL 7/8/9/10 Kapsamlı Rehberi Giriş Modern Linux dağıtımlarının neredeyse tamamı systemd servis...
-
🔒 SSH Servisini OOM Killer'dan Koruma Rehberi 📑 İçerik 1. Giriş 2. OOM Killer Nedir? 3. SSH ve OOM Killer İlişkisi 4. Çözü...
-
RHEL tabanlı her hangi bir sistemde felaket durumunda kurtarma modunda açtığımızda chroot yapmadan önce aşağıdaki bağlantı işlemlerini yapma...
Hiç yorum yok:
Yorum Gönder