) print( "If you are using Linux, there is a bash file in /usr/bin, so you just have to type 'airline-crack' to run it." ) print("") input("Press {ENTER} to Continue... ") except: print( "Error: Could not install macchanger and arp-scan. \nIs your connection online?" ) elif "Windows" == p: print( "Sorry. we don't support windows machines. \n Try using a virtual machine." ) input("Press {ENTER} to Exit... ") core.quit() elif "Darwin" == p: try: os.system("brew install macchanger") os.system("brew install arp-scan") os.system("brew install ipcalc") os.system("brew install aircrack-ng") os.system("brew install tcpdump") os.system("sudo pip3 install getmac") os.system("sudo pip3 install scapy") os.system("sudo pip3 install lanscan") print("") print( "You have finished the setup. Please type 'python3 airlinecrack.py' to run the tool." ) print(
def quit(): core.quit()
def startup(mon): core.clear() core.logo() print(r + ul + bo + "Welcome to Airline-Crack!" + r + "\n") print("Your device: " + core.checksystem()) print("Your network interface: " + mon) print("Your original mac address: " + str(mac_id)) os.system("macchanger -s " + mon) print("") print(bo + "Scanning:" + r) print(r + "(" + lc + "1" + r + ")" + " Scan for access points. (Airport)") print(r + "(" + lc + "2" + r + ")" + " Scan IPs and MAC-Addresses/Devices on network (Arp-Scan)") print(r + "(" + lc + "3" + r + ")" + " Scan for packets on a network (Airport + TCPdump)") print(r + "(" + lc + "4" + r + ")" + " Scan an IP Address (Nmap)") print(r + "(" + lc + "5" + r + ")" + " Scan an IP Address (Ipcalc)") print(bo + "MAC Address:" + r) print(r + "(" + lc + "6" + r + ")" + " Become a specific MAC address (Macchanger)") print(r + "(" + lc + "7" + r + ")" + " Become a random MAC address (Macchanger)") print(bo + "Password Cracking:" + r) print(r + "(" + lc + "8" + r + ")" + " Make a password list (Crunch)") print(r + "(" + lc + "9" + r + ")" + " Crack WEP WiFi passwords (Airport + Aircrack)") print(bo + "Extra:" + r) print(r + "(" + lc + "r" + r + ")" + " Reload/Clear the screen") print(r + "(" + lc + "99" + r + ")" + " Exit the tool (CNTRL + C) \n") while True: answer = input(bo + "Airline" + r + "-" + re + "C" + y + "r" + g + "a" + lc + "c" + p + "k" + lc + " > " + r) if answer == "1": wifiscan(mon) if answer == "2": print("") os.system("sudo arp-scan -l") print("") save = input( "Would you like to save these outputs? (Default = No): ") if save == "y" or save == "yes" or save == "Y" or save == "Yes" or save == "YES": savename = input( "What would you like to call the file? (Default: arp-scan): " ) if savename == "": savename = "arp-scan" os.system("sudo arp-scan -l > " + savename + ".log") print("") input("Your output was saved in " + savename + ".log") startup(mon) else: input("\nAlright, your output was not saved.") startup(mon) elif answer == "3": tcpscan(mon) elif answer == "4": print("") IP = input("Please type a specific IP Address: ") print("") os.system("sudo nmap -A " + IP) print("") save = input( "Would you like to save these outputs? (Default = No): ") if save == "y" or save == "yes" or save == "Y" or save == "Yes" or save == "YES": savename = input( "What would you like to call the file? (default: nmap-xxx.xxx.x.x): " ) if savename == "": savename = "nmap-" + IP os.system("sudo nmap -A " + IP + " > " + savename + ".log") print("") input("Your output was saved in " + savename + ".log") startup(mon) else: input("\nAlright, your output was not saved.") startup(mon) elif answer == "5": print("") IP = input("Please type a specific IP Address: ") print("") os.system("ipcalc " + IP) print("") save = input( "Would you like to save these outputs? (Default = No): ") if save == "y" or save == "yes" or save == "Y" or save == "Yes" or save == "YES": savename = input( "What would you like to call the file? (default: ipcalc-xxx.xxx.x.x): " ) if savename == "": savename = "ipcalc-" + IP os.system("sudo nmap -A " + IP + " > " + savename + ".log") print("") input("Your output was saved in " + savename + ".log") startup(mon) else: input("\nAlright, your output was not saved.") startup(mon) elif answer == "6": print("") macspoof = input("Please type a specific Mac Address: ") print("") os.system("macchanger -m " + macspoof + " " + mon) print("") input("Finished! Please press {ENTER} to continue...") startup(mon) elif answer == "7": print("") macspoof = os.system("macchanger -r " + mon) print("") elif answer == "8": print("") print("---------------------") crunchname = input( "Please type the name of the password text file (Default: rockyou): " ) if crunchname == "" or crunchname == " ": crunchname = "rockyou" crunchname = crunchname.replace(" ", "_") print("---------------------") print("Ex: ~/Desktop") crunchdir = input( "Type the directory you want the file to be in: ") print("---------------------") crunchmin = input("Minimum # of characters for passwords: ") print("---------------------") crunchmax = input("Maximum # of characters for passwords: ") print("---------------------") print("@ = Any character/number (Wildcard)") print("123... = Any number") print( "Ex: 123456789abcd = characters that can be the # 1-9 or a-d in the alphabet." ) crunchset = input("Enter the setup for passwords: ") print("") os.system("crunch " + crunchmin + " " + crunchmax + " " + crunchset + " -o " + crunchdir + "/" + crunchname + ".txt") print("") input("Finished! Your password file, " + crunchname + ".txt is at " + crunchdir) startup(mon) elif answer == "9": wepCrack(mon) elif answer == "r": startup(mon) elif answer == "99": core.quit() elif answer == "exit": core.quit() else: print("\nThe choice '" + answer + "' was not found. Please pick a choice above. \n")