diff --git a/src/leap.py b/src/leap.py index d8f09572..39eb28c3 100644 --- a/src/leap.py +++ b/src/leap.py @@ -16,7 +16,7 @@ def AdminTest(): def enum_1(): print("enum-1: Get current user by: Tazmin") - Username = os.getlogin() + Username = os.getlogin() #gets the value of the current activer users username and saves it as a variable. return Username @@ -61,7 +61,7 @@ def enum_5(): def enum_6(): print("enum-6: Get group ID by: Joe and Tazmin") - gid = os.getgid() + gid = os.getgid() #checks the user ID for the active user and saves it as a variable return gid @@ -84,19 +84,19 @@ def enum_8(): def privesc_1(): print("priv-esc-1 by: Tazmin and Webb") - if AdminTest(): - print("you are running in admin.") - print("press enter to view all your previous saved wifi connections") - input() - os.system("netsh wlan show profile") - input() - else: - print("you are not running as admin, press enter to run as admin") - input() - ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1) - print("press enter to view all your previous saved wifi connections") - input() - os.system("netsh wlan show profile") + if AdminTest(): #checks the value of admintest + print("you are running in admin.") #confirms that they are using admin + print("press enter to view all your network configs") #shows the user what will happen + input() + os.system("ipconfig/all") #runs the command into the shell and displays the network configs + input() + else: #this is the fail safe if python isn't launched as admin. + print("you are not running as admin, press enter to run as admin") #informs the user they are not admin + input() + ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1) #this runs the application as admin allowing us to use OS.System commands that need admin rights + print("press enter to view all your network configs") #shows the user what will happen + input() + os.system("ipconfig/all") #runs the command def privesc_2():