Skip to content

Commit

Permalink
Merge pull request #17 from dayj18/Taz's-branch
Browse files Browse the repository at this point in the history
0.2.32
simonst3 committed Nov 30, 2021
2 parents de9946a + 4298f5d commit b1abe8a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/leap.py
Original file line number Diff line number Diff line change
@@ -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():

0 comments on commit b1abe8a

Please sign in to comment.