Renames examples directory
This commit is contained in:
parent
7347860e1e
commit
52795ad633
1 changed files with 0 additions and 0 deletions
9
examples/stty-resize-copy
Executable file
9
examples/stty-resize-copy
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# This gets the dimentions of the terminal and puts the approprate stty command on the clipboard for reverse shells
|
||||
|
||||
|
||||
columns=$(stty -a < /dev/stdin | grep -oE 'columns [0-9]+' | cut -d' ' -f2)
|
||||
rows=$(stty -a < /dev/stdin | grep -oE 'rows [0-9]+' | cut -d' ' -f2)
|
||||
notify-send "Terminal dimensions" "Rows: $rows\nColumns: $columns\nstty command on clipboard"
|
||||
echo "stty rows $rows cols $columns" | xclip -i -selection clipboard
|
Loading…
Add table
Add a link
Reference in a new issue