diff --git a/_gtfobins/sg.md b/_gtfobins/sg.md new file mode 100644 index 0000000..553d4eb --- /dev/null +++ b/_gtfobins/sg.md @@ -0,0 +1,19 @@ +--- +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 + sudo: + - description: Any group can be specified as the user will have root permissions. + code: | + GROUPNAME=users + sudo sg $GROUPNAME -c "/bin/sh" +---