Advertisement
Guest User

Untitled

a guest
Apr 4th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2. #Script auto create trial user SSH
  3. #yg akan expired setelah 1 hari
  4. # VIP 017 - 089602518248
  5. Login=trial-`</dev/urandom tr -dc X-Z0-9 | head -c4`
  6. masaaktif="1"
  7. Pass=`</dev/urandom tr -dc a-f0-9 | head -c9`
  8. IP=`dig +short myip.opendns.com @resolver1.opendns.com`
  9. useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login
  10. echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
  11. echo -e "Host: $IP"
  12. echo -e "Port: 443,143,80"
  13. echo -e "Username: $Login "
  14. echo -e "Password: $Pass\n"
  15. echo -e ""
  16. echo -e "Akun ini hanya aktif 1 hari"
  17. echo -e "Script by \e[1;33;44mVIP017\e[0m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement