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
/* | |
Code borrowed from the following library and modified to work with crypto-js (for use in postman): | |
https://github.com/bellstrand/totp-generator/blob/master/LICENSE | |
Install requirements: | |
npm i crypto-js | |
Run: | |
node otp_script.js {{GOOGLE AUTH KEY}} | |
*/ |
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() |
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 ISessionHandlingAction | |
from burp import IBurpExtenderCallbacks | |
class BurpExtender(IBurpExtender, ISessionHandlingAction): | |
def registerExtenderCallbacks(self, callbacks): | |
self._callbacks = callbacks | |
self._helpers = self._callbacks.getHelpers() | |
self._callbacks.setExtensionName('CSRF Body Syncro') | |
self._callbacks.registerSessionHandlingAction(self) |
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 | |
import random | |
import string | |
#Java Imports | |
from javax.crypto import Cipher | |
from javax.crypto.spec import SecretKeySpec | |
#Imports for run external | |
import subprocess |
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 IHttpListener | |
from burp import ISessionHandlingAction | |
from burp import IBurpExtender | |
from burp import ISessionHandlingAction | |
from burp import IBurpExtenderCallbacks | |
__DEBUG__ = False |
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
# XXX: Example / Untested code snippet | |
from burp import IBurpExtender | |
from burp import ISessionHandlingAction | |
from burp import ICookie | |
import re | |
__DEBUG__ = True | |
class Cookie(ICookie): |
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 ISessionHandlingAction | |
from burp import IBurpExtenderCallbacks | |
class BurpExtender(IBurpExtender, ISessionHandlingAction): | |
def registerExtenderCallbacks(self, callbacks): | |
self._callbacks = callbacks | |
self._helpers = self._callbacks.getHelpers() | |
self._callbacks.setExtensionName('CSRF Syncro Header') | |
self._callbacks.registerSessionHandlingAction(self) |
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 IHttpListener | |
from burp import ISessionHandlingAction | |
#Global replace: This will replace the "lookfor_regex" with the string in "replace_with" | |
#Intercepts all messages except __IGNORE_FLAG__ (typically Proxy) TODO: Fix Flag checks | |
''' | |
TOOL_COMPARER: Flag used to identify the Burp Comparer tool. | |
TOOL_DECODER: Flag used to identify the Burp Decoder tool. | |
TOOL_EXTENDER: Flag used to identify the Burp Extender tool. | |
TOOL_INTRUDER: Flag used to identify the Burp Intruder tool. |