Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save soufianetahiri/f317acef28c14a0cddfdac3ea5836751 to your computer and use it in GitHub Desktop.
Save soufianetahiri/f317acef28c14a0cddfdac3ea5836751 to your computer and use it in GitHub Desktop.
Burp plugin UUID Intruder generator
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