hping3网络工具
Go to file
2022-06-07 13:10:55 +08:00
.github/workflows Update c-cpp.yml 2022-06-07 13:10:55 +08:00
debian first draft 2022-04-13 18:01:39 +08:00
docs first draft 2022-04-13 18:01:39 +08:00
utils first draft 2022-04-13 18:01:39 +08:00
antigetopt.c first draft 2022-04-13 18:01:39 +08:00
antigetopt.h first draft 2022-04-13 18:01:39 +08:00
apd.c first draft 2022-04-13 18:01:39 +08:00
ars.c first draft 2022-04-13 18:01:39 +08:00
ars.h first draft 2022-04-13 18:01:39 +08:00
arsglue.c first draft 2022-04-13 18:01:39 +08:00
AUTHORS first draft 2022-04-13 18:01:39 +08:00
binding.c first draft 2022-04-13 18:01:39 +08:00
BUGS first draft 2022-04-13 18:01:39 +08:00
byteorder first draft 2022-04-13 18:01:39 +08:00
byteorder.c first draft 2022-04-13 18:01:39 +08:00
byteorder.h first draft 2022-04-13 18:01:39 +08:00
bytesex.h first draft 2022-04-13 18:01:39 +08:00
CHANGES first draft 2022-04-13 18:01:39 +08:00
cksum.c first draft 2022-04-13 18:01:39 +08:00
configure first draft 2022-04-13 18:01:39 +08:00
COPYING first draft 2022-04-13 18:01:39 +08:00
datafiller.c first draft 2022-04-13 18:01:39 +08:00
datahandler.c first draft 2022-04-13 18:01:39 +08:00
display_ipopt.c first draft 2022-04-13 18:01:39 +08:00
gethostname.c first draft 2022-04-13 18:01:39 +08:00
getifname.c first draft 2022-04-13 18:01:39 +08:00
getlhs.c first draft 2022-04-13 18:01:39 +08:00
getusec.c first draft 2022-04-13 18:01:39 +08:00
globals.h first draft 2022-04-13 18:01:39 +08:00
hcmp.h first draft 2022-04-13 18:01:39 +08:00
hping2 first draft 2022-04-13 18:01:39 +08:00
hping2.h first draft 2022-04-13 18:01:39 +08:00
hping6 first draft 2022-04-13 18:01:39 +08:00
hstring.c first draft 2022-04-13 18:01:39 +08:00
hstring.h first draft 2022-04-13 18:01:39 +08:00
if_promisc.c first draft 2022-04-13 18:01:39 +08:00
in.h first draft 2022-04-13 18:01:39 +08:00
INSTALL first draft 2022-04-13 18:01:39 +08:00
ip_opt_build.c first draft 2022-04-13 18:01:39 +08:00
KNOWN-BUGS first draft 2022-04-13 18:01:39 +08:00
libars.a first draft 2022-04-13 18:01:39 +08:00
libpcap_stuff.c first draft 2022-04-13 18:01:39 +08:00
linux_sockpacket.c first draft 2022-04-13 18:01:39 +08:00
listen.c first draft 2022-04-13 18:01:39 +08:00
logicmp.c first draft 2022-04-13 18:01:39 +08:00
main.c first draft 2022-04-13 18:01:39 +08:00
Makefile first draft 2022-04-13 18:01:39 +08:00
Makefile.in first draft 2022-04-13 18:01:39 +08:00
memlock.c first draft 2022-04-13 18:01:39 +08:00
memlockall.c first draft 2022-04-13 18:01:39 +08:00
memstr.c first draft 2022-04-13 18:01:39 +08:00
memunlock.c first draft 2022-04-13 18:01:39 +08:00
memunlockall.c first draft 2022-04-13 18:01:39 +08:00
NEWS first draft 2022-04-13 18:01:39 +08:00
opensockraw.c first draft 2022-04-13 18:01:39 +08:00
parseoptions.c first draft 2022-04-13 18:01:39 +08:00
random6.c first draft 2022-04-13 18:01:39 +08:00
random.c first draft 2022-04-13 18:01:39 +08:00
README first draft 2022-04-13 18:01:39 +08:00
README.md Update README.md 2022-06-07 10:23:34 +08:00
release.h first draft 2022-04-13 18:01:39 +08:00
relid.c first draft 2022-04-13 18:01:39 +08:00
resolve.c first draft 2022-04-13 18:01:39 +08:00
rtt.c first draft 2022-04-13 18:01:39 +08:00
scan.c first draft 2022-04-13 18:01:39 +08:00
send.c first draft 2022-04-13 18:01:39 +08:00
sendhcmp.c first draft 2022-04-13 18:01:39 +08:00
sendicmp6.c first draft 2022-04-13 18:01:39 +08:00
sendicmp.c first draft 2022-04-13 18:01:39 +08:00
sendip6.c first draft 2022-04-13 18:01:39 +08:00
sendip_handler.c first draft 2022-04-13 18:01:39 +08:00
sendip.c first draft 2022-04-13 18:01:39 +08:00
sendrawip.c first draft 2022-04-13 18:01:39 +08:00
sendtcp.c first draft 2022-04-13 18:01:39 +08:00
sendudp.c first draft 2022-04-13 18:01:39 +08:00
signal.c first draft 2022-04-13 18:01:39 +08:00
sockopt.c first draft 2022-04-13 18:01:39 +08:00
split.c first draft 2022-04-13 18:01:39 +08:00
statistics.c first draft 2022-04-13 18:01:39 +08:00
strlcpy.c first draft 2022-04-13 18:01:39 +08:00
systype.h first draft 2022-04-13 18:01:39 +08:00
TODO first draft 2022-04-13 18:01:39 +08:00
usage.c first draft 2022-04-13 18:01:39 +08:00
version.c first draft 2022-04-13 18:01:39 +08:00
waitpacket.c first draft 2022-04-13 18:01:39 +08:00

This is regular hping2 with a few extra features:

  • -6 - required for ipv6 destinations
  • --pps
  • --bps - set outgoing pps/bps rates. Return packets are not processed in these modes.
  • -flood-send packets as soon as posible.
  • random source ip and dest ip support ipv6

Example:

root@koszik-vps:~# ./hping6 ns1.atw.hu -6 -2 -p 53 -k  -s 1583 --traceroute
HPING ns1.atw.hu (eth0 2a01:270:0:2::11): udp mode set, 48 headers + 0 data bytes
hop=1 TTL 0 during transit from ip=2a00:1f40:2::1 name=2a00-1f40-2--1.pool6.giganet.hu hoprtt=0.9 ms
hop=2 TTL 0 during transit from ip=2a00:1f40:1:bb00::2:1 name=UNKNOWN hoprtt=1005.7 ms
hop=3 TTL 0 during transit from ip=2001:7f8:35::2:9278:2 name=UNKNOWN hoprtt=2011.2 ms
hop=4 TTL 0 during transit from ip=2a02:730:c:b01:b03:0:1:1 name=UNKNOWN hoprtt=3006.7 ms
hop=5 TTL 0 during transit from ip=2a01:270:c:c04:103::1 name=UNKNOWN hoprtt=4007.1 ms
hop=6 TTL 0 during transit from ip=2a01:270:c:c02:c04::1 name=UNKNOWN hoprtt=5007.7 ms
hop=7 TTL 0 during transit from ip=2a01:270:c:106::42 name=UNKNOWN hoprtt=6007.3 ms
^C
--- ns1.atw.hu hping statistic ---
12 packets transmitted, 7 packets received, 42% packet loss
round-trip min/avg/max = 0.9/3006.7/6007.3 ms

TCP flood attack with random source ip with ipv6:

root@testlab:~# ./hping6 2022:1:1:1::2 -6 --rand-source --flood

`2022:1:1:1::2` is the ipv6 address you want to attack