0

I would like to send only 10 paquets with hping, with the -c option. I type :

hping3 --flood -c 10 -I ens37 -p 80 -S ............

The result of the command is:

hping in flood mode, no replies will be shown

But it never stops.

Aserre
  • 4,916
  • 5
  • 33
  • 56
JoeJoe
  • 29
  • 9

1 Answers1

0

It doesn't stop because -c is used to count of packets sent AND received.

Anytime you specify --flood you will not get reply packets, therefore it can't count them, so it never stops. Also if there is a firewall between targets you won't get the reply packets so -c can't count them.

From the documentation "-c --count count Stop after sending (and receiving) count response packets. After last packet was send hping2 wait COUNTREACHED_TIMEOUT seconds target host replies"

GuidedHacking
  • 3,628
  • 1
  • 9
  • 59