Skip to content

Instantly share code, notes, and snippets.

@pry0cc
Created June 30, 2020 12:21
Show Gist options
  • Save pry0cc/42be035bfbef8b62854df8361193e1c7 to your computer and use it in GitHub Desktop.
Save pry0cc/42be035bfbef8b62854df8361193e1c7 to your computer and use it in GitHub Desktop.
for ip in $(cat 1000.txt); do echo "Scanning $ip..."; cn=$(timeout 2 python3 dumpCN.py "$ip"); echo "{\"ip\":\"$ip\", \"cn\":\"$cn\"}" | tee -a results.txt | jq; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment