mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 13:32:18 -07:00
removed some useless code (left over from the responder plugin), serverResponseStatus hook now returns a dict (tuple was causing errors)
16 lines
No EOL
488 B
Python
16 lines
No EOL
488 B
Python
from plugins.plugin import Plugin
|
|
from core.servers.http.HTTPServer import HTTPServer, HTTPHandler
|
|
|
|
class TestPlugin(Plugin):
|
|
name = "testplugin"
|
|
optname = "test"
|
|
desc = "Plugin to test dynamically configuring the internal web server"
|
|
version = "0.1"
|
|
has_opts = False
|
|
|
|
def initialize(self, options):
|
|
HTTPServer.getInstance().addHandler(r"/test/.*", WebServer)
|
|
|
|
class WebServer(HTTPHandler):
|
|
def get(self):
|
|
self.write("It works MOFO!") |