Giter VIP home page Giter VIP logo

modlogin's Introduction

ModLogin

ModLogin is a python-based tool that is capable of checking the validity of a given set of credentials against a number of well-known websites. ModLogin modules use the Requests and Mechanize libraries to perform login requests.

Screenshot (display names redacted)

History

After some of the larger password dumps were released in 2016, I began to take interest in how well (or poorly) websites' automated systems were detecting and responding to anomalous login events. It was an interesting exercise to examine at how different design their login authentication systems and what types of restrictions and countermeasures they have put in place.

Please do not use this tool for malicious purposes or to gain access to accounts that do not belong to you. This tool was not designed to check large numbers of credentials or brute force passwords.

Setup

I recommend setting up a virtual environment to install the required dependencies, but it's not required.

$ git clone https://github.com/Centurion89/ModLogin.git
$ cd ModLogin/
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Features

  • Customize a list of websites to test logins against or choose a pre-created list of email or username-based websites
  • Specify a single credential or provide a file containing multiple credentials to check
  • Certain modules parse out additional information once logged in such the real name or username for the account
  • Captcha/Login challenge detection
  • Automated debugging output

Usage

List available website modules:

python ModLogin.py -l

Check a single credential against a single website:

python ModLogin.py -u <email/username> -p <password> -s <website>

Check a single credential against a custom selection of websites using a custom useragent:

python ModLogin.py -u <email/username> -p <password> -s <website1,website2> -ua "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25"

Check a single credential against all supported websites:

python ModLogin.py -u <email/username> -p <password>

Check colon-delimited credentials from a file against multiple websites:

python ModLogin.py -f /tmp/credentials.txt -s airbnb,etsy,reddit

Login Terminology

SUCCESS = The login using the provided credential was successful.
FAILED = The login using the provided credential was unsuccessful.
CHALLENGE = The website is requiring some form of additional validation (captcha, two-factor, etc).
ERROR = The website responded with something that ModLogin wasn't designed to handle and ModLogin isn't sure which login status is appropriate.

Limitations

ModLogin depends on certain webpage elements that may change over time. These changes may cause modules to stop functioning properly. Additionally, many popular websites have implemented Javascript-based login fields or protections which makes building automated login modules for them difficult and/or time consuming. I will actively review pull requests for fixes and additional modules.

TODO

Implement asynchronous HTTPS requests using the grequests library. See TODO.txt for websites that do not yet have modules built for them. Please feel free to contribute your own modules.

Credits

This project drew some inspiration and a fair bit of code from Shard

modlogin's People

Contributors

clong avatar jessek 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.