Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hping3: add page #7147

Merged
merged 7 commits into from
Dec 2, 2021
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions pages/common/hping3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# hping3

> Advanced ping utility which supports protocols such TCP, UDP, and raw IP.
> Best run with elevated priviledges.
> More information: <https://github.com/antirez/hping>.

- Ping a destination with 4 ICMP ping requests:

`hping3 --icmp --count {{4}} {{ip_or_hostname}}`

- Scan for port 80 controlling which local source port 5090 initiates the scan:
navarroaxel marked this conversation as resolved.
Show resolved Hide resolved
navarroaxel marked this conversation as resolved.
Show resolved Hide resolved

`hping3 --verbose --syn --destport {{80}} --baseport {{5090}} {{ip_or_hostname}}`

- Traceroute to a specific port 80:
navarroaxel marked this conversation as resolved.
Show resolved Hide resolved
navarroaxel marked this conversation as resolved.
Show resolved Hide resolved

`hping3 --traceroute --verbose --syn --destport {{80}} --baseport {{5090}} {{ip_or_hostname}}`
navarroaxel marked this conversation as resolved.
Show resolved Hide resolved

- Perform an ACK scan to check if a given host is alive:

`hping3 --count {{2}} --verbose --destport {{80}} -baseport {{5090}} -A {{ip_or_hostname}}`
navarroaxel marked this conversation as resolved.
Show resolved Hide resolved