Permalink
Commits on Oct 25, 2013
  1. Fixed httpVersion field for responses

    Andrew Fleenor
    Andrew Fleenor committed Oct 25, 2013
    previously, only fixed for requests.
Commits on Mar 5, 2013
Commits on Dec 14, 2012
  1. Merge remote branch 'origin/master'

    Andrew Fleenor
    Andrew Fleenor committed Dec 14, 2012
    Update test cases to handle new sorting.
Commits on Nov 10, 2012
  1. Make sure headers and query parameters are sorted

    Andrew Fleenor
    Andrew Fleenor committed Nov 10, 2012
    Before, they would not have been sorted by the json module,
    since they had already been put in a list before it sees them.
    They would have been randomized once hash randomization kicks in in
    a modern version of python, and they need to stay sorted so the
    tests work.
Commits on Aug 21, 2012
  1. Correctly handle requests with no response.

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
    Fix ancient variable misspelling, which revealed a bunch of other
    bugs when response is None. Add test cases.
  2. Economize on memory in http, and related changes.

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
    Refactor dpkt_http_replacement to only use two StringIO's. Move
    print_rusage to pcaputil.
  3. Add log file option to main.py

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
  4. Doc punctuation, get rid of import * in tcp/flow.py

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
  5. Fix the memory error fix

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
    Drop tcpdir.data AFTER all http messages have been constructed
    from it.
  6. Expose raw bytes of HTTP message, including header.

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
  7. Handle multiple flows on the same socket.

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
  8. Accept invalid media types with just a warning.

    Andrew Fleenor
    Andrew Fleenor committed Aug 21, 2012
Commits on Jul 17, 2012
  1. Wide-ranging cleanup

    Andrew Fleenor
    Andrew Fleenor committed Jul 17, 2012
    Line-length <= 80 chars, blank lines between methods,
    other whitespace changes, rephrase some comments,
    s/"/'/, re-order some imports, etc.
  2. add EasyParsePcap function to handle boilerplate.

    Andrew Fleenor
    Andrew Fleenor committed Jul 17, 2012
  3. Fix some relative imports for libification

    Andrew Fleenor
    Andrew Fleenor committed Jul 17, 2012
  4. Move most pcap2har .py files into a library directory

    Andrew Fleenor
    Andrew Fleenor committed Jul 17, 2012
Commits on Jul 16, 2012
  1. Extra fixes to merged stuff from mdwelsh and ethankb

    Andrew Fleenor
    Andrew Fleenor committed Jul 16, 2012
  2. Merge in fixes and tweaks to Matt's changes from Google.

    Andrew Fleenor
    Andrew Fleenor committed Jul 16, 2012
Commits on Jul 13, 2012
  1. Merge pull request #4 from ethankb/minor_fixes

    Andrew Fleenor
    Andrew Fleenor committed Jul 13, 2012
    Basically, just handling malformed content-length headers.
    Instead of ethankb's exact solution, just catch ValueError
    and log the invalid values.
  2. Merge changes from Matt Welsh and Ethan Katz-Basset

    Andrew Fleenor
    Andrew Fleenor committed Jul 13, 2012
  3. Merge pull request #4 from ethankb/minor_fixes

    Andrew Fleenor
    Andrew Fleenor committed Jul 13, 2012
    Basically, just handling malformed content-length headers.
    Instead of ethankb's exact solution, just catch ValueError
    and log the invalid values.
Commits on Jul 12, 2012
  1. Ethan had the right idea about logging in tcp/direction.py

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
    replace reference to logging with log, and remove import logging
    at top.
  2. Fix stale reference to debug_pkt_count in pcap.py

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
  3. Handle empty content type

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
  4. Fix bad array check in dpkt_http_replacement.py

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
    Thanks to Ethan Katz-Basset <ethankb@google.com>
  5. Allow semicolons on end of media type

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
    Also remove bad import from tcp/direction.py
  6. Another typo from Matt Welsh: reponse is not a word.

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
  7. Fix name typos in tcp/packet.py: s/TCPPacket/Packet

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
  8. Make dependency on socket.inet_ntoa

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
    Also delete useless vim swap file.
  9. Two small bugfixes:

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
      - Fix pad_missing_data when no chunks in a given flow
      - Allow ModifiedReader to read from a cStringIO object
    
    Conflicts:
    	tcp/direction.py
  10. Options added to pad missing TCP data (making HTTP parsing more

    Matt Welsh Andrew Fleenor
    Matt Welsh authored and Andrew Fleenor committed Sep 2, 2011
    robust), and allowing for a mismatch in HTTP response sizes and the
    Content-Length header.
    
    Conflicts:
    	main.py
    	settings.py
    	tcp/direction.py
    
    Andrew: re-arranged for PEP8, minor touchups.
  11. Fix tcp.Direction assertion failure

    Andrew Fleenor
    Andrew Fleenor committed Jul 12, 2012
    Remove useless asserts from packet-bridging-the-gap scenario. It
    turns out to be possible for the second chunk to merge onto the
    new one without adding any new data, if it's completely inside
    the newly merged chunk in front of it. The other condition is
    impossible because of the sorting invariant (I think).
    
    Also, somewhere in the merging, clear_data didn't get the news
    that self.chunks is a SortedCollection and you can't del[] it.
Commits on Jul 11, 2012
  1. Be smarter about message body presence/absence

    Andrew Fleenor
    Andrew Fleenor committed Jul 11, 2012
    Be sure not to process bodies for 204 and 304 responses,
    and don't bother handling pipelining for HTTP/1.0 without
    a content-length. (Strictly, 1.0 should never pipeline, but
    IIS at least does this, but it gives a content-length so
    we handle it just fine). This fix results in more accurate
    processing of out-of-order.pcap, so the test har was updated.
    There's also a couple useful debugging classes in pcaputil.
Commits on Jul 10, 2012
  1. Add Google to list of copyright holders in LICENSE

    Andrew Fleenor
    Andrew Fleenor committed Jul 10, 2012
  2. Merge changes from Google

    Andrew Fleenor
    Andrew Fleenor committed Jul 10, 2012
    Add option to drop http response bodies, miscellaneous re-
    arrangements, update regression tests, and use UTC time.
    Also, tcp.Direction is more robust to out-of-order packets.