Small changes to dmenu-like scripts
This commit is contained in:
parent
b547a8e2a6
commit
339ba9e889
6 changed files with 21 additions and 19 deletions
|
@ -36,14 +36,26 @@ function getReverseShell() {
|
|||
cut -d'|' -f2-
|
||||
}
|
||||
|
||||
function getRows(){
|
||||
stty -a | head -n 1 | cut -d ';' -f 2 | cut -d ' ' -f 3
|
||||
}
|
||||
|
||||
function getCols(){
|
||||
stty -a | head -n 1 | cut -d ';' -f 3 | cut -d ' ' -f 3
|
||||
}
|
||||
|
||||
function display() {
|
||||
ip=$(getIP)
|
||||
port=$(getPort)
|
||||
reverseShell=$(getReverseShell $ip $port)
|
||||
|
||||
echo -n "$reverseShell" | /usr/bin/xclip -i -selection clipboard
|
||||
echo -n "$reverseShell" | /usr/bin/xclip -i -selection primary
|
||||
|
||||
nc -lvnp $port
|
||||
#Put the tty back to normal
|
||||
# This is useful if I got a nice shell before
|
||||
stty -raw echo
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue