Skip to content

Instantly share code, notes, and snippets.

@Gictorbit
Last active June 12, 2022 07:34
Show Gist options
  • Save Gictorbit/3ea1490089ccd1dfdf69e397aac54b06 to your computer and use it in GitHub Desktop.
Save Gictorbit/3ea1490089ccd1dfdf69e397aac54b06 to your computer and use it in GitHub Desktop.
ssh attak
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