예제 #1
0
 def resetEth():
     resetQuestion = input(
         "You would like to reset your Mac-Address Y/n ==> ")
     if resetQuestion.lower() == ('y'):
         print("Your Mac-Address is being reset\n")
         ethDown()
         os.system('sudo macchanger -p ' + (eth))
         ethUp()
         networkManagerRestart()
         print("\nMac-Address has been reset")
         continueInput = input(
             "\n\nPress any key to continue, or B to go back. ")
         if continueInput.lower() == ('b'):
             os.system('clear')
             resetMac()
         else:
             os.system('clear')
             main()
     if resetQuestion.lower() == ('n'):
         os.system('clear')
         resetMac()
     else:
         dialogue.inputError()
         os.system('clear')
         resetEth()
예제 #2
0
 def closeProgram():  #start of close program
     exit_answer = input("Are you sure? Y/n ==> ")
     if exit_answer.lower() == ('y'):
         os.system('clear')
         sys.exit(0)
     if exit_answer.lower() == ('n'):
         os.system('clear')
         main()
     else:
         dialogue.inputError()
         os.system('clear')
         closeProgram()
예제 #3
0
 def randomMac():  #Start of random mac option
     dialogue.connectionType()
     connectionType = input("Enter your connection type ==> ")
     os.system('clear')
     if connectionType == ('1'):
         randomWifi()
     if connectionType == ('2'):
         randomEth()
     if connectionType == ('3'):
         os.system('clear')
         main()
     else:
         dialogue.inputError()
         os.system('clear')
         randomMac()
예제 #4
0
 def showMac():  #Start of show Mac option
     dialogue.connectionType()
     connectionType = input("Enter your connection type ==> ")
     os.system('clear')
     if connectionType == ('1'):
         showWifi()
     if connectionType == ('2'):
         showEth()
     if connectionType == ('3'):
         os.system('clear')
         main()
     else:
         dialogue.inputError()
         os.system('clear')
         showMac()
예제 #5
0
 def randomWifi():
     dialogue.randomMac()
     randomType = input("Make your choice ==> ")
     os.system('clear')
     if randomType == ('1'):
         print("Your Mac-Address has been randomly set.\n")
         wifiDown()
         os.system('sudo macchanger -r ' + (wifi))
         wifiUp()
         networkManagerRestart()
         continueInput = input(
             "\n\nPress any key to continue, or B to go back. ")
         if continueInput.lower() == ('b'):
             os.system('clear')
             randomWifi()
         else:
             os.system('clear')
             main()
     if randomType == ('2'):
         print("Everything but vendor bytes have been randomly set.\n")
         wifiDown()
         os.system('sudo macchanger -e  ' + (wifi))
         wifiUp()
         networkManagerRestart()
         continueInput = input(
             "\n\nPress any key to continue, or B to go back. ")
         if continueInput.lower() == ('b'):
             os.system('clear')
             randomWifi()
         else:
             os.system('clear')
             main()
     if randomType == ('3'):
         print("Random vendor Mac-Address of the same kind has been set.\n")
         wifiDown()
         os.system('sudo macchanger -a ' + (wifi))
         wifiUp()
         networkManagerRestart()
         continueInput = input(
             "\n\nPress any key to continue, or B to go back. ")
         if continueInput.lower() == ('b'):
             os.system('clear')
             randomWifi()
         else:
             os.system('clear')
             main()
     if randomType == ('4'):
         print("Completly random vendor Mac-Address has been set.\n")
         wifiDown()
         os.system('sudo macchanger -A ' + (wifi))
         wifiUp()
         networkManagerRestart()
         continueInput = input(
             "\n\nPress any key to continue, or B to go back. ")
         if continueInput.lower() == ('b'):
             os.system('clear')
             randomWifi()
         else:
             os.system('clear')
             main()
     if randomType == ('5'):
         print("Here is a list of known vendors.\n")
         print("When finished press Q to quit.\n")
         continueInput = input("Press any key to show list.")
         os.system('macchanger -l | less')
         os.system('clear')
         continueInput = input(
             "\n\nPress any key to continue, or B to go back. ")
         if continueInput.lower() == ('b'):
             os.system('clear')
             randomWifi()
         else:
             os.system('clear')
             main()
     if randomType == ('6'):
         os.system('clear')
         randomMac()
     else:
         dialogue.inputError()
         os.system('clear')
         randomWifi()