mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 13:02:24 -07:00
fixed logging in responder and some plugins
This commit is contained in:
parent
5ce49d2ff2
commit
5b0a15ea56
10 changed files with 36 additions and 14 deletions
|
@ -21,6 +21,17 @@
|
|||
|
||||
import os
|
||||
import random
|
||||
import linecache
|
||||
import sys
|
||||
|
||||
def PrintException():
|
||||
exc_type, exc_obj, tb = sys.exc_info()
|
||||
f = tb.tb_frame
|
||||
lineno = tb.tb_lineno
|
||||
filename = f.f_code.co_filename
|
||||
linecache.checkcache(filename)
|
||||
line = linecache.getline(filename, lineno, f.f_globals)
|
||||
return '({}, LINE {} "{}"): {}'.format(filename, lineno, line.strip(), exc_obj)
|
||||
|
||||
class SystemConfig:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue