Giter Club home page Giter Club logo

dolibrute's Introduction

What is this ?

DoliBrute is a login brute force tool with captcha bypass for Dolibarr login page.

Disclaimer

All information and software available on this page are for educational and authorized purposes only.

Install and dependencies

Installation :

git clone https://github.com/BaadMaro/DoliBrute
cd DoliBrute
pip install -r requirements.txt

Change the variable pytesseract.pytesseract.tesseract_cmd for tesseract binary location and OS.

# Linux
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"

# Windows
pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files/Tesseract-OCR/tesseract.exe'

Usage

python3 DoliBrute.py -u http://IP/ -U username -P passwords.txt
 
 _____        _ _ ____             _       
|  __ \      | (_)  _ \           | |      
| |  | | ___ | |_| |_) |_ __ _   _| |_ ___ 
| |  | |/ _ \| | |  _ <| '__| | | | __/ _ \
| |__| | (_) | | | |_) | |  | |_| | ||  __/
|_____/ \___/|_|_|____/|_|   \__,_|\__\___|
  
  DoliBrute is a login brute force tool with captcha bypass for Dolibarr login page.                                        
  V0.1
  Coded by BaadMaro
    
Usage: 
    python3 DoliBrute.py -u http://127.0.0.1/ -U admin -P default-passwords.txt


Options:
  -h, --help     show this help message and exit
  -U USERNAME    specify username
  -P PASSWORDS   specify passwords list
  -u BASE_URL    specify base url with "/" at the end
  --proxy=PROXY  specify proxy with IP:Port

Example

image

With proxy

image

Tested versions

  • [*] 15.0.2

Lab setup with docker

Create docker-compose.yml file as following:

version: "3"

services:
    mariadb:
        image: mariadb:latest
        environment:
            MYSQL_ROOT_PASSWORD: root
            MYSQL_DATABASE: dolibarr

    web:
        image: tuxgasy/dolibarr
        environment:
            DOLI_DB_HOST: mariadb
            DOLI_DB_USER: root
            DOLI_DB_PASSWORD: root
            DOLI_DB_NAME: dolibarr
            DOLI_URL_ROOT: 'http://0.0.0.0'
            PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
        ports:
            - "80:80"
        links:
            - mariadb

Then run all services docker-compose up -d. Now, go to http://0.0.0.0 to access to the new Dolibarr installation.

To do

  • More clean code.
  • HTTPS support ( i need to test it).
  • Erros Handling.
  • โœ… Succes login test case with 302 redirection.
  • OS detection for tesseract_cmd variable.
  • Improve OCR detection.
  • Use a wordlist for usernames.
  • Options for no captcha use.
  • Handle errors messages for other languages (?).
  • verbose mode.
  • Threading.
  • Custom User Agent.
  • โœ… Proxy support.

Kudos

Thanks to some exploits authors in exploit-db, I was inspired by their code :

dolibrute's People

Contributors

baadmaro avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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