Comments (5)
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.
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.
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.
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.
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)
- Mitmproxy unusably slow with large responses in reverse mode HOT 10
- Transparent mode on Windows Server 2022 (AWS) HOT 4
- mac m1 | protobuf<3.19,>=3.14| only 3 can be used at least 20 HOT 3
- Wireguard mode with MITM with docker container doesn't work HOT 8
- mitmdump crashes on dns requests in reverse proxy mode HOT 2
- Windows MSI installer does not clear old ARP entries on version upgrade
- allow_hosts doesnt work HOT 1
- upstream:https failed HOT 10
- DHCP failure in Local Redirect mode (Windows) HOT 2
- MacOS reduce disk space HOT 4
- support view zstd content on mitmweb HOT 1
- Exiting mitmdump via ctrl+c can "crash" it HOT 3
- Export tab not working on Safari HOT 6
- zstd decompression failure HOT 3
- The CPU of mitmproxy deployed by docker is too high, reaching 100%! HOT 3
- DOC: certificate for IOS emulator entry is useless HOT 1
- log only a part of a request
- mitmproxy works for any known url but not for one and says 502 Bad Gateway Certificate verify failed: unable to get local issuer certificate HOT 2
- BYPASS IDEA FOR REQUESTS FOR PINNED CERTS | [ Android | Iphone ]
- DNS message parsing issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitmproxy.