wireshark
Capture packets in windows to port 1234
tshark.exe -f "tcp dst port 1234 or tcp src port 1234" -T fields -e frame.time -e ip.src -e ip.dst -e tcp.srcport -e tcp.dstport -e data.len -e data.text -e data.data -i 2 > log.txt
tshark.exe -f "tcp dst port 1234 or tcp src port 1234" -T fields -e frame.time -e ip.src -e ip.dst -e tcp.srcport -e tcp.dstport -e data.len -e data.text -e data.data -i 2 > log.txt
wireshark (last edited 2013-10-23 11:44:45 by bl13-225-208)