PrivacyScore / privacyscanner

Privacyscanner is the new scanning backend component of a future PrivacyScore version
MIT License
20 stars 11 forks source link

Importing prior results causes testssl_https to raise KeyError: 'current_stage' #26

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago
> privacyscanner scan --import-results blog.usni.org_0f7fbeecb7/results.json --scan-modules chromedevtools,dns,testssl_https https://blog.usni.org 
chromedevtools> 2020-02-21 11:23:13,770: [INFO] Starting chromedevtools (scanner.py:180)
chromedevtools> 2020-02-21 11:23:43,095: [INFO] Finished chromedevtools (scanner.py:204)
dns> 2020-02-21 11:23:43,098: [INFO] Starting dns (scanner.py:180)
dns> 2020-02-21 11:23:43,100: [WARNING] GeoIP database not available. Country lookup disabled. (dns.py:173)
dns> 2020-02-21 11:23:43,296: [WARNING] [] (dns.py:49)
dns> 2020-02-21 11:23:44,043: [INFO] Finished dns (scanner.py:204)
testssl_https> 2020-02-21 11:23:44,045: [INFO] Starting testssl_https (scanner.py:180)
testssl_https> 2020-02-21 11:23:44,047: [ERROR] Scan module `testssl_https` failed. (scanner.py:198)
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanner.py", line 185, in scan_site
    mod.scan_site(result, scan_meta)
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanmodules/testsslsh/base.py", line 64, in scan_site
    stage_key = testssl['current_stage']
KeyError: 'current_stage'
testssl_https> 2020-02-21 11:23:44,061: [INFO] Finished testssl_https (scanner.py:204)
testssl_https> 2020-02-21 11:23:44,062: [INFO] Starting testssl_https (scanner.py:180)
testssl_https> 2020-02-21 11:23:44,063: [ERROR] Scan module `testssl_https` failed. (scanner.py:198)
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanner.py", line 185, in scan_site
    mod.scan_site(result, scan_meta)
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanmodules/testsslsh/base.py", line 64, in scan_site
    stage_key = testssl['current_stage']
KeyError: 'current_stage'
testssl_https> 2020-02-21 11:23:44,082: [INFO] Finished testssl_https (scanner.py:204)
testssl_https> 2020-02-21 11:23:44,083: [INFO] Starting testssl_https (scanner.py:180)
testssl_https> 2020-02-21 11:23:44,086: [ERROR] Scan module `testssl_https` failed. (scanner.py:198)
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanner.py", line 185, in scan_site
    mod.scan_site(result, scan_meta)
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanmodules/testsslsh/base.py", line 64, in scan_site
    stage_key = testssl['current_stage']
KeyError: 'current_stage'
testssl_https> 2020-02-21 11:23:44,109: [INFO] Finished testssl_https (scanner.py:204)
testssl_https> 2020-02-21 11:23:44,110: [INFO] Starting testssl_https (scanner.py:180)
testssl_https> 2020-02-21 11:23:44,112: [ERROR] Scan module `testssl_https` failed. (scanner.py:198)
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanner.py", line 185, in scan_site
    mod.scan_site(result, scan_meta)
  File "/usr/lib/python3.7/site-packages/privacyscanner/scanmodules/testsslsh/base.py", line 64, in scan_site
    stage_key = testssl['current_stage']
KeyError: 'current_stage'
testssl_https> 2020-02-21 11:23:44,145: [INFO] Finished testssl_https (scanner.py:204)