User Profile
Collapse
-
@zmbd, No, i'm not receiving errors, i'm receiving zeros as the result of timestamps subtraction. In the result I would like to have substraction between ACK and SYN for each HTTP request for server.
I made file with using of tcpdump:
After that I did some HTTP request in my Firefox and after that I madeCode:tcpdump -i eth0 -w mycapture.cap
...Code:tcpdump -i eth0 -w mycapture.cap ^C python parsing.py
Leave a comment:
-
dpkt and parsing of pcap file
I need to calculate delta between SYN and SYN-ACK or ACK packet for each http.uri request.
Why is my code not working for it?
...Code:#!/usr/bin/env python import dpkt def ip_decode(p): return ".".join(["%d" % ord(x) for x in str(p)]) def tcp_flags(flags): ret = '' if flags & dpkt.tcp.TH_FIN: ret = ret
No activity results to display
Show More
Leave a comment: