node-mitm-proxy
node-mitm-proxy copied to clipboard
Node.js Man-in-the-middle http and https proxy
``` $ node simple_processor.js https man-in-the-middle proxy server started on port 8000 http proxy server started on port 8080 ``` ``` $ curl -v -k -x http://localhost:8080 https://www.google.com * Rebuilt...
Can someone with understanding of https and streams explain me whats going on here? https://github.com/horaci/node-mitm-proxy/blob/864c252fce6381d20ff604b1f2e3d61e13ce8f45/proxy.js#L140-L159
Hello horaci! I am migrationBot, an [open-source](https://github.com/blakmatrix/node-migrator-bot) bot, and I'm here to help you migrate your codebase to node v0.8! Did you know that the "sys" module throws an error...
How to implement it? Say, I need to rewrite something in this mitm-proxy and send the traffic to the upstream HTTP proxy. Thanks!
Hi! I am migrationBot Did you know that `path.{exists,existsSync}` was moved to `fs.{exists,existsSync}`, and that `tty.setRawMode(mode)` was moved to `tty.ReadStream#setRawMode()` (i.e. `process.stdin.setRawMode()`) in node v0.8.0? Read more @[API changes between...
How can I edit what server sent ? e.g.: function response_data(data){ data = new Buffer("Test", "binary"); } var processor = function(proxy) { proxy.on("response_data", response_data); }; Doesn't work.
No matter what I set as proxy_write_path, that path is ignored and the default path /temp/proxy is used. I found that the proxyWritter function (proxy_writter.js) doesn't take the path as...
Is it possible to read the request headers before rewriting the url? (Specifically, I'm wanting to look at the referer header before rewriting the urls). Thanks!
I'm having an issue where if an HTTP request is sent to this proxy to it's own IP address or to localhost it goes into an infinite proxy loop. I've...
This isn't really an issue, but I'm wondering if anyone knows if this would be of any use for a transparent proxy.