mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-08-21 14:03:26 -07:00
Initial webserver implementation, plus organized directory structure a bit better
This commit is contained in:
parent
fb26d89204
commit
929520fcc8
27 changed files with 54 additions and 240 deletions
|
@ -24,7 +24,7 @@ import logging
|
|||
from plugins.plugin import Plugin
|
||||
from core.utils import IpTables, SystemConfig
|
||||
from core.sslstrip.URLMonitor import URLMonitor
|
||||
from core.dnschef.DNSchef import DNSChef
|
||||
from core.servers.dns.DNSchef import DNSChef
|
||||
|
||||
class HSTSbypass(Plugin):
|
||||
name = 'SSLstrip+'
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
#
|
||||
|
||||
from core.utils import SystemConfig, IpTables, shutdown
|
||||
from core.protocols.arp.ARPpoisoner import ARPpoisoner
|
||||
from core.protocols.arp.ARPWatch import ARPWatch
|
||||
from core.dnschef.DNSchef import DNSChef
|
||||
from core.protocols.dhcp.DHCPServer import DHCPServer
|
||||
from core.protocols.icmp.ICMPpoisoner import ICMPpoisoner
|
||||
from core.poisoners.arp.ARPpoisoner import ARPpoisoner
|
||||
from core.poisoners.arp.ARPWatch import ARPWatch
|
||||
from core.servers.dns.DNSchef import DNSChef
|
||||
from core.poisoners.dhcp.DHCPpoisoner import DHCPpoisoner
|
||||
from core.poisoners.icmp.ICMPpoisoner import ICMPpoisoner
|
||||
from plugins.plugin import Plugin
|
||||
from scapy.all import *
|
||||
|
||||
|
|
18
plugins/TestPlugin.py
Normal file
18
plugins/TestPlugin.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from plugins.plugin import Plugin
|
||||
from core.servers.http.HTTPServer import HTTPServer
|
||||
import tornado.web
|
||||
|
||||
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().application.add_handlers('', [(r"/test", MainHandler)])
|
||||
|
||||
class MainHandler(tornado.web.RequestHandler):
|
||||
def get(self):
|
||||
print self.request
|
||||
self.write("Hello World!")
|
Loading…
Add table
Add a link
Reference in a new issue