Replay Traffic from Tcpdump HD

16.12.2013
Tutorial on Replay traffic from Tcpdump Reference: http://rhelmer.org/blog/capture-and-replay-http-post-using-tcpdump Capture tcpdump, the following command captures the traffic. make sure the tcpdump, tcpslice and tcptrace are installed in your system. sudo /usr/sbin/tcpdump -s0 -nw tcpdumpfile.dmp dst port 8180 1) Create a pcap file from the tcpdump file Generate and store the pcap file under "/tmp/tcpreplay/pcap" /usr/sbin/tcpslice -w /tmp/tcpreplay/pcap/full.pcap /tmp/tcpreplay/tcpdumpfile.dmp 2) Create individual http post requests from the pcap file Generate and store http request files under "/tmp/pcap/httprequests" /usr/local/bin/tcptrace ---output_dir="/tmp/tcpreplay/pcap/httprequests/" -e /tmp/tcpreplay/pcap/full.pcap 3) Send the http request to the test host cat ak2al_contents.dat | nc host port

Похожие видео

Показать еще