new tmux-pwn
This commit is contained in:
parent
f12bc5eeb4
commit
ec1c014bff
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t
|
||||
#tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t
|
||||
tmux list-clients | sed "s:^\(/dev/\(ttys\|pts/\)[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$:\3 \1:" | sort -r -n | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue