Questions tagged [libmproxy]

A python library for implementing powerful interception proxies.

8 questions
22
votes
2 answers

How to avoid the 'tlsv1 alert unknown ca' error in libmproxy?

Currently using libmproxy, which in turn uses telnetlib, to make requests to HTTPS Web pages. However, the following error is raised: Error: [('SSL routines', 'SSL3_READ_BYTES', 'tlsv1 alert unknown ca')] I believe this is related to the inability…
Juan Carlos Coto
  • 11,900
  • 22
  • 62
  • 102
6
votes
4 answers

How do I connect mitmproxy to another proxy outside of my control?

The process would be that the browser send a request to MITMproxy and then generate a request that gets sent to target proxy server which isn't controlled by us. The proxy server would send a response to MITMproxy which would then relay that…
Jonathan
  • 8,453
  • 9
  • 51
  • 74
2
votes
1 answer

Reverse proxy with multiple upstreams

I've set up a virtual machine to redirect port 80 connections to some servers to my mitmproxy instance. Now I wish to set up mitmproxy (or libmproxy) to modify and forward requests to a server of my choosing, depending on the HTTP Host header (and…
user3840170
  • 26,597
  • 4
  • 30
  • 62
2
votes
2 answers

Mitmproxy load and unload scripts with python

I'm a running a proxy as suggested in Mitmproxy github examples: from libmproxy import proxy, flow class MitmProxy(flow.FlowMaster): def run(self): try: flow.FlowMaster.run(self) except KeyboardInterrupt: …
Urban48
  • 1,398
  • 1
  • 13
  • 26
2
votes
1 answer

How to handle https traffic using libmproxy?

I want to implement a proxy server that intercepts both http and https requests. I came across libmproxy (http://mitmproxy.org/doc/scripting/libmproxy.html) that it is SSL-capable. I start with this simplest proxy that just prints the headers of all…
mangpo
  • 111
  • 8
1
vote
2 answers

libmproxy issue - 'module' object has no attribute 'TLSv1_1_METHOD'

I tried to use Libmproxy with my linux RHEL 7, got the following exception: from libmproxy import controller, proxy File "/usr/lib/python2.7/site-packages/libmproxy/proxy/__init__.py", line 1, in from .primitives import * File…
Dan
  • 829
  • 2
  • 12
  • 23
0
votes
1 answer

libmproxy - how to load requests asynchronously?

I'm wondering how can I load requests asynchronously with libmproxy or mitmproxy. My code looks like this: class StickyMaster(controller.Master): def __init__(self): ...... def handle_request(self): .... def…
Dan
  • 829
  • 2
  • 12
  • 23
-1
votes
1 answer

libmproxy and mitmproxy documentation

I am new to the mitmproxy world. I need to write a python script that would log all the requests made from a certain app on Genymotion emulator. Now, I learned that mitmproxy can be helpful for my requirement. So I have successfully set up mitmproxy…
qre0ct
  • 5,680
  • 10
  • 50
  • 86