mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
don't scan the same host twice
This commit is contained in:
parent
f1d3b51749
commit
2f56f0515e
@ -24,6 +24,10 @@ function wait_for_jobs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scan_host() {
|
function scan_host() {
|
||||||
|
# do not scan the same host multiple times
|
||||||
|
if [ -e results/$1@$2 ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
tcping -u 10000000 $2 443;
|
tcping -u 10000000 $2 443;
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
return
|
return
|
||||||
@ -32,6 +36,10 @@ function scan_host() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scan_host_no_sni() {
|
function scan_host_no_sni() {
|
||||||
|
# do not scan the same host multiple times
|
||||||
|
if [ -e results/$1 ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
tcping -u 10000000 $1 443;
|
tcping -u 10000000 $1 443;
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user