PCAP Files

H

Hasil Sharma

I m having network dumps in the form of pcap files and I want to extract the html,css, image files etc etc all that can be extracted from those pcap files , can anyone please tell me how to accomplish such a task in python ?
 
C

Cameron Simpson

| I m having network dumps in the form of pcap files and I want to
| extract the html,css, image files etc etc all that can be extracted
| from those pcap files , can anyone please tell me how to accomplish
| such a task in python ?

I would reassemble the TCP packets into data streams and then handle
them to an HTTP or MIME parser. For the first part, have you tried
a google search? Like this:

https://www.google.com.au/search?q=reassemble+pcap+files+into+tcp+streams

Looks promising, particularly the "streams" and "tcpreplay" stuff.
Or even search the Python Package Index for "pcap", even indirectly via google:

https://www.google.com.au/search?q=...-GB:official&client=firefox-beta&channel=fflb

Then just handle the data streams to a normal Python MIME parser
to figure out what's in them.

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top