Added more commands to start applications with mitmproxy preconfigured #6035
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solution I am working on
to get the binary path of browsers I am using
pybrowser
made by roniemartinez. My original plan was to create my own library but since its already i will be using thisChrome
This is already done in mitmproxy
Firefox
There are 2 methods to get firefox I am not sure if second one is good or not
(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\Firefox-*\shell\open\command\')|findstr "default"
then using regex to get path
mkdir %USERPROFILE%\AppData\Local\Mozilla\Certificates
for installing a certificate in Firefox
.pem
has to be copiedhttps://wiki.mozilla.org/CA/AddRootToFirefox#Installing_Certificates_Into_Firefox
cp mitmproxy-ca-cert.pem %USERPROFILE%\AppData\Local\Mozilla\Certificates\mitmproxy-ca-cert.pem
firefox --profile "<custom_pref_folder>/pref"
for firefox profile and proxy setting
https://wiki.mozilla.org/Firefox/CommandLineOptions#-profile_.22profile_path.22
all the steps will spawn a proxy configured firefox
Safari
I don't own a mac so can't do much here
if anyone wants to help it would be really great
Android
I have limited knowledge of android so will do more research
Docker-containers
setup proxy for all containers docs
by having these options in this config
~/.docker/config.json
I have created an addon
docker.py
with 2 commandsdocker.enable
: This will append the proxy object in the config and write it in the filesdocker.disable
: This will remove the proxy object from the config and write the filedocker Image has to be recreated or start new containers so that proxy is being used.
user has to copy the mitm certificate in the
/usr/local/share/ca-certificates/
either manually or via DockerfileChecklist
closes #5247