Created
December 31, 2019 09:12
-
-
Save insi2304/987e78441f38b9896e623bbb0589f442 to your computer and use it in GitHub Desktop.
check for anonymous ftp access
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
for i in `cat domain_port_scan | grep -Po '21/tcp.*' | awk -F" " '{print $3}' | sort -u`; | |
do | |
echo "checking ftp on host: "$i; | |
wget --spider --tries=1 --user=anonymous --password=anonymous ftp://$i/ | |
if [ $? -ne 0 ]; then | |
echo "Failed to connect to ftp host" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment