Skip to content

Instantly share code, notes, and snippets.

@pajswigger
Created April 19, 2018 09:50
Show Gist options
  • Save pajswigger/b4c225f58d86706a62b3f2eaaf72e7c2 to your computer and use it in GitHub Desktop.
Save pajswigger/b4c225f58d86706a62b3f2eaaf72e7c2 to your computer and use it in GitHub Desktop.
from burp import IBurpExtender, IHttpListener
import threading, time
class BurpExtender(IBurpExtender, IHttpListener):
count = 0
lock = threading.Lock()
def registerExtenderCallbacks(self, callbacks):
self.callbacks = callbacks
callbacks.registerHttpListener(self)
def processHttpMessage(self, toolFlag, messageIsRequest, message):
if messageIsRequest and toolFlag == self.callbacks.TOOL_INTRUDER:
with self.lock:
self.count += 1
if self.count == 3:
self.count = 0
time.sleep(60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment