0
点赞
收藏
分享

微信扫一扫

查看 内网所有ip

boom莎卡拉卡 2023-01-13 阅读 99
linuxIP5e


首先看你的主机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.0到192.168.3.255所有IP

如果我的ip 是192.168.1.7
那么我们就运行

nmap –nsP 192.168.1.0/24 #从192.168.1.0到192.168.1.255所有IP


举报

相关推荐

0 条评论