HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ping.py — Check if an IPv4 host is reachable using ICMP. Sends ICMP echo requests and listens for echo replies

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandreachableping.pycliipv4usingcheckhost

Problem

How to use the ping.py command: Check if an IPv4 host is reachable using ICMP. Sends ICMP echo requests and listens for echo replies. Note: Requires root privileges for raw socket access (e.g., run with sudo). Part of the Impacket suite. More information: <https://github.com/fortra/impacket>.

Solution

ping.py — Check if an IPv4 host is reachable using ICMP. Sends ICMP echo requests and listens for echo replies. Note: Requires root privileges for raw socket access (e.g., run with sudo). Part of the Impacket suite. More information: <https://github.com/fortra/impacket>.

Ping a host from a specified source IPv4 address:
ping.py {{source_ipv4}} {{destination_ipv4}}


Ping 192.168.1.100 from 192.168.1.10:
ping.py 192.168.1.10 192.168.1.100

Code Snippets

Ping a host from a specified source IPv4 address

ping.py {{source_ipv4}} {{destination_ipv4}}

Ping 192.168.1.100 from 192.168.1.10

ping.py 192.168.1.10 192.168.1.100

Context

tldr-pages: common/ping.py

Revisions (0)

No revisions yet.