You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
Suggest a basic change to drop the "." in the startswith condition.
# Check whether we have HTTP behavior data cached for a domain.
# If so, check if we know it canonically prepends 'www'.
def domain_uses_www(domain, cache_dir="./cache"):
# Don't prepend www to www.
if domain.startswith("www."):
return False
Thoughts?
The text was updated successfully, but these errors were encountered:
If I'm reading it correctly, it's just looking to see if the canonical endpoint starts with www. in which case the calling function may want to prepend www. when checking whatever it is checking for, so I think the fix should be to change lines 581 - 582 to explicitly check for the . after the www:
We noticed recently that we were getting failures for domains with www[0-9]..
Case in point, www1.canada.ca, where pshtt, would recognize the relevant domains, but then sslyze was failing, as it was scanning www.www1.canada.ca
Relevent references to code below. Just curious if others had seen this behaviour, and had a better idea to fix then mine.
domain-scan/scanners/sslyze.py
Line 67 in d26b11d
which calls
domain-scan/utils/utils.py
Line 567 in d26b11d
Suggest a basic change to drop the "." in the startswith condition.
Thoughts?
The text was updated successfully, but these errors were encountered: