This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:tcpdump [2022/03/31 14:15] – jotasandoku | network_stuff:tcpdump [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| **__TCPDUMP NOTES__** \\ | **__TCPDUMP NOTES__** \\ | ||
| + | [[https:// | ||
| To write the tcpdump output in pcap format. If we Add capital W, that means rotate: | To write the tcpdump output in pcap format. If we Add capital W, that means rotate: | ||
| tcpdump -ni eth0 -s0 -w / | tcpdump -ni eth0 -s0 -w / | ||
| tcpdump -ni eth0 -w / | tcpdump -ni eth0 -w / | ||
| tcpdump -nni bond1 -w / | tcpdump -nni bond1 -w / | ||
| + | tcpdump -e -r sflow_2022_new.pcap | ||
| After capture, transfer example: | After capture, transfer example: | ||
| Line 24: | Line 25: | ||
| tcpdump -nni any portrange 60000-60100 | tcpdump -nni any portrange 60000-60100 | ||
| tcpdump -vv -e -nni any ether proto 0x8809 | tcpdump -vv -e -nni any ether proto 0x8809 | ||
| + | tcpdump -n -i eth0 -A -x dst port 443 and greater 100 # packet lenght | ||
| Line 93: | Line 95: | ||
| ---- | ---- | ||
| - | + | **LIBCAP RELATED UTILITIES** | |
| + | \\ | ||
| + | tcprewrite -C --dlt=enet --enet-smac=3a: | ||
| + | tcprewrite -C --dstipmap=192.168.97.255/ | ||
| + | tcpreplay -i eth0 --loop 0 xxx.pcap | ||
| + | [[https:// | ||