查看 内网所有ip

首先看你的主机ip,ifconfig
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.3.7  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::c704:6ed6:5c56:a1d  prefixlen 64  scopeid 0x20<link>
        ether 74:70:fd:5e:5a:92  txqueuelen 1000  (以太网)
        RX packets 909812  bytes 1112398573 (1.1 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 353803  bytes 64928648 (64.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


比如我的ip 是192.168.3.7
那么我们就运行
nmap –nsP 192.168.3.0/24 #从192.168.3.0192.168.3.255所有IP
如果我的ip 是192.168.1.7
那么我们就运行
nmap –nsP 192.168.1.0/24 #从192.168.1.0192.168.1.255所有IP
posted @ 2022-08-19 22:48  luoganttcc  阅读(15)  评论(0)    收藏  举报