Support Center

Burp Community

See what our users are saying about Burp Suite:

How do I?

New Post View All

Feature Requests

New Post View All

Burp Extensions

New Post View All

Bug Reports

New Post View All
Documentation

Burp Suite Documentation

Take a look at our Documentation section for full details about every Burp Suite tool, function and configuration option.

Full Documentation Contents Burp Projects
Suite Functions Burp Tools
Options Using Burp Suite
Extensibility

Burp Extender

Burp Extender lets you extend the functionality of Burp Suite in numerous ways.

Extensions can be written in Java, Python or Ruby.

API documentation Writing your first Burp Suite extension
Sample extensions View community discussions about Extensibility
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

extract all parameters in request before scanner starts

Moein Feb 28, 2017 05:40AM UTC

I need to extract all parameters in request before scanner starts.
I know that "doActiveScan" of IScannerCheck interface finds parameters, but parameter names can be extracted after active the scanner starts working.
but I need parameter names before scanner starts, so I can select which parameters to scan.
I think it can be done with IScannerInsertionPointProvider, but I don't know how to do it.


Dafydd Stuttard Feb 28, 2017 09:55AM UTC Support Center agent

Yes, you can do this with IScannerInsertionPointProvider. Have a look at the following sample extension for more details:

https://github.com/PortSwigger/example-custom-scan-insertion-points


Moein Fatehi Mar 01, 2017 07:40AM UTC
it has get "one" parameter which is known from past.
but I want to extract "ALL" parameters of any unknown request.
I don't have pre-knowledge about the request and parameters.

Dafydd Stuttard Mar 01, 2017 08:38AM UTC Support Center agent

You can use the following API to analyze a request and obtain its parameters:

https://portswigger.net/burp/extender/api/burp/IExtensionHelpers.html#analyzeRequest(burp.IHttpService,%20byte[])


Moein Fatehi Mar 04, 2017 08:10AM UTC
it doesn't return all parameters which active scanner does.
if you give a POST request to it, it just returns POST parameters in data segment.
if you give a GET request, it just returns cookie parameters.
but active scanner also uses these parameters:
*referrer, user Agent, Name_URL, Name_BODY
--------
I want all these parameters.

Dafydd Stuttard Mar 08, 2017 03:07PM UTC Support Center agent

The analyzeRequest API does handle all parameters in the URL query string, cookies, and message body (if URL-encoded format).

It doesn’t give you the additional insertion points that the scanner uses, such as Referer header, or additional parameter name.


Post Your public answer

Your name
Your email address
Answer