Skip to content

0.2.33 #18

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
58 changes: 35 additions & 23 deletions src/leap.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ def privesc_3():
os.system("sudo x-terminal-emulator")


def menu():
def menu(sys):
quit = False

if opsys == "Windows":
print("Which line of code would you like to try? (Enter a number):\n"
if sys == "Windows":
print("1Which line of code would you like to try? (Enter a number):\n"
"1: Get current user by: Tazmin\n"
"2: Get user domain by: Jacob\n"
"3: Get operating system by: Webb\n"
Expand All @@ -125,12 +125,15 @@ def menu():
"10: priv-esc-2 by: Webb\n"
"12: Quit program\n")

start = int(input())
try:
start = int(input())
except:
start = 13

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

elif os == "Darwin":
elif sys == "Darwin":
print("Which line of code would you like to try? (Enter a number):\n"
"1: Get current user by: Tazmin\n"
"2: Get user domain by: Jacob\n"
Expand All @@ -142,33 +145,34 @@ def menu():
"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")

start = int(input())
try:
start = int(input())
except:
start = 13

#if start == :
# start =

elif os == "Linux":
elif sys == "Linux":
print("Which line of code would you like to try? (Enter a number):\n"
"1: Get current user by: Tazmin\n"
"2: Get user domain by: Jacob\n"
"3: Get operating system by: Webb\n"
"4: List all users by: Jordan\n"
"5: Port scanning by: Jacob\n"
"6: Get group ID by: Joe and Tazmin\n"
"7: Is current user an admin by: Joe\n"
"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")

start = int(input())
try:
start = int(input())
except:
start = 13

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

if start == 1:
print(enum_1())
Expand Down Expand Up @@ -211,9 +215,8 @@ def menu():
input()

elif start == 11:
print("priv-esc-3")
print(privesc_3())
input()
#placeholder

elif start == 12:
quit = True
Expand All @@ -224,15 +227,24 @@ def menu():

return quit


while 1 == 1:
opsys = platform.system()

if (opsys == "Windows") or (opsys == "Darwin") or (opsys == "Linux"):
if opsys == "Windows":
os.system("cls")
stop = menu()
stop = menu(opsys)

if stop == True:
if stop is True:
break

elif (opsys == "Darwin") or (opsys == "Linux"):
os.system("clear")
stop = menu(opsys)

if stop is True:
break

else:
print("Operating system not recognised")
break