Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check domain availability using whois #6

Open
0xbaha opened this issue Dec 1, 2021 · 1 comment
Open

Check domain availability using whois #6

0xbaha opened this issue Dec 1, 2021 · 1 comment

Comments

@0xbaha
Copy link
Owner

0xbaha commented Dec 1, 2021

#!/bin/bash
for domain in `cat domains.txt`
do
  echo $domain
  CHECK=`whois $domain.my.id`
  if [ "$CHECK" == "DOMAIN NOT FOUND" ]; then 
    echo $domain >> whois-results.txt
  fi
done
@0xbaha
Copy link
Owner Author

0xbaha commented Apr 5, 2022

3 letters

#!/bin/bash

letters=(a b c d e f g h i j k l m n o p q r s t u v w x y z)

for letter1 in "${letters[@]}"
do
  for letter2 in "${letters[@]}"
  do
    for letter3 in "${letters[@]}"
    do
      domain=$letter1$letter2$letter3
      CHECK=`whois $domain.my.id`
      if [ "$CHECK" == "DOMAIN NOT FOUND" ]; then 
        echo $domain >> tests-results.txt
      fi
    done
  done
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant