Advertisement
Guest User

Untitled

a guest
Apr 4th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #!/bin/bash
  2. #Script auto create trial user SSH
  3. #yg akan expired setelah 1 hari
  4.  
  5.  
  6.  
  7. Login=trial`</dev/urandom tr -dc X-Z0-9 | head -c4`
  8. hari="1"
  9. Pass=`</dev/urandom tr -dc a-f0-9 | head -c9`
  10. IP=`dig +short myip.opendns.com @resolver1.opendns.com`
  11. useradd -e `date -d "$hari days" +"%Y-%m-%d"` -s /bin/false -M $Login
  12. echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null
  13. echo -e ""
  14. echo -e "==== Create Trial SSH ===="
  15. echo -e "IP Host : $IP"
  16. echo -e "Port : 443 (dropbear)"
  17. echo -e "Username : $Login"
  18. echo -e "Password: $Pass\n"
  19. echo -e "==========================="
  20. echo -e " Powered By VIP017 "
  21. echo -e ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement