1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/hping3.md

34 lines
1,022 B
Markdown
Raw Normal View History

2021-12-01 20:56:30 -05:00
# hping3
> Advanced ping utility which supports protocols such TCP, UDP, and raw IP.
2022-07-11 02:04:06 +02:00
> Best run with elevated privileges.
2021-12-01 20:56:30 -05:00
> More information: <https://github.com/antirez/hping>.
- Ping a destination with 4 ICMP ping requests:
`hping3 --icmp --count {{4}} {{ip_or_hostname}}`
2023-05-21 08:49:29 +05:30
- Ping an IP address over UDP on port 80:
`hping3 --udp --destport {{80}} --syn {{ip_or_hostname}}`
2021-12-01 20:56:30 -05:00
- Scan TCP port 80, scanning from the specific local source port 5090:
`hping3 --verbose --syn --destport {{80}} --baseport {{5090}} {{ip_or_hostname}}`
- Traceroute using a TCP scan to a specific destination port:
`hping3 --traceroute --verbose --syn --destport {{80}} {{ip_or_hostname}}`
2023-05-21 08:49:29 +05:30
- Scan a set of TCP ports on a specific IP address:
`hping3 --scan {{80,3000,9000}} --syn {{ip_or_hostname}}`
2021-12-01 20:56:30 -05:00
- Perform a TCP ACK scan to check if a given host is alive:
2023-05-21 08:49:29 +05:30
`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}}`