https://github.com/sonyacore/sonarping
A Multi-Ping tool for sending ICMP requests
https://github.com/sonyacore/sonarping
ping python3
Last synced: 9 months ago
JSON representation
A Multi-Ping tool for sending ICMP requests
- Host: GitHub
- URL: https://github.com/sonyacore/sonarping
- Owner: SonyaCore
- License: gpl-3.0
- Created: 2022-10-17T23:38:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-20T09:04:58.000Z (over 3 years ago)
- Last Synced: 2025-04-14T08:47:23.810Z (about 1 year ago)
- Topics: ping, python3
- Language: Python
- Homepage:
- Size: 1.49 MB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SonarPing
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
## A Multi-Ping tool for sending ICMP requests

- [**Overview**](#overview)
- [**Usage**](#usage)
- [**Options**](#options)
- [**License**](#license)
## Overview
This tool allows sending ICMP requests for specific CIDR or multiple IPs with custom options.
It can use a CIDR file or a list of IPs in a file for sending ICMP_ECHO_REQUEST
Also, it uses multi-threading for sending requests
## Usage
> SonarPing are rewritten ping protocol in python and becuase of that root privileges is required
### Ping Specific IP or Multiplie IPS :
```bash
sudo python3 SonarPing.py --ping google.com 8.8.8.8 1.1.1.1
```
```bash
sudo python3 SonarPing.py --file ips.txt
```
### Ping CIDR or CIDR File :
```bash
sudo python3 SonarPing.py --cidr 23.235.32.0/29
```
```bash
sudo python3 SonarPing.py --cidrfile ips.txt
```
### Note :
> Because there is no dependency for this script you can use curl directly to execute this script
```bash
https://raw.githubusercontent.com/SonyaCore/SonarPing/main/SonarPing.py | sudo python3 - --cidrfile ips.txt --delay 0.5
```
## Options
| | |
|----------------|-------------------------------|
|--file , -f | `Send ICMP packets through IP file` |
|--ping , -p | `Send ICMP packets` |
|--cidr , -r | `Send ICMP packets through CIDR range`|
|--cidrfile , -cf| `Send ICMP packets with CIDR file` |
| | |
|----------------|-------------------------------|
|--delay , -d |`ICMP requests delay for sending each packet` |
|--timeout , -t |`ICMP request timeout` |
|--count , -c |`Stop current IP after sending (and receiving) count response packets`|
|--timeout , -t |`ICMP request timeout` |
|--bytes , -b | `Total Bytes to be Send with ICMP header` |
## License
Licensed under the [GPL-3](LICENSE) license.
[contributors-shield]: https://img.shields.io/github/contributors/SonyaCore/SonarPing?style=flat
[contributors-url]: https://github.com/SonyaCore/SonarPing/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/SonyaCore/SonarPing?style=flat
[forks-url]: https://github.com/SonyaCore/SonarPing/network/members
[stars-shield]: https://img.shields.io/github/stars/SonyaCore/SonarPing?style=flat
[stars-url]: https://github.com/SonyaCore/SonarPing/stargazers
[issues-shield]: https://img.shields.io/github/issues/SonyaCore/SonarPing?style=flat
[issues-url]: https://github.com/SonyaCore/SonarPing/issues
[LICENSE]: https://www.gnu.org/licenses/gpl-3.0.en.html