sudo apt install nmap
sudo apt install net-tools
ifconfig
ip link
nmcli
netstat
route
ss // show network status
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=119 time=143 ms
nmcli dev status
DEVICE TYPE STATE CONNECTION
enp0 ethernet connected Wired connection 1
lo loopback unmanaged --
nmap -p- localhost // scan port and show ports on localhost
Starting Nmap 7.92 ( https://nmap.org ) at 2022-09-25 12:32 EEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000066s latency).
Not shown: 65529 closed tcp ports (conn-refused)
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
1716/tcp open xmsg
27017/tcp open mongod
29898/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 1.81 seconds
nmap -sP 192.168.1.0/24 // ping scan (ICMP Ping Only)
Starting Nmap 7.92 ( https://nmap.org ) at 2022-09-25 12:37 EEST
Nmap done: 256 IP addresses (0 hosts up) scanned in 104.19 seconds
sudo nmap -sn 192.168.1.0/24 // ping sweep from 192.168.1.1 to 192.168.1.254
nslookup <IP_address>
traceroute
hostname -i
hostname -I
nmap - Network exploration tool and security / port scanner
No comments:
Post a Comment