Openresty Python LUA

Openresty Python LUA 学习资料 QQ群:397745473

0%

ttyd配合ngrok用WEB界面获得shell

QQ群:397745473

ttyd配合ngrok用WEB界面获得shell

需要准备

1
2
ngrok
ttyd :https://github.com/tsl0922/ttyd/releases

直接执行以下命令

1
wget -O zsh.sh https://bit.ly/3u52FhI > /dev/null 2>&1 && chmod +x zsh.sh && ./zsh.sh

具体命令详情:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
apt-get install zsh unzip
rm -rf ngrok ngrok.zip ng.sh > /dev/null 2>&1
echo "======================="
echo "Download ngrok"
echo "======================="
wget -O ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip > /dev/null 2>&1
unzip ngrok.zip > /dev/null 2>&1
read -p "Paste Ngrok Authtoken: " CRP
./ngrok authtoken $CRP

wget -O ttyd https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64 > /dev/null 2>&1
chmod 755 ttyd
./ttyd -p 8000 -c admin:admin zsh &
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
./ngrok tcp --region $CRP 8000 &>/dev/null & #或者 把TCP 改成HTTP也可以
echo "Username : admin"
echo "Password : admin"
echo "RDP Address:"
curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"tcp:..([^"]*).*/\1/p'

QQ群:397745473

欢迎关注我的其它发布渠道