mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 22:33:40 +01:00
tweaks
This commit is contained in:
parent
5df0fe3d52
commit
f3c8b24b8b
@ -1,18 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
parallel=50
|
||||||
[ ! -e "results" ] && mkdir results
|
[ ! -e "results" ] && mkdir results
|
||||||
i=1
|
i=1
|
||||||
while [ $i -lt 1000000 ]
|
while [ $i -lt 1000000 ]
|
||||||
do
|
do
|
||||||
echo processings sites $i to $((i + 50))
|
echo processings sites $i to $((i + parallel))
|
||||||
for t in $(tail -$((1000000 - $i)) top-1m.csv | head -50 |cut -d ',' -f 2)
|
for t in $(tail -$((1000000 - $i)) top-1m.csv | head -$parallel |cut -d ',' -f 2)
|
||||||
do
|
do
|
||||||
tcping -u 2000000 $t 443
|
(tcping -u 10000000 $t 443; if [ $? -gt 0 ];then continue;fi;../cipherscan $t:443 -json > results/$t )&
|
||||||
if [ $? -gt 0 ]
|
|
||||||
then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
../cipherscan $t:443 > results/$t &
|
|
||||||
done
|
done
|
||||||
sleep 10
|
sleep 7
|
||||||
i=$(( i + 50))
|
i=$(( i + parallel))
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user