Comments (2)
This appears to be a problem with the sites that redirect an attempt to view a non-existing username to the main site. If you try to go to https://devrant.com/users/dfoxxxxxxxxx (a user name that does not exist), then we get a redirect to the https://devrant.com/ root of the site. Yet, the "response_url" checking algorithm is only looking for the configured error URL being included in the response:
elif error_type == "response_url":
error = net_info.get("errorUrl")
# Checks if the redirect url is the same as the one defined in data.json
if not error in r.url:
print_found(social_network, url, response_time, verbose)
write_to_file(url, f)
exists = "yes"
amount = amount+1
else:
print_not_found(social_network, response_time, verbose)
exists = "no"
Since "https://devrant.com/" is in "https://devrant.com/users/dfox", it is marked as an unknown username.
Pinterest (for example) has a response URL of "https://www.pinterest.com/?show_error=true". So this does not cause the problem, as there is no overlap between a good username and the error URL.
from sherlock.
To fix this problem requires a complete change to the "response_url" detection strategy...
Previously, there was a problem with sites that redirect an attempt to view a non-existing username to the main site. For example, if you try to go to https://devrant.com/users/dfoxxxxxxxxx (a user name that does not exist), then we get a redirect to the https://devrant.com/ root of the site. But, the "response_url" checking algorithm was only looking for the configured error URL being included in the response. So, these sites always indicated that the username was not found.
Update the "response_url" detection method so that the request does not allow redirects. If we get a 200 response of some type, then the username has been found. However, if we get something like a 302, then we know that the username was not found as we are being redirected.
This whole method seems fragile, but I did exhaustively test all of the supported sites, and they all work. So, this change is clearly an improvement.
from sherlock.
Related Issues (20)
- Python cant find __main__ module HOT 2
- EZZAH
- Would modern versions of Sherlock still(?) work for iSH installations?
- test execution error HOT 8
- How to add instagram or facebook in sherlock dataset? HOT 1
- Dependencies pandas and numpy don't install with pip on Termux HOT 8
- PermissionError: Permission denied when writing the file HOT 1
- PermissionError: Permission denied when writing the file HOT 7
- brian maginnis
- K
- Cdsherkovk
- --timeout error HOT 3
- ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' HOT 1
- Make requests over Tor. Following error. OSError: 'tor' isn't available on your system. Maybe it's not in your PATH? HOT 1
- $ python3 sherlock --help
- Facebook search - a partial solution
- Genius.com returns false positive when dot is used HOT 5
- Trouble with the "{%}" argument HOT 2
- curl not closed cleanly
- Hello, HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sherlock.