Created
April 19, 2018 09:50
-
-
Save pajswigger/b4c225f58d86706a62b3f2eaaf72e7c2 to your computer and use it in GitHub Desktop.
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, 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