#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/ddos url=https://dataswamp.org eye () { local cores=${1:-1} goldeneye $url -w $cores } slow () { slowloris $url } time-wget () { local times=${1:-100} local url=${2:-https://dataswamp.org} local beg local dl_time while true; do beg=$(date -Is) repeat $times wget -q -O /dev/null $url dl_time=$(dateutils.ddiff $beg now) echo -n $dl_time beg=$(date -Is) repeat $times torsocks wget -q -O /dev/null $url dl_time=$(dateutils.ddiff $beg now) echo " ${dl_time} (${times}T)" done }