Coder Social home page Coder Social logo

cqr-cryeye-forks / sherlock-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from natrix-fork/sherlock-js

0.0 1.0 0.0 324 KB

Find usernames across over 170 social networks - Fast & flexible remake of sdushantha/sherlock

License: MIT License

JavaScript 100.00%

sherlock-js's Introduction

Sherlock.js


Screenshot

This is a "remake" of the original sherlock written in Python by sdushantha that I made mostly because I was bored and found that it had some flaws.

It is written in Node.js simply because that's the language I'm the most confortable with, but that's probably not the best choice and I'll see if I can make a Rust version or something.

Notable differences compared to sherlock (at time of writing):

  • 0 dependencies pre-built binaries for Windows/macOS/Linux
  • Tests all services concurrently (asynchronous/"multithreaded")
  • Checks whether accounts exists by looking at both the HTTP response status code and stripping down the HTML code to search if the desired username is written on the page
  • Follows HTTP(S) redirections
  • Command line switches allow piping output in various formats; designed to be used with xargs

Available command line switches

  • General:
    • --help: Display this message
    • --version or -v: Print version
  • Options:
    • --name user or -n user: Specify a username to search for (remove prompt)
    • --only-found or -f: Only output when username was found (skip errors/404s)
  • Output formats:
    • --json or -j: Output results in minified JSON
    • --csv or -c: Output results in CSV format
    • --pretty-json: Output results in whitespaced JSON

Examples:

Search for all accounts named Smith, display live results:

./sherlockjs --name Smith

Get a human-readable file with links to all accounts named Smith:

./sherlockjs --pretty-json --only-found -n Smith > smith_accounts.json

You can use sherlockjs non-interactive options combined with common shell utilities to easily batch-process lists of users, and leverage sherlockjs' multithreaded design to create powerful, fast, extensive one-liner searches.

For instance, to batch-process a list of usernames, output each user's accounts in separate .csv files, and start all sherlockjs searches simultaneously (careful with the potential # of threads!):

cat users.txt | xargs -r -P 0 -I % sh -c "./sherlockjs -cf -n % > accounts_%.csv"

sherlock-js's People

Contributors

gitsquared avatar fabelx avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.