← 返回命令列表

Linux command

impacket-ping 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Send ICMP echo requests

impacket-ping [192.168.1.50] [192.168.1.100]

说明

impacket-ping is a simple ICMP ping implementation using raw sockets via the Impacket library. It sends ICMP echo request packets to the specified destination and reports echo-reply responses. Both source and destination IP addresses are required positional arguments. The script sends echo requests in a loop with a one-second interval and reports the sequence number of each reply. Unlike the standard ping utility, this implementation uses Impacket's raw socket capabilities, which can be useful in environments where the standard ping may be restricted or when integration with other Impacket tools is desired. Note that a reply is not a definitive test of host availability, as the remote host may be up but configured to refuse ICMP probes.

参数

source_ip
Source IP address to use for the outgoing ICMP echo request packets.
destination_ip
Destination IP address to ping.

FAQ

What is the impacket-ping command used for?

impacket-ping is a simple ICMP ping implementation using raw sockets via the Impacket library. It sends ICMP echo request packets to the specified destination and reports echo-reply responses. Both source and destination IP addresses are required positional arguments. The script sends echo requests in a loop with a one-second interval and reports the sequence number of each reply. Unlike the standard ping utility, this implementation uses Impacket's raw socket capabilities, which can be useful in environments where the standard ping may be restricted or when integration with other Impacket tools is desired. Note that a reply is not a definitive test of host availability, as the remote host may be up but configured to refuse ICMP probes.

How do I run a basic impacket-ping example?

Run `impacket-ping [192.168.1.50] [192.168.1.100]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does source_ip do in impacket-ping?

Source IP address to use for the outgoing ICMP echo request packets.