Last active
July 31, 2019 10:55
-
-
Save teixeira0xfffff/2ed9152acea792be7dffbf0aa0191b29 to your computer and use it in GitHub Desktop.
Argus/TCPDump/Tshark Date real time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ apt install tcpdump | |
~ apt install argus-client | |
~tcpdump -nn -s0 -rYourdump.pcap -w - |argus -r - -AZJmR -w - |ra -n -Zb -L10 -r - -s +dur +synack +ackdat +swin +dwin +rate +ĺoad +tcprtt +loss +runtime +retrans +sgap +dgap - tcp |xargs -d$'\n' -L1 sh -c 'date "+%d.%m.%Y %T $0"' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#tshark -rsc.cap -Eseparator=, -Tfields -eip.src -etcp.flags.str -eip.dst -etcp.dstport |grep -v ",," |sed 's/"//g;s/[//;s/]//' | sed 's/ /,/g;s/,/:/3' |sed '1i Origen,Flag,Destino,Cant' | ... |jq ' group_by(.Origen)[] | {(.[0].Origen): [.[] | .Destino]}'