Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to add scan-characters to the original value

Papasan 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?


Papasan Dec 17, 2019 11:25PM UTC
Sorry for forgetting to write.
This is for active scanning with Extender.

Hannah Law Dec 19, 2019 12:11PM UTC Support Center agent

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


Papa San 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 Law Jan 13, 2020 10:58AM UTC Support Center agent

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


Post Your public answer

Your name
Your email address
Answer