xanix
Advanced
- Joined
- 20.10.20
- Messages
- 110
- Reaction score
- 894
- Points
- 93
Web Brutator
Fast Modular Web Interfaces Bruteforcer? Install
python3 -m pip install -r requirements.txtUsage
$ python3 web-brutator.py -h__ __ . _______ __ __
/ \ / \ __\_ | \______ \_______ __ / |___ / | ___________
\ \/\/ // __ \| __ \ ______ | | /\ __ \ | \ \ \ __\ / _ \_ _ _\
\ /\ /| \\ \ /___/ | | \ | | \/ | /| | / __ \| | ( <_> ) | \/
\/\ / \_ >_ / |____ / || |__/ || (__ /| \__/|__|
\/ \/ \/ \/ \/
Version 0.2
usage: web-brutator.py [-h] [--url URL] [--target TYPE] [-u USERNAME]
[-U USERLIST] [-p PASSWORD] [-P PASSLIST]
[-C COMBOLIST] [-t THREADS] [-s] [-v] [-e MAX_ERRORS]
[--timeout TIMEOUT] [-l]
optional arguments:
-h, --help show this help message and exit
--url URL Target URL
--target TYPE Target type
-u, --username USERNAME Single username
-U, --userlist USERLIST Usernames list
-p, --password PASSWORD Single password
-P, --passlist PASSLIST Passwords list
-C, --combolist COMBOLIST Combos usernameassword list
-t, --threads THREADS Number of threads [1-50] (default: 10)
-s, --stoponsuccess Stop on success
-v, --verbose Print every tested creds
-e, --max-errors MAX_ERRORS Number of accepted consecutive errors (default: 10)
--timeout TIMEOUT Time limit on the response (default: 20s)
-l, --list-modules Display list of modules
Example:
python3 web-brutator.py --target jenkins --url https://mytarget.com -U ./usernames.txt -P ./passwords.txt -s -t 40
? Available Modules
- axis2
- coldfusion
- glassfish
- htaccess
- jboss
- jenkins
- joomla
- railo
- standardform
- tomcat
- weblogic
- websphere
? Standard web authentication form Auto-Detection
web-brutator can automatically detect standard web authentication forms and perform bruteforce automatically. This feature is available via the module standardform, it is still experimental and can lead to false positives/negatives since it is based on several heuristics.Not supported:
- Web authentication using Javascript;
- Authentication with CAPTCHA;
- 2-step authentication ...
python3 web-brutator.py --target standardform --url https://mytarget.com -U ./usernames.txt -P ./passwords.txt -s -t 40 -v
This demo is against a phpMyAdmin interface
? Add new module / Contribute
Adding a new authentication bruteforce module is pretty straightforward:- Create a new file with appropriate name under lib/core/modules/
- Create a class in this file, using the following template. Development is very easy, check any existing module under lib/core/modules/ for some examples. Note that HTTP requests should be done via the static methods provided by Requester class: Requester.get(), Requester.post(), Requester.http_auth().
# -- coding: utf-8 --
from lib.core.Exceptions import AuthException, RequestException
from lib.core.Logger import logger
from lib.core.Requester import AuthMode, Requester
class Mymodule:
def init(self, url, verbose=False):
self.url = url
# Other self variables can go here
def check(self):
"""
This method is used to detect the presence of the targeted authentication
interface.
:return: Boolean indicating if the authentication interface has been detected
"""
# Implement code here
def try_auth(self, username, password):
"""
This method is used to perform one authentication attempt.
aram str username: Username to check
aram str password: Password to check
:return: Boolean indicating authentication status
:raise AuthException:
"""
# Implement code here
- Module is then automatically available (check using -l option) from the command-line.
- Test the module to make sure it is working as expected !
- Make a pull request to add the module to the project