GithubHelp home page GithubHelp logo

logidoor's Introduction

logidoor

An automated brute forcing tool

About this project

A HTTP brute force tool bases on Mechanize browser. This is rewritten of https://github.com/dmknght/BruteforceHTTP/ with mechanicalsoup 1.0.0 and python3 only. The README for new tool isn't fully updated.

Installation

Requirements

name
python3
bs4 [beautifulsoup]
python-regex (optional)
python-lxml
html2text
mechanicalsoup
  1. On Debian distros: This project should work on both python2, python3 and pypy. But, unfortunately Debian and pip has mechanicalsoup for python3 only.
  • Install for python3:
sudo apt install python3 python3-regex git python3-uritools python3-bs4 python3-mechanicalsoup
sudo pip3 install html2text
  1. Clone the project:
git clone https://github.com/dmknght/BruteforceHTTP.git
  1. Run project
  • Python3: python3 main.py

Options

Usage: logidoor.py [options] <url>

Options:

-u <word_list> : Add word list for username field
-p <word_list> : Add word list for password field
-U <username>: user1:user2:user3

Usage

Use default userlist and passlit:

python main.py <TARGET URL>

Use default passlist for user admin (for multiple usernames, use user1:user2:user3):

python main.py -U admin <TARGET URL>

Use custom userlist and custom passlist:

python main.py -u <path to userlist> -p <path to passlist> <TARGET URL>

Brute force with random proxy address:

python main.py <TARGET URL> --getproxy --proxy

How this tool work

This tool will detect form field automatically, collect information and submit data therefor it can handle csrf token.

  • Update 1/1/2019: Auto choose HTTP Get authentication and HTTP POST form mode
  • Update 7/7/2019: Work with both python 2 and 3

Problems:

  • Detect form field error for some special cases. We will try to improve our function.
  • Wrong password matching: matching condition is not completed.

Further improvement (See TODO.md)

Limitation

  • Javascript website (mechanize library problem)
  • Login with captcha
  • There is a bug makes project can't detect login form (bs4 parse problem) (Please read WEBNOTE.md for test cases)

Why this / that (FAQ)

  • Q: What is this tool?
  • A: This tool is a brute-force attack tool, based on mechanize browser project. It means this tool can submit login request simulately.
  • Q: What can it do?
  • A: This tool is aimed to perform a brute-force attack automatically to all website with easy options.
  • Q: Why not other tools?
  • A: There are other tools can do brute force http. But...
    • Almost scripts are static. They can attack 1 or few website only (based on form name)
    • Hydra can do http login. But it has complex options, can't do login with CSRF token (and you have to give name of submit fields manually)
    • Burp suite: can't do CSRF form by default, doesn't show you the readable report, complex steps and free version is not very fast.
  • Q: This tool is aimed to brute-force all website, why it can't do this site:
  • A: There are known issues:
    • Javascript websites: mechanize can't do anything with javascript. Execute javascript brings security problems to client-side as well so, ... it is impossible right now.
    • Gmail, Yahoo: this 2 sites use 2 submit times. I am trying to combine this case to project
    • There are some login pages has wrong html syntax. I am working with mechanize to fix it
    • Captcha: This is not easy one. But I am trying my best.
  • Q: How about bypassing techniques?
  • A: I am trying to combine SQL injection login bypass as well. Be patient!
  • Q: Why does this tool show wrong result (multiple passwords for 1 username)
  • A: There are 2 known cases:
    • Web server shows block message with 200 HTTP Response (or error message in some cases). I am unable to analysis it exactly by now.
    • I've found "Bypass authentication" issue in some CCTV. I think it is a "race condition" vulnerability.
  • Q: You mentioned CCTV. So can this tool attack HTTP GET Authentication?
  • A: Yes it can. It will choose HTTP GET / HTTP POST FORM attack automatically
  • Q: How about wordlist? Secure password?
  • A: This tool brings some default wordlists. You can use your custom wordlist as well. But becareful with huge file, there is a memory management issue that i can't fix it right now. I am trying with generating password from keywords as well.
  • Q: Sounds like this tool is trash
  • A: Not really. I did some succesful real-world attacks with this tool and I can say it deserve to try. Ofcourse you can do it with other tools, or your own script. But as I said, my tool is easy to use and it will save your time.
  • Q: Why do you do this so slow?
  • A: I have to do almost everything: test, debug, analysis, research, ... @ZeroX-DG is doing his project, so I have to do it myself. I am not a good developer is an other reason. Actually I am not even a developer.
  • Q: Can I customize your tool?
  • A: Yes, you are welcome. But if you find something good, please hep me by make a pull request. It will help me (and others ;) ) so much.

Author

Additional information

  • This tool was created in Parrot Security OS 3.11, python 2.7.15rc1.
  • Fully tested on Parrot Security OS 4.4 and Debian 10.
  • Windows platform is unsupported

Credit

Special thank to all authors of these projects:

logidoor's People

Contributors

dmknght avatar

Watchers

 avatar

Forkers

sashka3076

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.