ping sweeper 123456789┌──(penguin㉿kali)-[~/Documents]└─$ cat ip.txt | grep "64 bytes"64 bytes from 192.168.227.1: icmp_seq=1 ttl=128 time=0.327 ms ┌──(penguin㉿kali)-[~/Documents]└─$ cat ip.txt | grep "64 bytes"| cut -d " " -f 4 | tr -d ":" 192.168.227.1 ipsweep.sh 123456789101112#!/bin/bash 声明bash脚本if [ "$1" == "" ]thenecho "Forget an IP Address"echo "Syntax ./ipsweep.sh 192.168.227"elsefor ip in `seq 1 254` ; doping -c 1 $1.$ip | grep "64 bytes"| cut -d " " -f 4 | tr -d ":" &donefi 1运行 ./ipsweep.sh 192.168.227 自动化 123 ./ipsweep.sh 192.168.227 >ips.txtfor ip in (cat ips.txt) ; do nmap $ip ; done kali #kali ping sweeper https://128374.xyz/2026/04/08/笔记/ping sweeper/ 作者 KingPenguinMan 发布于 2026年4月8日 更新于 2026年4月8日 许可协议 Basic 上一篇 Common Network Commands 下一篇 Please enable JavaScript to view the comments