mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 21:42:17 -07:00
handleStatus() is now hooked through serverResponseStatus, were now able to modify the server response code and message
added the SMBTrap plugin
This commit is contained in:
parent
bdcee18be0
commit
840e202e5b
6 changed files with 36 additions and 2 deletions
|
@ -12,6 +12,7 @@ class Plugin(ConfigWatcher, object):
|
|||
optname = "generic"
|
||||
tree_info = list()
|
||||
desc = ""
|
||||
version = "0.0"
|
||||
has_opts = False
|
||||
|
||||
def initialize(self, options):
|
||||
|
@ -41,6 +42,12 @@ class Plugin(ConfigWatcher, object):
|
|||
'''
|
||||
pass
|
||||
|
||||
def serverResponseStatus(self, request, version, code, message):
|
||||
'''
|
||||
Handles server response HTTP version, code and message
|
||||
'''
|
||||
return (version, code, message)
|
||||
|
||||
def serverResponse(self, response, request, data):
|
||||
'''
|
||||
Handles all non-image responses by default, hooks handleResponse() (See Upsidedownternet for how to get images)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue