Skip to content

0.2.62 #24

Merged
merged 1 commit into from
Dec 1, 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
50 changes: 25 additions & 25 deletions src/leap.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ def AdminTest():


def enum_1():
print("enum-1: Get current user by: Tazmin")
print("enum-1: Get current user by: Tazmin (11193276)")

Username = os.getlogin() #gets the value of the current activer users username and saves it as a variable.
return Username


def enum_2():
print("enum-2: Get user domain by: Jacob")
print("enum-2: Get user domain by: Jacob (11198307)")

domain = os.environ['userdomain']
return domain


def enum_3():
print("enum-3: Get operating system by: Webb")
print("enum-3: Get operating system by: Webb (11537300)")

# get OS name
opsys_name = platform.system()
Expand All @@ -41,7 +41,7 @@ def enum_3():


def enum_4():
print("enum-4: List all users by: Jordan")
print("enum-4: List all users by: Jordan (11103769)")

print("List of all users")
print()
Expand All @@ -52,22 +52,22 @@ def enum_4():


def enum_5():
print("enum-5: router scan by: Jacob")
print("enum-5: router scan by: Jacob (11198307)")

info = os.popen("netstat -rn")
info = info.read()
return info


def enum_6():
print("enum-6: Get group ID by: Joe and Tazmin")
print("enum-6: Get group ID by: Joe (10679803) and Tazmin (11193276)")

gid = os.getgid() #checks the user ID for the active user and saves it as a variable
return gid


def enum_7():
print("enum-7: Is current user an admin by: Joe")
print("enum-7: Is current user an admin by: Joe (10679803)")

if ctypes.windll.shell32.IsUserAnAdmin():
message = 'privilege escalation.'
Expand All @@ -77,14 +77,14 @@ def enum_7():


def enum_8():
print("enum-8: Get MAC address by: Reece")
print("enum-8: Get MAC address by: Reece (11073439)")

macaddress = get_mac()
return macaddress


def privesc_1():
print("priv-esc-1 by: Tazmin and Webb")
print("priv-esc-1 by: Tazmin (11193276) and Webb (11537300)")
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
Expand All @@ -101,7 +101,7 @@ def privesc_1():


def privesc_2(ops):
print("priv-esc-2 by: Webb")
print("priv-esc-2 by: Webb (11537300)")

if ops == "Windows":
# open windows cmd as administrator
Expand Down Expand Up @@ -144,15 +144,15 @@ def menu(sys):
if sys == "Windows":
# print menu
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"
"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"
"1: Get current user by: Tazmin (11193276)\n"
"2: Get user domain by: Jacob (11198307)\n"
"3: Get operating system by: Webb (11537300)\n"
"4: List all users by: Jordan (11103769)\n"
"5: Port scanning by: Jacob (11198307)\n"
"7: Is current user an admin by: Joe (10679803)\n"
"8: Get MAC address by: Reece (11073439)\n"
"9: priv-esc-1 by: Tazmin (11193276) and Webb (11537300)\n"
"10: priv-esc-2 by: Webb (11537300)\n"
"11: priv-esc-3 by:\n"
"12: Quit program\n")

Expand All @@ -169,12 +169,12 @@ def menu(sys):
elif sys == "Linux":
# print menu
print("Which line of code would you like to try? (Enter a number):\n"
"1: Get current user by: Tazmin\n"
"3: Get operating system by: Webb\n"
"5: Port scanning by: Jacob\n"
"6: Get group ID by: Joe and Tazmin\n"
"8: Get MAC address by: Reece\n"
"10: priv-esc-2 by: Webb\n"
"1: Get current user by: Tazmin (11193276)\n"
"3: Get operating system by: Webb (11537300)\n"
"5: Port scanning by: Jacob (11198307)\n"
"6: Get group ID by: Joe (10679803) and Tazmin (11193276)\n"
"8: Get MAC address by: Reece (11073439)\n"
"10: priv-esc-2 by: Webb (11537300)\n"
"11: priv-esc-3 by:\n"
"12: Quit program\n")

Expand Down