Sherlock: Add common domains

Created on 2 Jan 2019  路  4Comments  路  Source: sherlock-project/sherlock

I think this tool is great for someone looking to create a new internet personna or company, so maybe it would be a logical addition to add a search for .com and .net domains, per example.

Most helpful comment

I'm agree with @naueramant, I think It could be a new project. since sherlock is just: 馃攷 Find usernames across social networks

All 4 comments

Seems like a new project which maybe uses sherlock as a module?

I don't think it would be necessary, a couple of lines of code with python-whois should suffice.

Here's a mockup of what could be added:

first, run:
pip3 install python-whois

at the top of sherlock.py, add:
import whois

in the method scherlock,

extensions = ['.com','.net','.me','.info']
for ext in extensions:

    domain = username + ext
    try:
        w = whois.whois(domain)       
        if w.status == None:
            print("\033[37;1m[\033[91;1m-\033[37;1m]\033[92;1m {}:\033[93;1m Not Found!".format(ext))
        else:
            print("\033[37;1m[\033[92;1m+\033[37;1m]\033[92;1m {}:\033[0m".format(ext), domain)
            write_to_file(domain, fname)
    except whois.parser.PywhoisError as e:
        print("\033[37;1m[\033[91;1m-\033[37;1m]\033[92;1m {}:\033[93;1m Error!".format(ext))

A problem with these requests is that they take up too much time, and maybe should be its own command

I'm agree with @naueramant, I think It could be a new project. since sherlock is just: 馃攷 Find usernames across social networks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Czechball picture Czechball  路  4Comments

moran04 picture moran04  路  3Comments

nareddyt picture nareddyt  路  4Comments

plgrazon picture plgrazon  路  6Comments

senthilnayagam picture senthilnayagam  路  4Comments