Directory Bruter is a powerful tool for directory brute-forcing on web servers. It helps to discover hidden directories and files by making HTTP requests with a list of potential directory names and extensions.
- 🚀 Multi-threaded for fast execution.
- 📂 Supports custom wordlists for flexible scanning.
- 🌐 Configurable HTTP headers with random User-Agent.
- 💾 Option to save results to a file.
- 🛠️ Verbose mode for detailed logs and errors.
-
Clone the repository:
git clone https://github.com/lalaio1/PathBrut.git
-
Navigate to the directory:
cd PathBrut -
Install the required dependencies:
pip install -r requirements.txt
To use Directory Bruter, run the script with the necessary arguments. Here's a basic example:
python PathBrut.py -u http://example.com -w /path/to/wordlist.txt -t 10 -o -v -e .php,.html| Argument | Description | Default |
|---|---|---|
-u, --url |
Target URL (e.g., http://example.com) |
Required |
-w, --wordlist |
Path to the wordlist file | Required |
-t, --threads |
Number of threads to use (default is 1) | 1 |
-o, --output |
Save results to a file | Disabled |
-v, --verbose |
Verbose mode (show detailed logs and errors) | Disabled |
-e, --extensoes |
List of extensions to try (e.g., .php,.exe,.bak) |
None |
-
Basic Scan:
python PathBrut.py -u http://example.com -w /path/to/wordlist.txt
-
Scan with Custom Threads and Verbose Output:
python PathBrut.py -u http://example.com -w /path/to/wordlist.txt -t 5 -v
-
Scan with Extensions and Save Results:
python PathBrut.py -u http://example.com -w /path/to/wordlist.txt -e .php,.html -o
python PathBrut.py -u http://example.com -w /path/to/wordlist.txtOutput:
> Target: http://example.com
-----------------------------------------
[+] 200: http://example.com/admin
[+] 200: http://example.com/login
[-] 404: http://example.com/hidden
python PathBrut.py -u http://example.com -w /path/to/wordlist.txt -e .php,.html -vOutput:
> Target: http://example.com
-----------------------------------------
[+] 200: http://example.com/admin.php
[+] 200: http://example.com/login.html
[-] 404: http://example.com/hidden.php
[ERROR] Request failed: http://example.com/unknown.php
This project is licensed under the MIT License.
For any issues or inquiries, please open an issue on GitHub.
Made with ❤️ by lalaio1

