def main(): """The first function to run.""" print('\n') print('\t __ ') print('\t _____/ /_ ____ _____ ____ ____ ____ ___ ___ ') print('\t / ___/ __ \/ __ `/ __ \/ __ `/ _ \/ __ `__ \/ _ \ ') print('\t/ /__/ / / / /_/ / / / / /_/ / __/ / / / / / __/ ') print('\t\___/_/ /_/\__,_/_/ /_/\__, /\___/_/ /_/ /_/\___/ ') print('\t /____/ ') print(bc.ITALIC + '\tchangeme by ztgrace') print('\trun "info" for git information' + bc.ENDC) print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled('python2') global program program = comm.checkInstalledFull(CHANGEME_SYM, CHANGEME_GITNAME, CHANGEME_GITRUN) print('') global sop if args.ip: ip = args.ip else: ip = comm.getLocalIP_interface() + '/24' sop = Options(ip, 'n') if args.run: run() else: console()
def main(): print('\n') print( '\t ____ ___ __ ' ) print( '\t / __ )_________ _ __________ _____ / | __ __/ /_____ ____ _ ______ ' ) print( '\t / __ / ___/ __ \ | /| / / ___/ _ \/ ___/ / /| |/ / / / __/ __ \/ __ \ | /| / / __ \ ' ) print( '\t / /_/ / / / /_/ / |/ |/ (__ ) __/ / / ___ / /_/ / /_/ /_/ / /_/ / |/ |/ / / / / ' ) print( '\t/_____/_/ \____/|__/|__/____/\___/_/ /_/ |_\__,_/\__/\____/ .___/|__/|__/_/ /_/ ' ) print( '\t /_/ ' ) print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(METASPLOIT_SYM) print('') global sop # The parameters to be passed to the module on init sop = options() console()
def main(): """The first function to run.""" print('\n') print('\t _____ ____ __ ') print('\t / ___// __ \ / / ____ ___ ____ _____ ') print('\t \__ \/ / / / / / / __ `__ \/ __ `/ __ \ ') print('\t ___/ / /_/ / / /___/ / / / / / /_/ / /_/ / ') print('\t/____/\___\_\/_____/_/ /_/ /_/\__,_/ .___/ ') print('\t /_/ ') print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkNetConnectionV() comm.checkInstalled(SQLMAP_SYM) print('') global sop # The parameters to be passed to the module on run sop = Options() if args.run: if not args.url: print( bc.WARN + '\t[!] No URL passed as argument with "-u [URL]" - returning to console.\n' + bc.ENDC) console() else: run_auto() else: console()
def main(): print('\n') print('\t ___ ____ ____ ____ ') print('\t / | / __ \/ __ \_________ ____ ____ / __/ ') print('\t / /| | / /_/ / /_/ / ___/ __ \/ __ \/ __ \/ /_ ') print('\t / ___ |/ _, _/ ____(__ ) /_/ / /_/ / /_/ / __/ ') print('\t/_/ |_/_/ |_/_/ /____/ .___/\____/\____/_/ ') print('\t /_/ ') print('\n') if os.getuid() != 0: print('r00tness is needed due to XXX!') print('Run the script again as root/sudo') return None print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(ARPSPOOF_SYM) print('') global sop # The parameters to be passed to the module on init if args.target: target = args.target else: target = '' if args.gateway: gateway = args.gateway else: gateway = comm.getGateway() sop = options(target, gateway) if args.run: run() else: console()
def main(): """The first function to run.""" print('\n') print('\t _____ ____ ___ ____ _________ ') print('\t / ___// __ \/ | / __ \/_ __/ | ') print('\t \__ \/ /_/ / /| | / /_/ / / / / /| | ') print('\t ___/ / ____/ ___ |/ _, _/ / / / ___ | ') print('\t/____/_/ /_/ |_/_/ |_| /_/ /_/ |_| ') print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled('python2') comm.checkInstalled(SPARTA_SYM) print('') run()
def main(): print('\n') print( ' __ __ ________ ____ _ ' ) print( ' / /___ / /_ ____/_ __/ /_ ___ / __ \(_)___ ____ ___ _____ ' ) print( ' __ / / __ \/ __ \/ __ \/ / / __ \/ _ \/ /_/ / / __ \/ __ \/ _ \/ ___/ ' ) print( ' / /_/ / /_/ / / / / / / / / / / / / __/ _, _/ / /_/ / /_/ / __/ / ' ) print( ' \____/\____/_/ /_/_/ /_/_/ /_/ /_/\___/_/ |_/_/ .___/ .___/\___/_/ ' ) print( ' /_/ /_/ ' ) print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(JOHN_SYM) global john john = JOHN_SYM print('') global sop # The parameters to be passed to the module on init if args.input: input = args.input else: input = '' if args.pwdlist: pwdlist = args.pwdlist else: pwdlist = '' if args.format: input = args.format else: format = '' if args.args: arguments = args.args else: arguments = '' sop = options(input, pwdlist, format, arguments) if args.run: run() else: console()
def main(): print('\n') print('\t ____ __________ _ __ ___ ') print('\t / __ \/ _/ ____/ (_) /_ /__ \ ') print('\t / / / // // / __ / / __/ / _/ ') print('\t / /_/ // // /_/ / / / /_ /_/ ') print('\t/_____/___/\____/ /_/\__/ (_) ') print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkNetConnectionV() comm.checkInstalled(DIG_SYM) print('') global sop # The parameters to be passed to the module on init sop = options('apple.com', '') console()
def main(): print('\n') print(' ____ _ _______ ') print(' / __ \/ | / / ___/____ ___ ____ _____ ') print(' / / / / |/ /\__ \/ __ `__ \/ __ `/ __ \ ') print(' / /_/ / /| /___/ / / / / / / /_/ / /_/ / ') print(' /_____/_/ |_//____/_/ /_/ /_/\__,_/ .___/ ') print(' /_/ ') print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(DNSMAP_SYM) print('') global sop # The parameters to be passed to the module on init sop = options('apple.com', '') console()
def updatetools(): """Update the tools in /tools.""" print('') gitinstalled = comm.checkInstalled('git') print('') if gitinstalled != 'ERROR': ctools.clonegits('u') else: print(bc.FAIL + '\n\t[-] git is not installed and therefore its not possible to automate the update of the tools' + bc.ENDC) print('')
def main(): if os.getuid() != 0: print("r00tness is needed due to packet sniffing!") print("Run the script again as root/sudo") return None print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(BETTERCAP_SYM) global bettercap bettercap = BETTERCAP_SYM comm.checkInstalledOpt(BEEF_SYM) global beef beef = BEEF_SYM comm.checkNetConnectionV() print('') global sop gateway = comm.getGateway() sop = options(INTERFACE_NET, gateway, "y", "y", "", "", '') console()
def main(): print('\n') print(' ____ __ _ __ ') print(' / __ \_________ / /___ (_) /_ ') print(' / /_/ / ___/ __ \/ / __ \/ / __/ ') print(' / _, _(__ ) /_/ / / /_/ / / /_ ') print(' /_/ |_/____/ .___/_/\____/_/\__/ ') print(' /_/ ') print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled('python2') global routersploit routersploit = comm.checkInstalledFull(ROUTERSPLOIT_SYM, ROUTERSPLOIT_GITNAME, ROUTERSPLOIT_GITRUN) print('') global sop sop = options() console()
def installtools(): """Install the tools in /tools.""" print('') gitinstalled = comm.checkInstalled('git') print('') print('[!] If the tool is already installed it will NOT BE updated. Use the "updatetools" for updating.') print('') if gitinstalled != 'ERROR': ctools.clonegits('i') else: print(bc.FAIL + '\n\t[-] git is not installed and therefore its not possible to automate the update of the tools' + bc.ENDC) print('')
def main(): print('\n') print('\t ______ __ ___ ____ ') print('\t / ____/_______ ____ _/ /____ / | / __ \ ') print('\t / / / ___/ _ \/ __ `/ __/ _ \ / /| | / /_/ / ') print('\t/ /___/ / / __/ /_/ / /_/ __/ / ___ |/ ____/ ') print('\t\____/_/ \___/\__,_/\__/\___/ /_/ |_/_/ ') print('\n') if os.getuid() != 0: print('r00tness is needed due to packet sniffing!') print('Run the script again as root/sudo') return None print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(CREATEAP_SYM) comm.checkNetConnectionV() print('\n') # gateway = comm.getGateway() global sop sop = Options(INTERFACE_NET, INTERFACE_MON, '', '', 'FreeWifi', '', '') console()
def main(): print('\n') print(' _ __ _____ _ __ ') print(' / | / /____ ___ ____ _ ____ / ___/ _____ ____ _ ____ _____ _____ _____ (_)____ / /_ ') print(' / |/ // __ __ \ / __ // __ \ \__ \ / ___// __ // __ \ / ___// ___// ___// // __ \ / __/ ') print(' / /| // / / / / // /_/ // /_/ / ___/ // /__ / /_/ // / / /(__ )/ /__ / / / // /_/ // /_ ') print(' /_/ |_//_/ /_/ /_/ \__ _// ___/ /____/ \___/ \__ _//_/ /_//____/ \___//_/ /_// ___/ \__/ ') print(' /_/ /_/ ') print('\n') if os.getuid() != 0: print("r00tness is needed due to packet sniffing!") print("Run the script again as root/sudo") return None print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(NMAP_SYM) global nmap nmap = NMAP_SYM local_ip = comm.getLocalIP('') lanNet = local_ip[0] + '/24' global sop sop = options(lanNet, '', 'lh5', 'T2') console()
def main(): """The first function to run.""" print('\n') print('\t ___ ____ _ ________ ') print('\t / | / __ \ __ _________ (_) __/ __/ ') print('\t / /| | / /_/ / __/ /_ / ___/ __ \/ / /_/ /_ ') print('\t / ___ |/ ____/ /_ __/ (__ ) / / / / __/ __/ ') print('\t/_/ |_/_/ /_/ /____/_/ /_/_/_/ /_/ ') print('\n') if os.getuid() != 0: print('r00tness is needed due to packet sniffing!') print('Run the script again as root/sudo') return None print('\n') print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC) comm.checkInstalled(BETTERCAP) comm.checkInstalled(CREATEAP) comm.checkInstalledOpt(BEEF) comm.checkNetConnectionV() print('\n') gateway_check = comm.getGateway() # Checking argparse if args.interfacen: interfacen = args.interfacen else: interfacen = INTERFACE_NET if args.interfacem: interfacem = args.interfacem else: interfacem = INTERFACE_MON if args.gateway: gateway = args.gateway else: gateway = gateway_check if args.sniffer: sniffer = args.sniffer else: sniffer = 'ARP' if args.proxy: proxy = args.proxy else: proxy = 'y' if args.target: target = args.target else: target = '' if args.snifflog: snifflog = args.snifflog else: snifflog = 'logs/sniff_log.txt' if args.apname: apname = args.apname else: apname = 'FreeWIFI' if args.aplog: aplog = args.aplog else: aplog = 'logs/ap_log.txt' if args.beef: beef = args.beef else: beef = '' if args.apargs: apargs = args.apargs else: apargs = '' if args.betterargs: betterargs = args.betterargs else: betterargs = '' # Starting class global sop sop = Options(interfacen, interfacem, gateway, sniffer, proxy, target, snifflog, apname, aplog, apargs, betterargs, beef) if args.run: run() else: console()