-
Notifications
You must be signed in to change notification settings - Fork 28
/
AutorizePro.py
42 lines (28 loc) · 1.03 KB
/
AutorizePro.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
# coding: utf-8
"""
@File : Autorize.py
@Author : sule01u
@Date : 2024/10/10
@Desc :
"""
from burp import IBurpExtender, IHttpListener, IProxyListener
from authorization.authorization import handle_message
from helpers.initiator import Initiator
from helpers.filters import handle_proxy_message
class BurpExtender(IBurpExtender, IHttpListener, IProxyListener):
def registerExtenderCallbacks(self, callbacks):
self._callbacks = callbacks
self._helpers = callbacks.getHelpers()
callbacks.setExtensionName("AutorizePro")
initiator = Initiator(self)
initiator.init_constants()
initiator.draw_all()
initiator.implement_all()
initiator.init_ui()
initiator.print_welcome_message()
return
def processHttpMessage(self, toolFlag, messageIsRequest, messageInfo):
handle_message(self, toolFlag, messageIsRequest, messageInfo)
def processProxyMessage(self, messageIsRequest, message):
handle_proxy_message(self, message)