LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2014, 12:07 AM   #1
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 270

Rep: Reputation: 33
convert pcap file to mitm file format


hello,

i am working with MITM and i met with a requirement of converting pcap, which I got it using tcpdump, into mitm dump format.

does any one know how to do this or any help is appreciated...

thanks.
 
Old 03-04-2014, 04:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
There's quite a few packet capture formats around but I've never heard of a "mitm dump format"...
 
Old 03-05-2014, 03:03 AM   #3
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 270

Original Poster
Rep: Reputation: 33
mitm stands for man it the middle.

using mitmproxy, i can get the complete Layer 7 data, both request and response, in plain text.

for more information you can refer http://mitmproxy.org/
 
Old 03-05-2014, 05:57 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks but I know well what MiTM stands for. Your reply still explain what you'd expect a "mitm dump format" to contain.
 
Old 03-05-2014, 11:22 PM   #5
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 270

Original Poster
Rep: Reputation: 33
mitmproxy has an option to save the traffic. this is the dump i am referring to. this holds the L7 data in plain text.
 
Old 03-07-2014, 01:16 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
pcap format holds all the nfo in whatever unfiltered format it's gleaned from the wire. Wireshark (and possibly its helper apps) may allow you to "massage", report and export data the way you want it. Obviously for decrypting SSL traffic you'd need to have and import the certificate first: see the Wireshark documentation.
*Please note MiTM may have legitimate uses but we aren't able to check if your use is in accordance with local Law, and without unambiguous proof of that I'm rather hesitant to answer more questions.
 
  


Reply

Tags
converter, mitm, pcap file, tcpdump



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert Tcpdump output file to a Pcap format? gabriel01 Linux - Networking 6 11-26-2012 04:50 AM
Convert a Unix file to .xls format. sumitdevbharadwaj Linux - General 6 04-18-2009 12:18 AM
How can I convert a tcpdump file into a friendlier format compubaby Linux - Networking 1 01-21-2009 10:54 AM
Is there a way to convert a PDF file to another format? M$ISBS General 10 05-09-2007 01:43 AM
how to convert pdf file to doc format. thushara Linux - Newbie 3 03-22-2005 06:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration