2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-17 04:13:40 +01:00
cipherscan/top1m/testtop1m.sh

15 lines
407 B
Bash
Raw Normal View History

2014-01-09 17:52:17 +01:00
#!/usr/bin/env bash
2014-01-09 21:16:40 +01:00
parallel=50
2014-01-09 17:52:17 +01:00
[ ! -e "results" ] && mkdir results
i=1
while [ $i -lt 1000000 ]
do
2014-01-09 21:16:40 +01:00
echo processings sites $i to $((i + parallel))
for t in $(tail -$((1000000 - $i)) top-1m.csv | head -$parallel |cut -d ',' -f 2)
2014-01-09 17:52:17 +01:00
do
2014-01-09 21:16:40 +01:00
(tcping -u 10000000 $t 443; if [ $? -gt 0 ];then continue;fi;../cipherscan $t:443 -json > results/$t )&
2014-01-09 17:52:17 +01:00
done
2014-01-09 21:16:40 +01:00
sleep 7
i=$(( i + parallel))
2014-01-09 17:52:17 +01:00
done