Extract files from HTTP2 (HTTP 2.0) pcaps
This code uses the inflator code from the nghttp2. Currently it can save the files that are downloaded from the server.
make clean; make
If you want a debug version then you can pass a DEBUG flag to it.
make clean; make DEBUG=1
Once compiled, you can pass the pcap file path to extract the files. Currently, it will create a "output/" folder under current working directory and create the files under that. Use it with care. Currently i haven't implemented few restriction that is needed.
~/http2fileextractor$ ./http2fileextractor pcaps/capture.pcap
Using this pcap file pcaps/capture.pcap
Writing this stream 13 data for http req http://192.168.100.10/ to file 192.168.100.10/index.html
- Cannot handle missing packets.
- Cannot handle packet resend
- Doesn't do packet reordering.