hping, hping3: update page (#10248)

This commit is contained in:
K.B.Dharun Krishna
2023-05-21 08:49:29 +05:30
committed by GitHub
parent 1c7baa2cb1
commit 405cc23be2
3 changed files with 21 additions and 43 deletions

View File

@@ -1,25 +1,8 @@
# hping
> Command-line oriented TCP/IP packet assembler and analyzer.
> Inspired by the `ping` command.
> More information: <http://www.hping.org>.
> This command is an alias of `hping3`.
> More information: <https://github.com/antirez/hping>.
- Ping localhost over TCP:
- View documentation for the original command:
`hping3 {{localhost}}`
- Ping an IP address over TCP on a specific port:
`hping3 -p {{80}} -S {{192.168.1.1}}`
- Ping an IP address over UDP on port 80:
`hping3 --udp -p {{80}} -S {{192.168.1.1}}`
- Scan a set of TCP ports on a specific IP address:
`hping3 --scan {{80,3000,9000}} -S {{192.168.1.1}}`
- Perform a charge test on port 80:
`hping3 --flood -p {{80}} -S {{192.168.1.1}}`
`tldr hping3`

View File

@@ -8,6 +8,10 @@
`hping3 --icmp --count {{4}} {{ip_or_hostname}}`
- Ping an IP address over UDP on port 80:
`hping3 --udp --destport {{80}} --syn {{ip_or_hostname}}`
- Scan TCP port 80, scanning from the specific local source port 5090:
`hping3 --verbose --syn --destport {{80}} --baseport {{5090}} {{ip_or_hostname}}`
@@ -16,6 +20,14 @@
`hping3 --traceroute --verbose --syn --destport {{80}} {{ip_or_hostname}}`
- Scan a set of TCP ports on a specific IP address:
`hping3 --scan {{80,3000,9000}} --syn {{ip_or_hostname}}`
- Perform a TCP ACK scan to check if a given host is alive:
`hping3 --count {{2}} --verbose --destport {{80}} -A {{ip_or_hostname}}`
`hping3 --count {{2}} --verbose --destport {{80}} --ack {{ip_or_hostname}}`
- Perform a charge test on port 80:
`hping3 --flood --destport {{80}} --syn {{ip_or_hostname}}`