def main(): #global interface global logs args=parse_args() #interface=args.interface logs=args.nologs if detectVPN() == '1': print get_banner() start_server(serverport) print chr(27) + "[0;92m" + '[*] Running server at ' + serverip + ':' + str(serverport) + '...' print '[*] Can see statics and logs at ' + serverip + ':' + str(serverport) + '/panel\n' + chr(27) + "[0;0m" #Start sniff, method from scapy sniff(iface=interface, prn=packet, count=count) else: print 'Installing OpenVPN undetected\nPlease check OpenVPN is installed correctly'
logging.getLogger("requests").setLevel(logging.WARNING) #Disables "Starting new HTTP Connection (1)" log message import argparse import sys import os import threading import core.responder.settings as settings from argparse import RawTextHelpFormatter from twisted.web import http from twisted.internet import reactor from core.logger import logger from core.banners import get_banner from plugins import * print get_banner() mitmf_version = '0.9.8' mitmf_codename = 'The Dark Side' if os.geteuid() != 0: sys.exit("[-] The derp is strong with this one") parser = argparse.ArgumentParser(description="MITMf v{} - '{}'".format(mitmf_version, mitmf_codename), version="{} - '{}'".format(mitmf_version, mitmf_codename), usage='mitmf.py -i interface [mitmf options] [plugin name] [plugin options]', epilog="Use wisely, young Padawan.", formatter_class=RawTextHelpFormatter) #add MITMf options sgroup = parser.add_argument_group("MITMf", "Options for MITMf")
def main(): global windows global linux global macos global raw global name try: print get_banner() parser = argparse.ArgumentParser( description="BackToMe v{}".format(version), version="{}".format(version), usage='sudo backtome.py -s HOST [opzioni]', epilog="\033[1;31mYou'll always come back to me\033[1;31m", formatter_class=RawTextHelpFormatter) sgroup = parser.add_argument_group("Options for BackToMe") sgroup.add_argument("-s", "--server", dest='host', type=str, required=True, help="Host per l'handler") sgroup.add_argument("-p", "--port", dest='port', type=str, default="2227", help="Porta da usare") sgroup.add_argument("--configure", action='store_true', help="Configura e non generare") sgroup.add_argument("--generate", action='store_true', help="Genera payload") sgroup.add_argument("--windows", action="store_true", help="Genera payload per Windows") sgroup.add_argument("--osx", action="store_true", help="Genera payload per Mac OSX") sgroup.add_argument("--linux", action="store_true", help="Genera payload per Linux") sgroup.add_argument("--all", action="store_true", help="Genera payload per tutti gli OS") sgroup.add_argument("--raw", action="store_true", help="Genera raw payload") sgroup.add_argument("-n", "--name", dest='name', type=str, default="backdoored", help="Nome del file") sgroup.add_argument("--clean", action='store_true', help="Clean directories") if len(sys.argv) == 1: parser.print_help() sys.exit(1) options = parser.parse_args() if options.windows: windows = True if options.linux: linux = True if options.osx: macos = True if options.raw: raw = True if options.all: windows = True linux = True macos = True if options.clean: cleanup() if options.configure: gen.configure(options.host, options.port) if options.generate: gen.configure(options.host, options.port) gen.generate(windows, linux, macos, raw, options.name) handler.startall(options.host, options.port) cleanup() except KeyboardInterrupt: print "" error("CTRL + C Detected, quitting...") time.sleep(1) cleanup() exit()
logging.WARNING) #Disables "Starting new HTTP Connection (1)" log message import argparse import sys import os import threading import core.responder.settings as settings from argparse import RawTextHelpFormatter from twisted.web import http from twisted.internet import reactor from core.logger import logger from core.banners import get_banner from plugins import * print get_banner() mitmf_version = '0.9.8' mitmf_codename = 'The Dark Side' if os.geteuid() != 0: sys.exit( "[-] The derp is strong with this one\nTIP: you may run MITMf as root." ) parser = argparse.ArgumentParser( description="MITMf v{} - '{}'".format(mitmf_version, mitmf_codename), version="{} - '{}'".format(mitmf_version, mitmf_codename), usage= 'mitmf.py -i interface [mitmf options] [plugin name] [plugin options]', epilog="Use wisely, young Padawan.",
logging.getLogger("requests").setLevel(logging.WARNING) #Disables "Starting new HTTP Connection (1)" log message import argparse import sys import os import threading import core.responder.settings as settings from argparse import RawTextHelpFormatter from twisted.web import http from twisted.internet import reactor from core.logger import logger from core.banners import get_banner from plugins import * print(get_banner()) mitmf_version = '0.9.8' mitmf_codename = 'The Dark Side' if os.geteuid() != 0: sys.exit("[-] The derp is strong with this one\nTIP: you may run MITMf as root.") parser = argparse.ArgumentParser(description="MITMf v{} - '{}'".format(mitmf_version, mitmf_codename), version="{} - '{}'".format(mitmf_version, mitmf_codename), usage='mitmf.py -i interface [mitmf options] [plugin name] [plugin options]', epilog="Use wisely, young Padawan.", formatter_class=RawTextHelpFormatter) #add MITMf options sgroup = parser.add_argument_group("MITMf", "Options for MITMf")