Skip to content

0.2.32 #17

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/leap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand All @@ -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():
Expand Down