mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Update sg.md
This commit is contained in:
parent
99a572b7d9
commit
ec7633d6bc
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
|
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
|
||||||
code: |
|
code: |
|
||||||
GROUPNAME=users
|
GROUPNAME=users
|
||||||
@ -8,7 +8,7 @@ functions:
|
|||||||
command:
|
command:
|
||||||
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
|
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
|
||||||
code: |
|
code: |
|
||||||
COMMAND=whoami
|
COMMAND=whoami
|
||||||
GROUPNAME=users
|
GROUPNAME=users
|
||||||
sg $GROUPNAME -c $COMMAND
|
sg $GROUPNAME -c $COMMAND
|
||||||
sudo:
|
sudo:
|
||||||
|
Loading…
Reference in New Issue
Block a user