diff --git a/scripts/archive_pocs.py b/scripts/archive_pocs.py index 73d879ed866..3850d615b47 100644 --- a/scripts/archive_pocs.py +++ b/scripts/archive_pocs.py @@ -288,11 +288,15 @@ def verify_snapshot(snap: dict, original: str, expected_blobs=(), repo_id=None) if not body: return False raw = parse.urlsplit(original).hostname == 'raw.githubusercontent.com' + verified_raw = False if raw and expected_blobs and len(body) >= 256: digest = hashlib.sha1(b'blob ' + str(len(body)).encode() + b'\0' + body).hexdigest() if digest not in expected_blobs: return False - if not raw and ('html' in mime or body.lstrip().startswith(b'404 Not Found', b'