Created
January 18, 2019 11:50
-
-
Save 003random/1124382478e81f1862f7398038ef5d34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
while getopts ":d:" opt; do | |
case $opt in | |
d) | |
domain=$OPTARG | |
;; | |
esac | |
done | |
if [[ -z "${domain// }" ]]; | |
then | |
echo "[-] No domain supplied. Use -d domain.com" | |
echo "[!] Exiting..." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Do you have a screenshot? Also, which parameters did you give the script? :)