Skip to main content

A lightweight subdomain brute-forcing tool with live updates via callback.

Project description

SubBrute

SubBrute is a lightweight Python package for brute-forcing subdomains of a given domain using a wordlist.

Installation

To install subbrute, run the following command:

pip install subbrute

Usage

Python Script

import subbrute

domain = "example.com"
wordlist = subbrute.load("list.txt")

def the_update(subdomain, ip, status):
    if status == "valid":
        print(f"Found Subdomain: {subdomain} IP: {ip}")
    else:
        print(f"Not Found: {subdomain}")

results = subbrute.scan(domain, wordlist, callback=the_update)

print("Scan complete!")

Example Wordlist (list.txt)

Create a text file named list.txt with subdomain names like this:

www
api
mail
test

Example Output

Found Subdomain: www.example.com IP: 93.184.216.34
Not Found: api.example.com
Not Found: mail.example.com
Found Subdomain: test.example.com IP: 93.184.216.35
Scan complete!

Customizing the Function

You can customize the live update function to display the results, log them, or perform other actions as needed. Here's an example of a more advanced function:

def advanced_update(subdomain, ip, status):
    if status == "valid":
        print(f"Subdomain found: {subdomain} -> {ip}")
    else:
        print(f"Subdomain not found: {subdomain}")

Thanks

Thank you for using SubBrute!

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subbrute-2.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

subbrute-2.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file subbrute-2.0.0.tar.gz.

File metadata

  • Download URL: subbrute-2.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for subbrute-2.0.0.tar.gz
Algorithm Hash digest
SHA256 841fd0233e6358f8671a7a0f2e6fdf4f4b1b316ed4bebf4650746852017971c2
MD5 338453430785405bd248012b9d5ae285
BLAKE2b-256 85b9c93dc4a8b08d9f0cacf695f79d18c5d6433e343b05a2e1620e77154325aa

See more details on using hashes here.

File details

Details for the file subbrute-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: subbrute-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for subbrute-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3ea9e99d5edcc41a015730ab21280771e23358fc7663bf116667c4a73ec685a
MD5 f29b494a94261415542636414d986feb
BLAKE2b-256 6ea716e0997e013b8a1517f6b52cf621328fbebf3d61206fc5ed74900756148f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page