Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.26 KB | None | 0 0
  1. import getpass
  2. import glob
  3. import os
  4. import string
  5.  
  6. def start():
  7.     print("Sayris-AI - V 0.0.1\n")
  8.     with open("pass.txt") as f:
  9.      lines = f.readlines()[65]
  10.      pw = lines.rstrip('\n')
  11.     p = "null"
  12.     while pw != p:
  13.      p = getpass.getpass("Enter Passphrase: ")
  14.     print("\n:::: Passphrase Accepted ::::\n")
  15.     menue()
  16.  
  17. def Module_Loader():
  18.     print("Load Module List :\n")
  19.     os.chdir("./Modules")
  20.     for file in glob.glob("*.py"):
  21.         print(file)
  22.  
  23. def Start_Modules():
  24.     print("Start Modules...")
  25.     while True:
  26.         command = input("Enter a Command : \n").lower()
  27.         print(command)
  28.         if command == "start":
  29.             print("Call Command")
  30.             Start_Modules()
  31.         elif command == "exit":
  32.             print("Shutdown")
  33.             break
  34.         else:
  35.             print("Wrong Command , please Retype")
  36.  
  37.  
  38. def menue():
  39.     while True:
  40.         lowchoice = input("Enter Command: ")
  41.         lowchoice.lower()
  42.         if lowchoice == "start":
  43.             print("Starts Modules")
  44.             Module_Loader()
  45.             Start_Modules()
  46.         elif lowchoice == "exit":
  47.             print("shutting down")
  48.             break
  49.         else:
  50.             print("wrong command please Retype")
  51.  
  52. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement