1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 08:16:02 +02:00

Simplify sg

This commit is contained in:
Andrea Cardaci 2021-02-16 09:01:05 +01:00 committed by GitHub
parent ec7633d6bc
commit 09c2605f84
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,17 +3,8 @@ functions:
shell:
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
code: |
GROUPNAME=users
sg $GROUPNAME -c "/bin/sh"
command:
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
code: |
COMMAND=whoami
GROUPNAME=users
sg $GROUPNAME -c $COMMAND
sg $(id -ng)
sudo:
- description: Any group can be specified as the user will have root permissions.
code: |
GROUPNAME=users
sudo sg $GROUPNAME -c "/bin/sh"
- code: |
sudo sg root
---