📅  最后修改于: 2023-12-03 14:45:38.610000             🧑  作者: Mango
PowerShell PingSweep is a script that helps you to scan the network and check for live hosts using ICMP protocol. This script requires administrative privileges to execute and is designed for both Windows and Linux platforms.
To execute the PowerShell PingSweep script, follow these steps:
Open the PowerShell prompt with administrative privileges.
Navigate to the directory where the script is saved.
Type the following command:
.\PingSweep.ps1 -ipRange xxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy
Replace xxx.xxx.xxx.xxx
with the starting IP address and yyy.yyy.yyy.yyy
with the ending IP address of the range you want to scan.
Press Enter to execute the command.
To execute the Shell-Bash PingSweep script, follow these steps:
Open the terminal with administrative privileges.
Navigate to the directory where the script is saved.
Type the following command:
./PingSweep.sh xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy
Replace xxx.xxx.xxx.xxx
with the starting IP address and yyy.yyy.yyy.yyy
with the ending IP address of the range you want to scan.
Press Enter to execute the command.
The script scans the network by sending ICMP echo requests to each IP address in the specified range. If the host responds, the script records the IP address and the response time.
IP Address Response Time (ms)
----------- ------------------
192.168.1.1 1
192.168.1.2 2
192.168.1.3 1
192.168.1.4 TimedOut
192.168.1.1 : 1ms
192.168.1.2 : 2ms
192.168.1.3 : 1ms
192.168.1.4 : TimedOut
PowerShell PingSweep and Shell-Bash PingSweep are simple and useful scripts that can help you to scan the network and detect live hosts. These scripts can save you a lot of time and effort by automating the process of network scanning. So, use these scripts and make your network scanning faster and easier.