MITMf/plugins/TestPlugin.py
byt3bl33d3r 14580f1589 second implementation of the HTTP server, you can now define shares for the SMB server in the config file, added an option to switch between the normal SMB server and the Karma version.
removed some useless code (left over from the responder plugin), serverResponseStatus hook now returns a dict (tuple was causing errors)
2015-05-30 15:00:41 +02:00

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!")