mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-16 10:03:52 -07:00
Added debug logging to ProxyPlugins, it will now print a traceback if errors occur in hooked functions
This commit is contained in:
parent
5d07551a50
commit
dfa9c9d65e
4 changed files with 14 additions and 2 deletions
|
@ -28,6 +28,8 @@ from core.utils import SystemConfig
|
|||
from plugins.plugin import Plugin
|
||||
from plugins.CacheKill import CacheKill
|
||||
|
||||
mitmf_logger = logging.getLogger("mitmf")
|
||||
|
||||
class Inject(CacheKill, Plugin):
|
||||
name = "Inject"
|
||||
optname = "inject"
|
||||
|
|
|
@ -66,4 +66,5 @@ class Upsidedownternet(Plugin):
|
|||
mitmf_logger.info("{} Flipped image".format(request.client.getClientIP()))
|
||||
except Exception as e:
|
||||
mitmf_logger.info("{} Error: {}".format(request.client.getClientIP(), e))
|
||||
|
||||
return {'request': request, 'data': data}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue