
Schneller modularer Brute-Force-Angreifer für Weboberflächen.
Schneller modularer Web-Oberflächen-Bruteforcer
python3 -m pip install -r requirements.txt
$ 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 username:password 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
Beispiel:
python3 web-brutator.py --target jenkins --url https://mytarget.com -U ./usernames.txt -P ./passwords.txt -s -t 40
Hinweis: Einige Produkte implementieren standardmäßig eine Kontosperrung nach einer bestimmten Anzahl fehlgeschlagener Authentifizierungsversuche (z.B. Weblogic, Tomcat...).
web-brutator weist den Benutzer zu Beginn des Bruteforce-Angriffs darauf hin, falls dies der Fall ist. Berücksichtigen Sie dies, bevor Sie einen Bruteforce auf solche Ziele starten.
web-brutator kann standardmäßige Web-Authentifizierungsformulare automatisch erkennen und Bruteforce automatisch durchführen. Diese Funktion ist über das Modul standardform verfügbar. Sie ist noch experimentell und kann zu Fehlalarmen/Fehlern führen, da sie auf mehreren Heuristiken basiert.
Nicht unterstützt:
Beispiel:
python3 web-brutator.py --target standardform --url https://mytarget.com -U ./usernames.txt -P ./passwords.txt -s -t 40 -v
Dieses Demo ist gegen eine phpMyAdmin-Oberfläche gerichtet
Das Hinzufügen eines neuen Authentifizierungs-Bruteforce-Moduls ist recht einfach:
lib/core/modules/.lib/core/modules/ an. Beachten Sie, dass HTTP-Anfragen über die statischen Methoden der Klasse Requester erfolgen sollten: Requester.get(), Requester.post(), Requester.http_auth().#!/usr/bin/env python3
# -*- 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.
:param str username: Username to check
:param str password: Password to check
:return: Boolean indicating authentication status
:raise AuthException:
"""
# Implement code here
-l).