-
-
Save iykex/f864e72d62596a5aab5256d67d4da250 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update | |
apt install screen -y | |
apt install sudo -y | |
sudo adduser vybes --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password | |
echo "vybes:YaaSweet360" | sudo chpasswd | |
sudo usermod -aG sudo,adm vybes | |
clear | |
rm -rf ngrok ngrok.zip ng.sh > /dev/null 2>&1 | |
wget -O ng.sh https://bit.ly/GCngr0k > /dev/null 2>&1 | |
chmod +x ng.sh | |
./ng.sh | |
echo "=======================" | |
echo choose ngrok region | |
echo "=======================" | |
echo "us - United States (Ohio)" | |
echo "eu - Europe (Frankfurt)" | |
echo "ap - Asia/Pacific (Singapore)" | |
echo "au - Australia (Sydney)" | |
echo "sa - South America (Sao Paulo)" | |
echo "jp - Japan (Tokyo)" | |
echo "in - India (Mumbai)" | |
read -p "choose ngrok region: " CRP | |
nohup ./ngrok tcp --region $CRP 3389 &>/dev/null & | |
clear | |
echo "====================================" | |
echo "Install XFCE" | |
echo "====================================" | |
sudo apt install -y xfce4 xfce4-goodies > /dev/null 2>&1 | |
echo "=======25%" | |
sudo apt install firefox -y > /dev/null 2>&1 | |
echo "=============50%" | |
sudo apt-get install -y xrdp > /dev/null 2>&1 | |
sudo apt-get install -y xfce4-terminal | |
echo "=================70%" | |
echo xfce4-session >~/.xsession | |
echo "=====================90%" | |
sudo service xrdp start | |
clear | |
echo "=======================100%" | |
echo "====================================" | |
echo "Username : vybes" | |
echo "Password : YaaSweet360" | |
echo RDP Address: | |
curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"tcp:..([^"]*).*/\1/p' | |
echo "====================================" | |
rm -rf ngrok.zip xrdp.sh | |
b='\033[1m' | |
r='\E[31m' | |
g='\E[32m' | |
c='\E[36m' | |
endc='\E[0m' | |
enda='\033[0m' | |
# Branding | |
printf """$c$b | |
██╗ ██╗███╗ ██╗ ██████╗ ██████╗ █████╗ ██╗ ██╗ ██████╗ ███████╗████████╗██╗███╗ ██╗ ██████╗ | |
$endc$enda"""; | |
sleep 43200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment