Proxy implementation for capturing browser generated traffic #509
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.
How to install certificate
Mac OS
Make sure the mitmproxy module is installed. Then run this command
Ubuntu - Chrome
Open Chrome Browser and Navigate to

chrome://settings/certificatesClick on the
Authorities taband then theImportbuttonSelect

mitmproxy-ca-cert.crtfile in your~/.mitmproxydirectoryCheck all the boxes and click OK

Verify the certificate has been added

Windows
Alternative
User ZeuZ testcase to run the proxy and visit
mitm.itwebsite with go to link action in debug mode. Download the cer file for windowsDouble-click the P12 file to start the import wizard.

Select a certificate store location. This determines who will trust the certificate – only the current Windows user or everyone on the machine. Click Next.

Click Next again.
Leave Password blank and click Next.

Select Place all certificates in the following store, then click Browse, and select Trusted Root Certification Authorities.

Click OK and Next.

7.Click Finish.
8.Click Yes to confirm the warning dialog.
PR Type
Feature
PR Checklist
Overview
Added a new action should start a proxy server. By default the port is 8080 which user can change.
And for stopping the server
Use the arguments in the
go to linkaction to make the request go through the proxy serverAn output storing in the AutomationLog folder or the log file of the RunID will hold the information of the traffics. The exact filepath (during debug) can be found in the
captured_network_file_pathkey of the server variable (the value of proxy server parameter in the action)Test Cases