Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/removed-sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@ NPM-Packages are not users.
},
```

## NPM Users

NPM uses cloudflare bot detection

```json
"npm": {
"errorType": "status_code",
"url": "https://www.npmjs.com/~{}",
"urlMain": "https://www.npmjs.com/",
"username_claimed": "kennethsweezy"
},
```

## Pexels

As of 2020-01-21, all usernames are reported as not existing.
Expand Down
6 changes: 0 additions & 6 deletions sherlock_project/resources/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2808,12 +2808,6 @@
"urlMain": "https://note.com/",
"username_claimed": "blue"
},
"npm": {
"errorType": "status_code",
"url": "https://www.npmjs.com/~{}",
"urlMain": "https://www.npmjs.com/",
"username_claimed": "kennethsweezy"
},
"omg.lol": {
"errorMsg": "\"available\": true",
"errorType": "message",
Expand Down
9 changes: 9 additions & 0 deletions sherlock_project/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""

import sys
from collections.abc import Mapping

try:
from sherlock_project.__init__ import import_error_test_var # noqa: F401
Expand Down Expand Up @@ -395,6 +396,14 @@ def sherlock(
elif any(hitMsg in r.text for hitMsg in WAFHitMsgs):
query_status = QueryStatus.WAF


elif any(hitMsg in r.text for hitMsg in WAFHitMsgs):
query_status = QueryStatus.WAF

elif isinstance(r.headers, Mapping) and r.headers.get('cf-mitigated') == 'challenge':
query_status = QueryStatus.WAF


else:
if any(errtype not in ["message", "status_code", "response_url"] for errtype in error_type):
error_context = f"Unknown error type '{error_type}' for {social_network}"
Expand Down