Created
July 12, 2019 14:03
-
-
Save nvssks/2b6688caa144e301f80a551e03c1c3ce to your computer and use it in GitHub Desktop.
Burp plugin UUID Intruder generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from burp import IBurpExtender | |
from burp import IIntruderPayloadGeneratorFactory | |
from burp import IIntruderPayloadProcessor | |
from burp import IIntruderPayloadGenerator | |
import uuid | |
class BurpExtender(IBurpExtender, IIntruderPayloadGeneratorFactory, IIntruderPayloadProcessor): | |
def registerExtenderCallbacks(self, callbacks): | |
# obtain an extension helpers object | |
self._helpers = callbacks.getHelpers() | |
# set our extension name | |
callbacks.setExtensionName("Custom intruder payloads") | |
# register ourselves as an Intruder payload generator | |
callbacks.registerIntruderPayloadGeneratorFactory(self) | |
# register ourselves as an Intruder payload processor | |
callbacks.registerIntruderPayloadProcessor(self) | |
def getGeneratorName(self): | |
return "UUID Creator" | |
def createNewInstance(self, attack): | |
return IntruderPayloadGenerator() | |
def getProcessorName(self): | |
return "Not Implemented" | |
def processPayload(self, currentPayload, originalPayload, baseValue): | |
print "processPayload Not Implemented" | |
pass | |
# | |
# class to generate payloads from a simple list | |
# | |
class IntruderPayloadGenerator(IIntruderPayloadGenerator): | |
def __init__(self): | |
pass | |
def hasMorePayloads(self): | |
return True | |
def getNextPayload(self, baseValue): | |
return str(uuid.uuid4()) | |
def reset(self): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment