mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 04:52:22 -07:00
bugfix
This commit is contained in:
parent
16b774248d
commit
b04d2e0258
1 changed files with 3 additions and 3 deletions
|
@ -75,13 +75,13 @@ class mitmfapi(ConfigWatcher):
|
|||
if status == "1":
|
||||
for p in ProxyPlugins().all_plugins:
|
||||
if (p.name == plugin) and (p not in ProxyPlugins().plugin_list):
|
||||
ProxyPlugins().addPlugin(p)
|
||||
ProxyPlugins().add_plugin(p)
|
||||
return json.dumps({"plugin": plugin, "response": "success"})
|
||||
|
||||
elif status == "0":
|
||||
for p in ProxyPlugins().plugin_list:
|
||||
if p.name == plugin:
|
||||
ProxyPlugins().removePlugin(p)
|
||||
ProxyPlugins().remove_plugin(p)
|
||||
return json.dumps({"plugin": plugin, "response": "success"})
|
||||
|
||||
return json.dumps({"plugin": plugin, "response": "failed"})
|
||||
|
@ -97,4 +97,4 @@ class mitmfapi(ConfigWatcher):
|
|||
def start(self):
|
||||
api_thread = threading.Thread(name='mitmfapi', target=self.startFlask)
|
||||
api_thread.setDaemon(True)
|
||||
api_thread.start()
|
||||
api_thread.start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue