Last active
June 12, 2022 07:34
-
-
Save Gictorbit/3ea1490089ccd1dfdf69e397aac54b06 to your computer and use it in GitHub Desktop.
ssh attak
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
echo "attak,ip,city,location" > attak.txt && while read -r line; do myvar=$(echo "$line" | cut -d " " -f2) && echo "$line,$(geoiplookup "$myvar"|cut -d":" -f2)" || break; done<ipblock.txt | sed 's/\s/,/g'| sed 's/,,/,/g' >> attak.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment