Add shellinabox script

This commit is contained in:
c0de 2021-01-25 11:35:44 -06:00
parent 941161f388
commit 08f5f068ab
1 changed files with 15 additions and 0 deletions

15
home/bin/backdoor Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# Provides access over our VPN to a shell-in-a-box instance that
# is running on some WipeOS appliances. This backdoor exists for
# instances that the appliance is on the VPN, but for whatever reason
# we can't ssh in. This was brought about due to our Padnos customer.
CLIENTIP="$1"
if [[ $# -le 0 ]]; then
echo "please pass me the appliance's VPN address"
exit 1
fi
xdg-open http://localhost/shell/
sudo ssh -L "localhost:80:${CLIENTIP}:80" production-portal