cmd

command
v0.0.0-...-ff9824b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

The hpinggo program implements the hping like packet generator and analyzer.

scan mode usage: sudo hpinggo -target www.google.com -scan 'all' -i 1us -S sudo hpinggo -target www.google.com -scan 'known,!80' -i 1ms -S sudo hpinggo -target www.yahoo.com -scan '0-70,80,443' -I wlp3s0 -i 1ms -S -logtostderr sudo hpinggo -target www.yahoo.com -scan '0-70,80,443' -ipv6 -i 1ms -S

stream mode usage example:

No payload and increment destination port unconditionally(-p ++79): sudo hpinggo -target www.google.com -s 5432 -p ++79 -S -c 2 sudo /usr/local/go/bin/go run cmd/hpinggo.go -target www.google.com -s 5432 -p ++79 -S -c 2

With payload (-d) and increment destination port upon response (-p +80): sudo hpinggo -target www.google.com -s 5432 -p +80 -S -c 2 -d 512

for testing with github.com/google/gopacket/reassembly sudo /usr/local/go/bin/go run cmd/hpinggo.go -target 192.168.0.1 -s 2000 -p +20005 -S -c 3

Trace route usage example

TCP with jumbo packet: sudo /usr/local/go/bin/go run cmd/hpinggo.go -s 5432 -p ++79 -traceroute -S -c 15 --keepttl=false -d 2500 -target www.google.com

UDP: sudo hpinggo -target www.google.com -d 128 -udp -p +1234 -traceroute -c 20 sudo hpinggo -target www.google.com -d 128 -udp -p +1234 -traceroute -ttl 5 --keepttl sudo hpinggo -target www.google.com -d 128 -udp -p +1234 -traceroute -ttl 5 --keepttl -ipv6 sudo hpinggo -target www.google.com -d 128 -udp -p +1234 -traceroute -ipv6 -c 15

ICMP sudo /usr/local/go/bin/go run cmd/hpinggo.go -target www.google.com -d 128 -icmp -c 20 -traceroute sudo hpinggo -target www.google.com -d 128 -c 15 -traceroute -ipv6 -icmp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL