314ma

miio

Jan 13th, 2021
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data