Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Script auto create trial user SSH
- #yg akan expired setelah 1 hari
- Login=trial`</dev/urandom tr -dc X-Z0-9 | head -c4`
- hari="1"
- Pass=`</dev/urandom tr -dc a-f0-9 | head -c9`
- IP=`dig +short myip.opendns.com @resolver1.opendns.com`
- useradd -e `date -d "$hari days" +"%Y-%m-%d"` -s /bin/false -M $Login
- echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
- echo -e ""
- echo -e "==== Create Trial SSH ===="
- echo -e "IP Host : $IP"
- echo -e "Port : 443 (dropbear)"
- echo -e "Username : $Login"
- echo -e "Password: $Pass\n"
- echo -e "==========================="
- echo -e " Powered By VIP017 "
- echo -e ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement