Ejemplo n.º 1
0
def SecondMenu():
    time.sleep(0.5)
    print("")
    print("  [*] Wait while it loads the menu  ", end="")
    bfunc.LoadAnimation()
    ()
    print("")

    while True:
        print("")
        print(
            "========== Menu of system check and installation of AD =========="
        )
        print("")
        print(
            "     1 ->    Show and check components of THIS system             "
        )
        print(
            "     2 ->    Show minimum components for AD (ICAAD Software)      "
        )
        print(
            "     3 ->    Start with installation of Active Directory          "
        )
        print(
            "     4 ->    Main Menu                                            "
        )
        print("")
        numOptions = 4
        option = bfunc.ChooseOption(numOptions)
        if (option == 1):
            CheckComponents()
        elif (option == 2):
            CheckRequirements()
        elif (option == 3):
            CheckSystem()
            # This option calls the below Menu
        elif (option == 4):
            print("")
            print("  [*] Wait while it loads the menu  ", end="")
            bfunc.LoadAnimation()
            ()
            print("")
            sys.exit()
        else:
            break
Ejemplo n.º 2
0
def FivethMenu():
   time.sleep(0.5)
   print("");
   print("  [*] Wait while it loads the menu  ",end="");
   bfunc.LoadAnimation();
   print();

   while True:
      print ("");
      print ("================ Menu of configuration and check of DNS ================");
      print ("");
      print ("     1 ->    Create a new primary reverse zone                           ");
      print ("     2 ->    Delete reverse zone                                         ");
      print ("     3 ->    Show DNS zones                                              ");
      print ("     4 ->    Check the resolution names (nslookup)                       ");
      print ("     5 ->    Refrest / register DNS names (ipconfig /registerdns)        ");
      print ("     6 ->    Check configuration of 'Internal Network'                   ");
      print ("     7 ->    Change preferred DNS of 'Internal Network'                  ");
      print ("     8 ->    Back (previous menu)                                        ");
      print ("");
      numOptions = 8;
      option = bfunc.ChooseOption(numOptions);
      if (option == 1):
         ReverseZone();
      elif (option == 2):
         DeleteReverseZone();
      elif (option == 3):
         ShowDNSZones();
      elif (option == 4):
         CheckDNSResolutionNames();
      elif (option == 5):
         RefreshDNS();
      elif (option == 6):
         ShowINConfig();
      elif (option == 7):
         PreferredDNS();
      elif (option == 8):
         print("");
         print("  [*] Wait while it loads the menu  ",end="");
         bfunc.LoadAnimation();
         print();
         sys.exit();
      else:
         break;
Ejemplo n.º 3
0
def FourthMenu():
    time.sleep(0.5)
    print("")
    print("  [*] Wait while it loads the menu  ", end="")
    bfunc.LoadAnimation()
    print()

    while True:
        print("")
        print(
            "============= Menu of system check as Domain Controller ============="
        )
        print("")
        print("     1 ->    Promote this server to Domain Controller         ")
        print("     2 ->    Check if this server is a Domain Controller      ")
        print("     3 ->    Delete the Active Directory Domain Service       ")
        print("     4 ->    Check FSMO Roles                                 ")
        print("     5 ->    Check Global Catalog                             ")
        print("     6 ->    Back (previous menu)                             ")
        print("")
        numOptions = 6
        opcion = bfunc.ChooseOption(numOptions)
        if (opcion == 1):
            bfunc.PromoteDC()
        elif (opcion == 2):
            bfunc.CheckDC()
        elif (opcion == 3):
            bfunc.DeleteAD()
        elif (opcion == 4):
            FSMORoles()
        elif (opcion == 5):
            GlobalCatalog()
        elif (opcion == 6):
            print()
            print("  [*] Wait while it loads the menu  ", end="")
            bfunc.LoadAnimation()
            print()
            sys.exit()
        else:
            break
Ejemplo n.º 4
0
def FourthMenu():
    time.sleep(0.5)
    print("")
    print("  [*] Wait while it loads the menu  ", end="")
    bfunc.LoadAnimation()
    ()
    print()

    while True:
        print("")
        print(
            "============= Menu of system check as Domain Controller ============="
        )
        print("")
        print("     1 ->    Promote this server to Domain Controller      ")
        print("     2 ->    Check if this server is a Domain Controller   ")
        print("     3 ->    Delete the Active Directory Service           ")
        print("     4 ->    Main menu                                     ")
        print("")
        numOptions = 4
        option = bfunc.ChooseOption(numOptions)
        if (option == 1):
            bfunc.PromoteDC()
        elif (option == 2):
            bfunc.CheckDC()
        elif (option == 3):
            bfunc.DeleteAD()
        elif (option == 4):
            print("")
            print("  [*] Wait while it loads the menu  ", end="")
            bfunc.LoadAnimation()
            ()
            print("")
            sys.exit()
        else:
            break
Ejemplo n.º 5
0
def SixthMenu():
    time.sleep(0.5)
    print("")
    print("  [*] Wait while it loads the menu  ", end="")
    bfunc.LoadAnimation()
    print()

    while True:
        print("")
        print(
            "============ Menu of administration of Active Directory ============"
        )
        print("")
        print(
            "     1 ->    Organizational Unit                                  "
        )
        print(
            "     2 ->    Active Directory Users and Groups                    "
        )
        print(
            "     3 ->    Shared resources                                     "
        )
        print(
            "     4 ->    Group Policy Object (GPO)                            "
        )
        print(
            "     5 ->    Seach object Active Directory                        "
        )
        print(
            "     6 ->    Rename objects Active Directory                      "
        )
        print(
            "     7 ->    Export all the objects AD to a CSV file              "
        )
        print(
            "     8 ->    Create a secure copy                                 "
        )
        print(
            "     9 ->    Back (previous menu)                                 "
        )
        print("")
        numOptions = 9
        option = bfunc.ChooseOption(numOptions)
        if (option == 1):
            os.system(f'type nul > menus\\management\\security.txt')
            os.system(
                'menus\\management\\ou.py')  # call Organizational Unit menu
        elif (option == 2):
            os.system(f'type nul > menus\\management\\security.txt')
            os.system(
                'menus\\management\\ug.py')  # call AD Users and Groups menu
        elif (option == 3):
            os.system(f'type nul > menus\\management\\security.txt')
            os.system('menus\\management\\sr.py')  # call Shared resources menu
        elif (option == 4):
            os.system(f'type nul > menus\\management\\security.txt')
            os.system('menus\\management\\gpo.py')  # call GPOs menu
        elif (option == 5):
            SearchObj()
        elif (option == 6):
            RenameObj()
        elif (option == 7):
            ExportObj()
        elif (option == 8):
            SecCopy()
        elif (option == 9):
            print("")
            print("  [*] Wait while it loads the menu  ", end="")
            bfunc.LoadAnimation()
            print()
            sys.exit()
        else:
            break
Ejemplo n.º 6
0
def ThirdMenu():
    time.sleep(0.5)
    print("")
    print("  [*] Wait while it loads the menu  ", end="")
    bfunc.LoadAnimation()
    ()
    print()

    while True:
        print("")
        print(
            "================ Menu of Configuration of Network Cards  ================"
        )
        print("")
        print(
            "     1 ->    Change name of network adapter                          "
        )
        print(
            "     2 ->    Configure internal network card (Internal Network)      "
        )
        print(
            "     3 ->    Configure external network card (Internet)              "
        )
        print(
            "     4 ->    Show network cards configuration                        "
        )
        print(
            "     5 ->    Change computer name                                    "
        )
        print(
            "     6 ->    Show computer name                                      "
        )
        print(
            "     7 ->    Install Domain Services of Active Directory             "
        )
        print(
            "     8 ->    Back (previous menu)                                    "
        )
        print(
            "     9 ->    Main menu                                               "
        )
        print("")
        numOptions = 9
        option = bfunc.ChooseOption(numOptions)
        if (option == 1):
            ChangeAdapter()
        elif (option == 2):
            internal = "Internal Network"
            ConfigureNetwork(internal)
        elif (option == 3):
            external = "Internet"
            ConfigureNetwork(external)
        elif (option == 4):
            CheckNetworkConfig()
        elif (option == 5):
            ChangeComputerName()
        elif (option == 6):
            CheckComputerName()
        elif (option == 7):
            InstallAD()
        elif (option == 8):
            SecondMenu()
        elif (option == 9):
            print("")
            print("  [*] Wait while it loads the menu  ", end="")
            bfunc.LoadAnimation()
            ()
            print("")
            sys.exit()
        else:
            break