Skip to content

Commit

Permalink
hping, hping3: update page (tldr-pages#10248)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun authored May 21, 2023
1 parent 1c7baa2 commit 405cc23
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 43 deletions.
25 changes: 4 additions & 21 deletions pages.fr/common/hping.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
# hping

> Outil en ligne de commande permettant d'assembler ou analyser des paquets TCP/IP.
> Inspirer par la commande `ping`.
> Plus d'informations : <http://www.hping.org>.
> Cette commande est un alias de `hping3`.
> Plus d'informations : <https://github.com/antirez/hping>.
- Ping localhost via TCP :
- Voir la documentation de la commande originale :

`hping3 {{localhost}}`

- Ping une adresse IP, via TCP, sur un port spécifique :

`hping3 -p {{80}} -S {{192.168.1.1}}`

- Ping une adresse IP, via UDP, sur le port 80 :

`hping3 --udp -p {{80}} -S {{192.168.1.1}}`

- Scanner un ensemble de ports TCP, sur une adresse IP spécifique :

`hping3 --scan {{80,3000,9000}} -S {{192.168.1.1}}`

- Effectuer un test de montée en charge sur le port 80 :

`hping3 --flood -p {{80}} -S {{192.168.1.1}}`
`tldr hping3`
25 changes: 4 additions & 21 deletions pages/common/hping.md
Original file line number Diff line number Diff line change
@@ -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`
14 changes: 13 additions & 1 deletion pages/common/hping3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}`
Expand All @@ -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}}`

0 comments on commit 405cc23

Please sign in to comment.