Skip to content

0.2.36 #20

Merged
merged 2 commits 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
25 changes: 14 additions & 11 deletions src/leap.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,17 @@ def privesc_1():
def privesc_2():
print("priv-esc-2 by: Webb")

# open windows cmd as administrator
os.system("""powershell -Command "Start-Process cmd -Verb RunAs""""")
if ops == "Windows":
# open windows cmd as administrator
os.system("""powershell -Command "Start-Process cmd -Verb RunAs""""")

elif ops == "Linux":
# open root terminal
os.system("sudo x-terminal-emulator")

def privesc_3():
print("priv-esc-3 by: Webb")

# open root terminal
os.system("sudo x-terminal-emulator")

print("priv-esc-3 by:")


def menu(sys):
quit = False
Expand All @@ -134,6 +135,7 @@ def menu(sys):
"8: Get MAC address by: Reece\n"
"9: priv-esc-1 by: Tazmin and Webb\n"
"10: priv-esc-2 by: Webb\n"
"11: priv-esc-3 by:\n"
"12: Quit program\n")

# handle invalid inputs
Expand All @@ -142,7 +144,7 @@ def menu(sys):
except:
start = 13

if (start == 6) or (start == 11):
if (start == 6):
start = 13

# display mac menu
Expand All @@ -159,7 +161,7 @@ def menu(sys):
"8: Get MAC address by: Reece\n"
"9: priv-esc-1 by: Tazmin and Webb\n"
"10: priv-esc-2 by: Webb\n"
"11: priv-esc-3 by: Webb\n"
"11: priv-esc-3 by:\n"
"12: Quit program\n")

# handle invalid inputs
Expand All @@ -180,7 +182,8 @@ def menu(sys):
"5: Port scanning by: Jacob\n"
"6: Get group ID by: Joe and Tazmin\n"
"8: Get MAC address by: Reece\n"
"11: priv-esc-3 by: Webb\n"
"10: priv-esc-2 by: Webb\n"
"11: priv-esc-3 by:\n"
"12: Quit program\n")

# handle invalid inputs
Expand All @@ -189,7 +192,7 @@ def menu(sys):
except:
start = 13

if (start == 2) or (start == 4) or (start == 7) or (start == 9) or (start == 10):
if (start == 2) or (start == 4) or (start == 7) or (start == 9):
start = 13

# go to function chosen by user
Expand Down