From 08f5f068ab86cf6fe1fa4df0ecf03a6f2484d710 Mon Sep 17 00:00:00 2001 From: c0de Date: Mon, 25 Jan 2021 11:35:44 -0600 Subject: [PATCH] Add shellinabox script --- home/bin/backdoor | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 home/bin/backdoor diff --git a/home/bin/backdoor b/home/bin/backdoor new file mode 100755 index 0000000..c5b6dd4 --- /dev/null +++ b/home/bin/backdoor @@ -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 +