Skip to content

A Python PyPI module to send multi-threaded ICMP ping using /bin/ping, ping.exe.

Notifications You must be signed in to change notification settings

YUChoe/mass_ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Version

Mass Ping

A multi-threaded ICMP ping using /bin/ping, ping.exe.

Features

  • You can get a quick result.
  • It detects ping flapping.
  • You don't need root privilege to send a ping.
  • It has no dependency as using only python standard library.

Installation

Run the folowing to install:

pip install mass-ping

Usage

>>> from mass_ping import MassPing
>>> hosts = ['8.8.8.8', '8.8.4.4', 'yahoo.com', 'ns.speedvpn.net', 'noizze.net']
>>> ping = MassPing(hosts=hosts, thread_count=len(hosts), test_count=2)  # test_count=2 means when ping fails retry 1 more time
>>> result = ping.start()
>>> from pprint import pprint
>>> pprint(result)
{'alive': ['8.8.4.4', '8.8.8.8', 'noizze.net', 'ns.speedvpn.net', 'yahoo.com'],
 'dead': [],
 'flapping': []}

About

A Python PyPI module to send multi-threaded ICMP ping using /bin/ping, ping.exe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages