add scripts from dmzscripts repo to scripts
This commit is contained in:
16
scripts/luserinstall/luserinstall.sh
Executable file
16
scripts/luserinstall/luserinstall.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
## Install luser.deb to remote host
|
||||
|
||||
DMZKEYFILE="/home/anon/.ssh/dmz"
|
||||
HOST="$1"
|
||||
|
||||
if [[ -z "$HOST" ]]; then
|
||||
echo "Set Luser Host"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ~/src/luser/build-deb
|
||||
make
|
||||
ssh-add -t 100 $DMZKEYFILE
|
||||
torsocks scp luser.deb $HOST:~/
|
||||
torsocks ssh $HOST "apt install -y /root/luser.deb ; rm /root/luser.deb"
|
Reference in New Issue
Block a user