1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 16:42:08 +02:00
tldr/pages/common/hping.md
2019-10-05 11:45:53 +01:00

25 lines
569 B
Markdown

# hping
> Command-line oriented TCP/IP packet assembler and analyzer.
> Inspired by the `ping` command.
> More information: <http://www.hping.org>.
- Ping localhost over TCP:
`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}}`