mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-08-20 13:33:30 -07:00
Merge 32ab7f367b
into ba0989b677
This commit is contained in:
commit
9368d33661
2 changed files with 40 additions and 22 deletions
|
@ -17,12 +17,13 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
# USA
|
# USA
|
||||||
#
|
#
|
||||||
import pyinotify
|
try:
|
||||||
import threading
|
import pyinotify
|
||||||
from configobj import ConfigObj
|
|
||||||
|
|
||||||
class ConfigWatcher(pyinotify.ProcessEvent, object):
|
import threading
|
||||||
|
from configobj import ConfigObj
|
||||||
|
|
||||||
|
class ConfigWatcher(pyinotify.ProcessEvent, object):
|
||||||
@property
|
@property
|
||||||
def config(self):
|
def config(self):
|
||||||
return ConfigObj("./config/mitmf.conf")
|
return ConfigObj("./config/mitmf.conf")
|
||||||
|
@ -42,3 +43,20 @@ class ConfigWatcher(pyinotify.ProcessEvent, object):
|
||||||
def on_config_change(self):
|
def on_config_change(self):
|
||||||
""" We can subclass this function to do stuff after the config file has been modified"""
|
""" We can subclass this function to do stuff after the config file has been modified"""
|
||||||
pass
|
pass
|
||||||
|
except BaseException:
|
||||||
|
from configobj import ConfigObj
|
||||||
|
|
||||||
|
class ConfigWatcher(object):
|
||||||
|
@property
|
||||||
|
def config(self):
|
||||||
|
return ConfigObj("./config/mitmf.conf")
|
||||||
|
|
||||||
|
def process_IN_MODIFY(self, event):
|
||||||
|
self.on_config_change()
|
||||||
|
|
||||||
|
def start_config_watch(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def on_config_change(self):
|
||||||
|
""" We can subclass this function to do stuff after the config file has been modified"""
|
||||||
|
pass
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
git+git://github.com/kti/python-netfilterqueue
|
git+git://github.com/kti/python-netfilterqueue ; sys_platform == "linux"
|
||||||
pyinotify
|
pyinotify; sys_platform == "linux"
|
||||||
pycrypto
|
pycrypto
|
||||||
pyasn1
|
pyasn1
|
||||||
cryptography
|
cryptography
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue