Skip to content

Instantly share code, notes, and snippets.

@jeffmcjunkin
Last active November 20, 2019 00:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmcjunkin/a9307f2371d83ae669fd0119e1209917 to your computer and use it in GitHub Desktop.
Save jeffmcjunkin/a9307f2371d83ae669fd0119e1209917 to your computer and use it in GitHub Desktop.
Look, it got the job done, okay?
for rate in 100 1000 10000 20000 40000 100000; do for attempt in $(seq 1 5); do echo -n "Rate: $rate / Attempt: $attempt - "; responses=$(grep 'state state="open" reason=' /tmp/DO-masscan-${rate}.${attempt}.xml | cut -d" " -f3- | sort -u | wc -l); echo "scale=5; 100 * (1 - ( $responses /50001))" | bc; done; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment