
Der rekursive Internet-Scanner für Hacker. 🧡
[](https://github.com/blacklanternsecurity/bbot)
[](https://www.python.org) [](https://github.com/blacklanternsecurity/bbot/blob/dev/LICENSE) [](https://pepy.tech/project/bbot) [](https://github.com/astral-sh/ruff) [](https://github.com/blacklanternsecurity/bbot/actions?query=workflow%3A"tests") [](https://codecov.io/gh/blacklanternsecurity/bbot) [](https://discord.com/invite/PZqkgxu5SA)
### **BEE·bot** ist ein vielseitiger Scanner, inspiriert von [Spiderfoot](https://github.com/smicallef/spiderfoot), der entwickelt wurde, um deine **Recon**, **Bug-Bounties** und **ASM** zu automatisieren!
https://github.com/blacklanternsecurity/bbot/assets/20261699/e539e89b-92ea-46fa-b893-9cde94eebf81
_Ein BBOT-Scan in Echtzeit – Visualisierung mit [VivaGraphJS](https://github.com/blacklanternsecurity/bbot-vivagraphjs)_
## Installation
```bash
# stable version
pipx install bbot
# bleeding edge (dev branch)
pipx install --pip-args '\--pre' bbot
```
_Weitere Installationsmethoden, einschließlich [Docker](https://hub.docker.com/r/blacklanternsecurity/bbot), findest du unter [Erste Schritte](https://www.blacklanternsecurity.com/bbot/Stable/)_
> **Upgrade von 2.x?** BBOT 3.0 enthält Breaking Changes an CLI, Presets, Modulen, Events und der Python-API. Siehe den [Migrationsleitfaden 2.x → 3.0](https://www.blacklanternsecurity.com/bbot/Stable/migration/3.0_breaking_changes/) ([Quelle](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/migration/3.0_breaking_changes.md)) vor dem Upgrade.
> **Tempo-Tipp:** BBOTs DNS-Resolver ([blastdns](https://github.com/blacklanternsecurity/blastdns)) startet mehrere Threads pro Resolver in `/etc/resolv.conf`. Das Hinzufügen weiterer ungefilterter Resolver beschleunigt Scans erheblich. Siehe die [Beispiel-resolv.conf](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/data/resolv-sample.conf) und [Tipps und Tricks](https://www.blacklanternsecurity.com/bbot/Stable/scanning/tips_and_tricks/#speed-up-scans-with-more-dns-resolvers) für Details.
## Beispielbefehle
### 1) Subdomain-Finder
Passive API-Quellen plus rekursiver DNS-Bruteforce mit zielspezifischen Subdomain-Mutationen.
```bash
# find subdomains of evilcorp.com
bbot -t evilcorp.com -p subdomain-enum
# passive sources only
bbot -t evilcorp.com -p subdomain-enum -rf passive
```
<!-- BBOT SUBDOMAIN-ENUM PRESET EXPANDABLE -->
<details>
<summary><b><code>subdomain-enum.yml</code></b></summary>
```yaml
description: Enumerate subdomains via APIs, brute-force
flags:
# enable every module with the subdomain-enum flag
- subdomain-enum
output_modules:
# output unique subdomains to TXT file
- subdomains
config:
dns:
threads: 25
brute_threads: 1000
# put your API keys here
# modules:
# github:
# api_key: ""
# chaos:
# api_key: ""
# securitytrails:
# api_key: ""
```
</details>
<!-- END BBOT SUBDOMAIN-ENUM PRESET EXPANDABLE -->
BBOT findet durchweg 20–50 % mehr Subdomains als andere Tools. Je größer die Domain, desto größer der Unterschied. Um zu erfahren, wie das möglich ist, siehe [So funktioniert es](https://www.blacklanternsecurity.com/bbot/Stable/how_it_works/).

### 2) Web-Spider
```bash
# crawl evilcorp.com, extracting emails and other goodies
bbot -t evilcorp.com -p spider
```
<!-- BBOT SPIDER PRESET EXPANDABLE -->
<details>
<summary><b><code>spider.yml</code></b></summary>
```yaml
description: Recursive web spider
modules:
- http
blacklist:
# Prevent spider from invalidating sessions by logging out
- "RE:/.*(sign|log)[_-]?out"
config:
web:
# how many links to follow in a row
spider_distance: 2
# don't follow links whose directory depth is higher than 4
spider_depth: 4
# maximum number of links to follow per page
spider_links_per_page: 25
```
</details>
<!-- END BBOT SPIDER PRESET EXPANDABLE -->
### 3) E-Mail-Gatherer
```bash
# quick email enum with free APIs + scraping
bbot -t evilcorp.com -p email-enum
# pair with subdomain enum + web spider for maximum yield
bbot -t evilcorp.com -p email-enum subdomain-enum spider
```
<!-- BBOT EMAIL-ENUM PRESET EXPANDABLE -->
<details>
<summary><b><code>email-enum.yml</code></b></summary>
```yaml
description: Enumerate email addresses from APIs, web crawling, etc.
flags:
- email-enum
output_modules:
- emails
```
</details>
<!-- END BBOT EMAIL-ENUM PRESET EXPANDABLE -->
### 4) Web-Scanner
```bash
# run a light web scan against www.evilcorp.com
bbot -t www.evilcorp.com -p web
# run a heavy web scan against www.evilcorp.com
bbot -t www.evilcorp.com -p web-heavy
```
<!-- BBOT WEB PRESET EXPANDABLE -->
<details>
<summary><b><code>web.yml</code></b></summary>
```yaml
description: Quick web scan
include:
- iis-shortnames
flags:
- web
```
</details>
<!-- END BBOT WEB PRESET EXPANDABLE -->
<!-- BBOT WEB-HEAVY PRESET EXPANDABLE -->
<details>
<summary><b><code>web-heavy.yml</code></b></summary>
```yaml
description: Aggressive web scan
include:
# include the web preset
- web
flags:
- web-heavy
```
</details>
<!-- END BBOT WEB-HEAVY PRESET EXPANDABLE -->
### 5) Alles überall auf einmal
```bash
# everything everywhere all at once
bbot -t evilcorp.com -p kitchen-sink
# roughly equivalent to:
bbot -t evilcorp.com -p subdomain-enum cloud-enum code-enum email-enum spider web paramminer webbrute web-screenshots
```
<!-- BBOT KITCHEN-SINK PRESET EXPANDABLE -->
<details>
<summary><b><code>kitchen-sink.yml</code></b></summary>
```yaml
description: Everything everywhere all at once
include:
- subdomain-enum
- cloud-enum
- code-enum
- email-enum
- spider
- web
- paramminer
- webbrute
- web-screenshots
- baddns-heavy
config:
modules:
dnsbrute:
recursive_mutations: true
dnscommonsrv:
recursive_mutations: true
webbrute:
avoid_wafs: False
wayback:
urls: True
parameters: True
archive: True
```
</details>
<!-- END BBOT KITCHEN-SINK PRESET EXPANDABLE -->
## So funktioniert es
Klicke auf das Diagramm unten, um die [inneren Abläufe](https://www.blacklanternsecurity.com/bbot/Stable/how_it_works/) von BBOT zu erkunden.
[](https://www.blacklanternsecurity.com/bbot/Stable/how_it_works/)
## Ausgabemodule
- [Neo4j](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#neo4j)
- [Teams](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#teams)
- [Discord](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#discord)
- [Slack](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#slack)
- [Postgres](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#postgres)
- [MySQL](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#mysql)
- [SQLite](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#sqlite)
- [Splunk](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#splunk)
- [Elasticsearch](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#elasticsearch)
- [CSV](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#csv)
- [JSON](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#json)
- [HTTP](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#http)
- [Websocket](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md#websocket)
...und [weitere](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md)!
## BBOT als Python-Bibliothek
#### Synchron
```python
from bbot.scanner import Scanner
if __name__ == "__main__":
scan = Scanner("evilcorp.com", presets=["subdomain-enum"])
for event in scan.start():
print(event)
```
#### Asynchron
```python
from bbot.scanner import Scanner
async def main():
scan = Scanner("evilcorp.com", presets=["subdomain-enum"])
async for event in scan.async_start():
print(event.json())
if __name__ == "__main__":
import asyncio
asyncio.run(main())
```
<details>
<summary><b>SIEHE: Dieser ruchlose Discord-Bot</b></summary>
Ein [BBOT-Discord-Bot](https://www.blacklanternsecurity.com/bbot/Stable/dev/#discord-bot-example), der auf den Befehl `/scan` reagiert. Scanne das Internet bequem von deinem Discord-Server aus!

</details>
## Funktionsübersicht
- Unterstützung für mehrere Ziele
- Web-Screenshots
- Suite offensiver Web-Module
- NLP-gestützte Subdomain-Mutationen
- Native Ausgabe an Neo4j (und mehr)
- Automatische Installation von Abhängigkeiten mit Ansible
- Durchsuche die gesamte Angriffsfläche mit benutzerdefinierten YARA-Regeln
- Python-API + Entwicklerdokumentation
## Ziele
BBOT akzeptiert eine unbegrenzte Anzahl von Zielen über `-t`. Du kannst Ziele entweder direkt in der Befehlszeile oder in Dateien angeben (oder beides!):
```bash
bbot -t evilcorp.com evilcorp.org 1.2.3.0/24 -p subdomain-enum
```
Ziele können Folgendes sein:
- DNS-Name (`evilcorp.com`)
- IP-Adresse (`1.2.3.4`)
- IP-Bereich (`1.2.3.0/24`)
- Offener TCP-Port (`192.168.0.1:80`)
- URL (`https://www.evilcorp.com`)
- E-Mail-Adresse (`[email protected]`)
- Organisation (`ORG:evilcorp`)
- Benutzername (`USER:bobsmith`)
- Dateisystem (`FILESYSTEM:/tmp/asdf`)
- Mobile App (`MOBILE_APP:https://play.google.com/store/apps/details?id=com.evilcorp.app`)
Weitere Informationen findest du unter [Ziele](https://www.blacklanternsecurity.com/bbot/Stable/scanning/#targets-t). Wie BBOT mit dem Scope umgeht, erfährst du unter [Scope](https://www.blacklanternsecurity.com/bbot/Stable/scanning/#scope).
## API-Schlüssel
Ähnlich wie Amass oder Subfinder unterstützt BBOT API-Schlüssel für verschiedene Drittanbieterdienste wie SecurityTrails usw.
Der übliche Weg ist, deine API-Schlüssel in **`~/.config/bbot/secrets.yml`** einzutragen. Beachte, dass mehrere API-Schlüssel erlaubt sind:
```yaml
modules:
shodan_dns:
api_key: 4f41243847da693a4f356c0486114bc6
c99:
# multiple API keys
api_key:
- 21a270d5f59c9b05813a72bb41707266
- ea8f243d9885cf8ce9876a580224fd3c
- 5bc6ed268ab6488270e496d3183a1a27
virustotal:
api_key: dd5f0eee2e4a99b71a939bded450b246
securitytrails:
api_key: d9a05c3fd9a514497713c54b4455d0b0
```
Wenn du möchtest, kannst du sie auch in der Befehlszeile angeben:
```bash
bbot -c modules.virustotal.api_key=dd5f0eee2e4a99b71a939bded450b246
```
Details findest du unter [Konfiguration](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration/).
## Vollständige Listen der Module, Flags usw.
- Vollständige Liste der [Module](https://www.blacklanternsecurity.com/bbot/Stable/modules/list_of_modules/).
- Vollständige Liste der [Flags](https://www.blacklanternsecurity.com/bbot/Stable/scanning/#list-of-flags).
- Vollständige Liste der [Presets](https://www.blacklanternsecurity.com/bbot/Stable/scanning/presets_list/).
- Vollständige Liste der [Globalen Konfigurationsoptionen](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration/#global-config-options).
- Vollständige Liste der [Modul-Konfigurationsoptionen](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration/#module-config-options).
## Dokumentation
<!-- BBOT DOCS TOC -->
- **Benutzerhandbuch**
- **Grundlagen**
- [Erste Schritte](https://www.blacklanternsecurity.com/bbot/Stable/)
- [So funktioniert es](https://www.blacklanternsecurity.com/bbot/Stable/how_it_works)
- [Vergleich mit anderen Tools](https://www.blacklanternsecurity.com/bbot/Stable/comparison)
- **Scannen**
- [Scan-Übersicht](https://www.blacklanternsecurity.com/bbot/Stable/scanning/)
- **Presets**
- [Übersicht](https://www.blacklanternsecurity.com/bbot/Stable/scanning/presets)
- [Liste der Presets](https://www.blacklanternsecurity.com/bbot/Stable/scanning/presets_list)
- [Events](https://www.blacklanternsecurity.com/bbot/Stable/scanning/events)
- [Ausgabe](https://www.blacklanternsecurity.com/bbot/Stable/scanning/output)
- [Tipps und Tricks](https://www.blacklanternsecurity.com/bbot/Stable/scanning/tips_and_tricks)
- [Fortgeschrittene Nutzung](https://www.blacklanternsecurity.com/bbot/Stable/scanning/advanced)
- [Konfiguration](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration)
- [Scan-Sanity](https://www.blacklanternsecurity.com/bbot/Stable/scanning/scan_sanity)
- **Module**
- [Liste der Module](https://www.blacklanternsecurity.com/bbot/Stable/modules/list_of_modules)
- [Interne Module](https://www.blacklanternsecurity.com/bbot/Stable/modules/internal_modules)
- [Nuclei](https://www.blacklanternsecurity.com/bbot/Stable/modules/nuclei)
- [Wayback](https://www.blacklanternsecurity.com/bbot/Stable/modules/wayback)
- [Benutzerdefinierte YARA-Regeln](https://www.blacklanternsecurity.com/bbot/Stable/modules/custom_yara_rules)
- [Lightfuzz](https://www.blacklanternsecurity.com/bbot/Stable/modules/lightfuzz)
- [Webbrute](https://www.blacklanternsecurity.com/bbot/Stable/modules/webbrute)
- **Migration**
- [2.x → 3.0 Breaking Changes](https://www.blacklanternsecurity.com/bbot/Stable/migration/3.0_breaking_changes)
- **Sonstiges**
- [Mitwirkung](https://www.blacklanternsecurity.com/bbot/Stable/contribution)
- [Versionsverlauf](https://www.blacklanternsecurity.com/bbot/Stable/release_history)
- [Fehlerbehebung](https://www.blacklanternsecurity.com/bbot/Stable/troubleshooting)
- **Entwicklerhandbuch**
- [Entwicklungsübersicht](https://www.blacklanternsecurity.com/bbot/Stable/dev/)
- [Einrichtung einer Entwicklungsumgebung](https://www.blacklanternsecurity.com/bbot/Stable/dev/dev_environment)
- [Kernabhängigkeiten](https://www.blacklanternsecurity.com/bbot/Stable/dev/core_dependencies)
- [BBOT-interne Architektur](https://www.blacklanternsecurity.com/bbot/Stable/dev/architecture)
- [So schreibst du ein BBOT-Modul](https://www.blacklanternsecurity.com/bbot/Stable/dev/module_howto)
- [Validieren & Überprüfen von Presets](https://www.blacklanternsecurity.com/bbot/Stable/dev/preset_validation)
- [Unit-Tests](https://www.blacklanternsecurity.com/bbot/Stable/dev/tests)
- [Discord-Bot-Beispiel](https://www.blacklanternsecurity.com/bbot/Stable/dev/discord_bot)
- **Code-Referenz**
- [Scanner](https://www.blacklanternsecurity.com/bbot/Stable/dev/scanner)
- [Presets](https://www.blacklanternsecurity.com/bbot/Stable/dev/presets)
- [Event](https://www.blacklanternsecurity.com/bbot/Stable/dev/event)
- [Target](https://www.blacklanternsecurity.com/bbot/Stable/dev/target)
- [BaseModule](https://www.blacklanternsecurity.com/bbot/Stable/dev/basemodule)
- [BBOTCore](https://www.blacklanternsecurity.com/bbot/Stable/dev/core)
- **Helfer**
- [Übersicht](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/)
- [Befehl](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/command)
- [DNS](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/dns)
- [Interactsh](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/interactsh)
- [Sonstiges](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/misc)
- [Web](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/web)
- [Wortwolke](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/wordcloud)
<!-- END BBOT DOCS TOC -->
## Mitwirkung
Einige der besten BBOT-Module wurden von der Community geschrieben. BBOT wird ständig verbessert; jeden Tag wird es leistungsfähiger!
Wir freuen uns über Beiträge. Nicht nur Code, sondern auch Ideen! Wenn du eine Idee für eine neue Funktion hast, lass es uns in den [Diskussionen](https://github.com/blacklanternsecurity/bbot/discussions) wissen. Wenn du selbst aktiv werden möchtest, wirf einen Blick auf [Mitwirkung](https://www.blacklanternsecurity.com/bbot/Stable/contribution/). Dort findest du Einrichtungsanleitungen und ein einfaches Tutorial, wie man ein BBOT-Modul schreibt. Wir haben außerdem eine umfangreiche [Entwicklerdokumentation](https://www.blacklanternsecurity.com/bbot/Stable/dev/).
Danke an diese großartigen Menschen für ihren Beitrag zu BBOT! :heart:
<p align="center">
<a href="https://github.com/blacklanternsecurity/bbot/graphs/contributors">
<img src="https://contrib.rocks/image?repo=blacklanternsecurity/bbot&max=500">
</a>
</p>
Besonderer Dank geht an:
- @TheTechromancer für die Erstellung von BBOT
- @liquidsec für seine umfangreiche Arbeit an BBOTs Web-Hacking-Funktionen, einschließlich [badsecrets](https://github.com/blacklanternsecurity/badsecrets) und [baddns](https://github.com/blacklanternsecurity/baddns)
- Steve Micallef (@smicallef) für die Erstellung von Spiderfoot
- @kerrymilan für seine Neo4j- und Ansible-Expertise
- @domwhewell-sage für seine Familie derber Code-Looting-Module
- @aconite33 und @amiremami für ihre rigorosen Tests
- Aleksei Kornev (@alekseiko) dafür, dass er uns das Eigentum am bbot-PyPI-Repository übertragen hat <3