hping3 - how to remove DUP! column from output?
I would like to do ping on TCP port via hping3 with below command. But in some output I got "DUP!" extra column, which put into the trouble. I am doing some awk commands and this extra columns give me mess in my current approach to usual output (where I don't have "DUP!"). Do you know any option, which can turn this off? I have gone through hping3 manual and I didn't find anything, which can be connected with this. What can help in this case?
unbuffer hping3 -S -p 443 10.1.4.30 | while read pong; do echo "$(date): $pong"; done
Fri May 10 05:25:04 CEST 2024: len=46 ip=10.1.50.62 ttl=64 DF id=0 sport=443 flags=RA seq=237971 win=0 rtt=11.1 ms
Fri May 10 05:25:03 CEST 2024: len=46 ip=10.1.50.62 ttl=64 DF id=0 sport=443 flags=RA seq=237970 win=0 rtt=5.1 ms
Wed May 8 09:16:53 CEST 2024: DUP! len=46 ip=10.1.4.200 ttl=126 DF id=25286 sport=445 flags=SA seq=79253 win=8192 rtt=3003.1 ms
Wed May 8 10:42:11 CEST 2024: DUP! len=46 ip=10.1.4.200 ttl=126 DF id=30404 sport=445 flags=SA seq=84370 win=8192 rtt=3003.5 ms
Thu May 9 00:48:43 CEST 2024: DUP! len=46 ip=10.1.4.200 ttl=126 DF id=15643 sport=445 flags=SA seq=135155 win=8192 rtt=3303.8 ms
|