-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing dumped file then client-replay #63
Comments
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. |
I tried that too. Same thing. Invalid data format. On Sep 20, 2012, at 9:55 PM, Aldo Cortesi notifications@github.com wrote: Sorry, you can't just edit the mitmdump files by hand. The data segment — |
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. |
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? |
Hi @wimbledon, you can read an existing dump file using Cheers, |
I am using mitmdump to dump some network activity. Then I use textedit on osx to edit then (literally changing one line), but when I try client replay it gives Could not load file: Invalid data format. How do I fix this???? I also tried simple replay w/o editing it and it gives the issue
The text was updated successfully, but these errors were encountered: