123456789101112131415161718192021222324 |
- #!/bin/bash
- red='\e[1;31m'
- green='\e[0;32m'
- NC='\e[0m'
- MYIP=$(wget -qO- https://icanhazip.com);
- echo "Checking VPS"
- clear
- last | grep ppp | grep still | awk '{print " ",$1," - " $3 }' > /tmp/login-db-pptp.txt;
- echo " "
- echo " "
- echo "===========================================";
- echo " "
- echo " "
- echo "-------------------------------------";
- echo " PPTP VPN User Login";
- echo "-------------------------------------";
- echo "Username --- IP";
- echo "-------------------------------------";
- cat /tmp/login-db-pptp.txt
- echo " "
- echo " "
- echo " "
- echo "===========================================";
- echo " ";
|