📜  PoweShell PingSweep - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:45:38.610000             🧑  作者: Mango

PowerShell PingSweep - Shell-Bash

Introduction

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.

Features
  • This script allows you to scan the network using a single command.
  • It is a lightweight script that can detect multiple hosts at once.
  • It displays the IP addresses of the live hosts along with their response time.
  • The script is easy to customize according to your requirements.
Prerequisites
  • Windows or Linux environment.
  • PowerShell or Bash is installed.
Usage
PowerShell PingSweep

To execute the PowerShell PingSweep script, follow these steps:

  1. Open the PowerShell prompt with administrative privileges.

  2. Navigate to the directory where the script is saved.

  3. 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.

  4. Press Enter to execute the command.

Shell-Bash PingSweep

To execute the Shell-Bash PingSweep script, follow these steps:

  1. Open the terminal with administrative privileges.

  2. Navigate to the directory where the script is saved.

  3. 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.

  4. Press Enter to execute the command.

Specifications

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.

PowerShell PingSweep Output
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
Shell-Bash PingSweep Output
192.168.1.1   : 1ms
192.168.1.2   : 2ms
192.168.1.3   : 1ms
192.168.1.4   : TimedOut
Conclusion

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.