Advertisement
314ma

miio

Jan 13th, 2021
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. check_dns() {
  2. nslookup $1 2>1 | grep Name | wc -l
  3. }
  4.  
  5. generate_domain() {
  6. characters="abcdefghijklmnopqrstuwxyz0123456789"
  7. for i in {0..34} ; do
  8. for j in {0..34} ; do
  9. local res=$(check_dns ${characters:$i:1}${characters:$j:1}.api.io.mi.com)
  10. if [ $res -eq 1 ]
  11. then
  12. echo ${characters:$i:1}${characters:$j:1}.api.io.mi.com
  13. fi
  14. done
  15. done
  16. }
  17.  
  18. de.api.io.mi.com
  19. in.api.io.mi.com
  20. i2.api.io.mi.com
  21. p1.api.io.mi.com
  22. ru.api.io.mi.com
  23. sg.api.io.mi.com
  24. st.api.io.mi.com
  25. tw.api.io.mi.com
  26. us.api.io.mi.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement