The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

"Automation using Burp with Selenium"

Aditya | Last updated: Jul 26, 2018 10:26PM UTC

Hello Everyone, I am working on automation in Burp via selenium. I am accessing Selenium Server and Burp Suite on Linux machine through Pycharm. I am not able to see the Selenium’s traffic going through Burp proxy in HTTP history. How can I get this problem resolved? I configured proxy settings in test scripts but that didn’t resolve the problem. Please let me know if you need any other details. Thanks for your help. Thanks, Aditya

Liam, PortSwigger Agent | Last updated: Jul 27, 2018 07:16AM UTC

Have you checked out our Support Centre article for Using Burp with Selenium? - https://support.portswigger.net/customer/portal/articles/2669413-using-burp-with-selenium

Burp User | Last updated: Jul 27, 2018 01:53PM UTC

Hello Liam, Thanks for the prompt response. I had gone through this article when I started working on this assignment. It was good starting pointer for me. However, it will be great if I get to see POC/demo related to same? Thanks, Aditya

Burp User | Last updated: Jul 27, 2018 02:22PM UTC

I can see the geckodriver (Firefox driver) traffic in the HTTP history, but rest all traffic is getting shown for few seconds (less than 1 second time) and then it is getting hidden. I am not sure whether I following the correct approach. Sample HTTP History when I run the test script. Everything is getting blocked when I see this. Note: ocsp.digicert.com is not the intended site I want to reach out to. POST / HTTP/1.1 Host: ocsp.digicert.com User-Agent: Mozilla/5.0 (X11; Ubuntu; linux x86_64; rv:43.0.0) Gecko/20100101 Firefox/43.0 Accept: text/html Connection-Type: application/ocsp-request Thanks, Aditya

Burp User | Last updated: Jul 27, 2018 03:36PM UTC

Hello Everyone, I added following lines of code in my test script and it worked for me. profile.set_preference("network.proxy.ssl", "127.0.0.1") profile.set_preference("network.proxy.ssl_port", 8080) Thanks Liam for the help. Can I get Rest API documentation link. Here, I am trying to access burp suite functionalities within Selenium using rest api. Thanks, Aditya

Liam, PortSwigger Agent | Last updated: Jul 30, 2018 07:59AM UTC

Is this what you are looking for? - https://portswigger.net/burp/extender/api/

Burp User | Last updated: Jul 30, 2018 09:14PM UTC

Thank you the documentation link. I am seeing the following issue: Failed to create Burp project: NullPointerException (v1.7.21) I am not able to open the instance of Burp Suite from the terminal.

Liam, PortSwigger Agent | Last updated: Jul 31, 2018 06:48AM UTC

Could you try updating to the latest version of Burp Suite and and confirming that the behavior persists. Additionally, could you provide us with the steps to reproduce the error?

Burp User | Last updated: Aug 01, 2018 05:32PM UTC

I am able to resolve this issue. I am facing one more challenge right now. My requirement is turn on and off intercept using python code. Will you please help me with some live demo or link.

PortSwigger Agent | Last updated: Aug 02, 2018 11:02AM UTC

Hi Aditya, Good to hear you got that resolved. You can control interception from Python using setProxyInterceptionEnabled() which is on IBurpExtenderCallbacks. More information here: - https://portswigger.net/burp/extender/api/burp/iburpextendercallbacks.html Please let us know if you need any further assistance.

Anurag | Last updated: Feb 17, 2022 10:31AM UTC

Is there any Package available for C# through which I can control interception and passive/active scanning?

Uthman, PortSwigger Agent | Last updated: Feb 17, 2022 12:36PM UTC

Rocky | Last updated: Feb 24, 2023 06:51AM UTC