Reputation: 2776
I'm trying to have mitmproxy
do the tls_passthrough
but I get the /usr/local/bin/mitmproxy: No such script
I'm running the command sudo mitmproxy --set stream_large_bodies=1 --set block_global=false --showhost -s tls_passthrough.py
System Information
sudo mitmproxy --version
Mitmproxy: 4.0.4
Python: 3.6.8
OpenSSL: OpenSSL 1.1.1 11 Sep 2018
Platform: Linux-4.15.0-58-generic-x86_64-with-Ubuntu-18.04-bionic
Upvotes: 1
Views: 3280
Reputation: 28948
I guess mitmdump
doesn't support relative paths. I got the full path of the script, e.g. /workspace/example/scripts/add_cargo_auth_header.py
:
mitmdump -s /workspace/example/scripts/add_cargo_auth_header.py
That worked for me.
Upvotes: 0
Reputation: 3249
If you typo: N.B. ERROR [missing leading "-" from "--set"]
mitmproxy -set upstream_bind_address=docs.mitmproxy.org -s tls_passthrough.py
will produce the, (slightly misleading error):
/usr/local/bin/mitmdump: No such script
when there is nothing wrong with the script.
Upvotes: 1
Reputation: 14338
I have encounter same problem.
solution: makesure your xxx.py
in mitmdump -s xxx.py
path is correct
reason: the script in No such script
means the script file
= normally is xxx.py
you here: makesure the current path of running this your mitmproxy -s tls_passthrough.py
can find the file tls_passthrough.py
you can check it by:
pwd
ls -l
make sure can find tls_passthrough.py
file.
Upvotes: 1
Reputation: 171
You can find your the path with this.
which mitmproxy
and you can move that to /usr/local/bin/
Upvotes: 0