Giter VIP home page Giter VIP logo

Comments (5)

cortesi avatar cortesi commented on May 22, 2024

Sorry, you can't just edit the mitmdump files by hand. The data segment headers encode the length of the following data chunk. If you change a portion of it, and change the length, you've corrupted the file. So please treat the data dumps as binary data, just like a pcap dump. If you need to, you can edit the dump using mitmproxy, by reading the dump in, changing it in the interface, and then writing it to disk again.

from mitmproxy.

virindh avatar virindh commented on May 22, 2024

I tried that too. Same thing. Invalid data format.

On Sep 20, 2012, at 9:55 PM, Aldo Cortesi [email protected] wrote:

Sorry, you can't just edit the mitmdump files by hand. The data segment
headers encode the length of the following data chunk. If you change a
portion of it, and change the length, you've corrupted the file. So please
treat the data dumps as binary data, just like a pcap dump. If you need to,
you can edit the dump using mitmproxy, by reading the dump in, changing it
in the interface, and then writing it to disk again.


Reply to this email directly or view it on
GitHubhttps://github.com/cortesi/mitmproxy/issues/63#issuecomment-8751545.

from mitmproxy.

cortesi avatar cortesi commented on May 22, 2024

OK. You'll have to give me a lot more information though. First, a step-by-step on how to reproduce the issue. Second, what platform you're running on, what version of mitmproxy you're using, etc.

from mitmproxy.

wimbledon avatar wimbledon commented on May 22, 2024

I know how to modify the flow in mitmproxy, however, how do I read in the flow file, edit it and save it using libmproxy?

from mitmproxy.

mhils avatar mhils commented on May 22, 2024

Hi @wimbledon,

you can read an existing dump file using mitmproxy -r dumpfile (optionall with -n). Having modified the flows, you can save them to a new file by pressing w -> a in the flow list.

Cheers,
Max

from mitmproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.