Skip to content

Instantly share code, notes, and snippets.

@ShawnClake
Created December 20, 2017 19:47
Show Gist options
  • Save ShawnClake/3fc3eded444ee28ead49e3ba5f81ec7b to your computer and use it in GitHub Desktop.
Save ShawnClake/3fc3eded444ee28ead49e3ba5f81ec7b to your computer and use it in GitHub Desktop.
Entropy Generator - Taken from Loye Young
## list of mounted disks/partitions, to generate more disparate disk activity
# PARTITIONS=”/home /var /srv /usr/ /var/cache”
## list of sites using round-robin DNS
#ROUND_ROBINS=”www.yahoo.com google.com twitter.com outlook.com”
## How much entrophy do you want?
#STOP_LIMIT=”4200″
#START_LIMIT=”4100″
#while [ /dev/true ]
#do until [ “$(cat /proc/sys/kernel/random/entropy_avail)” -gt “$STOP_LIMIT” ]
#do while [ “$(cat /proc/sys/kernel/random/entropy_avail)” -lt “$START_LIMIT” ]
#do for thing in $PARTITIONS
#do echo $thing ====================================
#touch toss
#for robins in $ROUND_ROBINS
#do nslookup “$robins” 8.8.8.8 > toss
#nslookup “$robins” 8.8.4.4 >> toss
#nslookup “$robins” >> toss
#nslookup “$robins” 208.67.222.222 >> toss
#cat toss
#cp toss $thing/toss
#cat $thing/toss
#rm -f toss
#rm -f $thing/toss
#done
#done
#done
#done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment