Burp Suite User Forum

Create new post

How to add scan-characters to the original value

Papasan | Last updated: Dec 17, 2019 11:20PM UTC

Question for you how to make Extender with python. I create a python Extender based on the sample code on the official homepage, but the original value is overwritten. I want to add signatures the original value. How I do it?

Burp User | Last updated: Dec 17, 2019 11:25PM UTC

Sorry for forgetting to write. This is for active scanning with Extender.

Hannah, PortSwigger Agent | Last updated: Dec 18, 2019 11:29AM UTC

Can you clarify what you mean by "the original value is overwritten"? Were you using the code found here: https://portswigger.net/burp/extender/writing-your-first-burp-suite-extension Or were you basing your extension off of a sample extension found here: https://portswigger.net/burp/extender#SampleExtensions

Burp User | Last updated: Jan 11, 2020 07:41AM UTC

I want to keep base value and add signatures in ActiveScan with Python. Like this A=1 ==> A=1signature But your sample extension is only replace. Like this A=1 ==> A=signature Could you tell me python code.

Hannah, PortSwigger Agent | Last updated: Jan 13, 2020 09:57AM UTC

If you tell me which sample extension you are basing your code off of, I may be able to help more. Are you able to concatenate your signature value onto the end? It appears that in Python, strings are immutable so you would have to assign it to a new variable. For example B=A+signature There is a helpful guide on string concatenation in Python here: https://realpython.com/python-string-split-concatenate-join/#concatenating-and-joining-strings

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.