mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 04:52:22 -07:00
code cleanup on all plugins, disabled annoying "Starting new HTTP Connection" log message, added BeefAutorun plugin and beefapi lib
This commit is contained in:
parent
e7cc6316f1
commit
73e7ca2f3d
17 changed files with 409 additions and 240 deletions
|
@ -3,16 +3,19 @@ The base plugin class. This shows the various methods that
|
|||
can get called during the MITM attack.
|
||||
'''
|
||||
|
||||
|
||||
class Plugin(object):
|
||||
name = "Generic plugin"
|
||||
optname = "generic"
|
||||
desc = ""
|
||||
implements = []
|
||||
has_opts = False
|
||||
|
||||
def __init__(self):
|
||||
'''Called on plugin instantiation. Probably don't need this'''
|
||||
pass
|
||||
def initialize(self,options):
|
||||
|
||||
def initialize(self, options):
|
||||
'''Called if plugin is enabled, passed the options namespace'''
|
||||
self.options = options
|
||||
|
||||
|
@ -20,15 +23,15 @@ class Plugin(object):
|
|||
'''Add your options to the options parser'''
|
||||
raise NotImplementedError
|
||||
|
||||
def handleHeader(self,request,key,value):
|
||||
def handleHeader(self, request, key, value):
|
||||
'''Handles all response headers'''
|
||||
raise NotImplementedError
|
||||
|
||||
def connectionMade(self,request):
|
||||
def connectionMade(self, request):
|
||||
'''Handles outgoing request'''
|
||||
raise NotImplementedError
|
||||
|
||||
def handleResponse(self,request,data):
|
||||
|
||||
def handleResponse(self, request, data):
|
||||
'''
|
||||
Handles all non-image responses by default. See Upsidedownternet
|
||||
for how to get images
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue