Exemple #1
0
def authenticate(username, password):
  try:
      clear()
      server.login(username, password)
      mail.login(username, password)
      inbox(username, password)
  except smtplib.SMTPAuthenticationError:
      clear()
      core.logo()
      core.name()
      print(core.lcyan + core.bold + "\nUTHENTICATION ERORR!:\n")
      print (core.lblue + "Cannot sign in. Are you sure this account exists?:" + core.r)
      print("\nRight now, the reason you may not log-into your gmail account (if your cresidentials are right) is because google sees this form of authentication as 'less secure'.\n")
      print(core.bold + core.lblue + "How to fix this issue:" + core.r)
      print(core.white + """
1. Login to your Gmail Account
2. Open the link:""")
      print(core.lcyan + core.ul + "https://www.google.com/settings/security/lesssecureapps" + core.r)
      print("3. Allow less secure app access to your gmail account.\n")
      print (core.bold + core.lblue + "I allowed unsecure apps. Why is it still not working?:" + core.r)
      print("""\nSo now it appears you typed in your
cresidentials correctly and allowed unsecure apps, but it still doesnt work. 
      
This is because google doesn't know if the location of the device accessing your gmail (in this case, the tool itself), is by you.\n""")
      print(core.bold + core.lblue + "How to fix this issue as well:" + core.r)
      print("\n1. Allow the location of the device by openining the link:")
      print(core.lcyan + core.ul + "https://www.google.com/settings/security/lesssecureapps" + core.r)
      print("2. If this link does not work, perform it manually from your Gmail account (it should send you a notification that an unknown device tried accessing your account. Allow this device.)")
      print("""3. Try to wait at least 1 minute for this to process.
It make take an hour for the change to kick-in, 
so sit back, relax, and grab a coffee.""")
      print("\n(I personally found that this works best on chrome after signing into my gmail and then clicking on the link.)\n")
      getpass.getpass("Please press {ENTER} to continue... ")
      clear()
      startup()
Exemple #2
0
def startup():
    try:
        clear()
        core.logo()
        core.name()
        print("")
        print("(Username Ex: [email protected])")
        print("(Password Ex: password1234)")
        print("")
        login()
    except KeyboardInterrupt:
        main.startup()
#!/usr/bin/python

import core

core.clear()
core.logo()
core.options()

Exemple #4
0
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")