
Lo scanner internet ricorsivo per 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** è uno scanner multiuso ispirato a [Spiderfoot](https://github.com/smicallef/spiderfoot), progettato per automatizzare le tue **Recon**, **Bug Bounty** e **ASM**!
https://github.com/blacklanternsecurity/bbot/assets/20261699/e539e89b-92ea-46fa-b893-9cde94eebf81
_Una scansione BBOT in tempo reale - visualizzazione con [VivaGraphJS](https://github.com/blacklanternsecurity/bbot-vivagraphjs)_
## Installazione
```bash
# stable version
pipx install bbot
# bleeding edge (dev branch)
pipx install --pip-args '\--pre' bbot
```
_Per altri metodi di installazione, incluso [Docker](https://hub.docker.com/r/blacklanternsecurity/bbot), consulta [Per Iniziare](https://www.blacklanternsecurity.com/bbot/Stable/)_
> **Stai aggiornando dalla 2.x?** BBOT 3.0 contiene modifiche incompatibili alla CLI, ai preset, ai moduli, agli eventi e all'API Python. Consulta la [Guida alla migrazione 2.x → 3.0](https://www.blacklanternsecurity.com/bbot/Stable/migration/3.0_breaking_changes/) ([fonte](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/migration/3.0_breaking_changes.md)) prima di aggiornare.
> **Consiglio sulla velocità:** Il risolutore DNS di BBOT ([blastdns](https://github.com/blacklanternsecurity/blastdns)) fa partire più thread per ogni resolver in `/etc/resolv.conf`. Aggiungere più resolver non filtrati accelera notevolmente le scansioni. Consulta il [resolv.conf di esempio](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/data/resolv-sample.conf) e [Suggerimenti e Trucchi](https://www.blacklanternsecurity.com/bbot/Stable/scanning/tips_and_tricks/#speed-up-scans-with-more-dns-resolvers) per i dettagli.
## Comandi di Esempio
### 1) Trova Sottodomini
Sorgenti API passive più un brute-force DNS ricorsivo con mutazioni dei sottodomini specifiche per il target.
```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 trova costantemente il 20-50% di sottodomini in più rispetto ad altri strumenti. Più grande è il dominio, maggiore è la differenza. Per capire come è possibile, consulta [Come Funziona](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) Raccoglitore di Email
```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) Scanner Web
```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) Tutto Ovunque e Subito
```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 -->
## Come Funziona
Fai clic sul grafico qui sotto per esplorare il [funzionamento interno](https://www.blacklanternsecurity.com/bbot/Stable/how_it_works/) di BBOT.
[](https://www.blacklanternsecurity.com/bbot/Stable/how_it_works/)
## Moduli di Output
- [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)
...e [altro](https://github.com/blacklanternsecurity/bbot/blob/stable/docs/scanning/output.md)!
## BBOT come Libreria Python
#### Sincrono
```python
from bbot.scanner import Scanner
if __name__ == "__main__":
scan = Scanner("evilcorp.com", presets=["subdomain-enum"])
for event in scan.start():
print(event)
```
#### Asincrono
```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>VEDI: Questo Malefico Bot Discord</b></summary>
Un [Bot Discord BBOT](https://www.blacklanternsecurity.com/bbot/Stable/dev/#discord-bot-example) che risponde al comando `/scan`. Scansiona internet dalla comodità del tuo server Discord!

</details>
## Panoramica delle Funzionalità
- Supporto per più target
- Screenshot Web
- Suite di moduli web offensivi
- Mutazioni dei sottodomini basate su NLP
- Output nativo verso Neo4j (e altro)
- Installazione automatica delle dipendenze con Ansible
- Cerca nell'intera superficie d'attacco con regole YARA personalizzate
- API Python + Documentazione per sviluppatori
## Target
BBOT accetta un numero illimitato di target tramite `-t`. Puoi specificare i target direttamente dalla riga di comando o tramite file (o entrambi!):
```bash
bbot -t evilcorp.com evilcorp.org 1.2.3.0/24 -p subdomain-enum
```
I target possono essere uno dei seguenti:
- Nome DNS (`evilcorp.com`)
- Indirizzo IP (`1.2.3.4`)
- Intervallo IP (`1.2.3.0/24`)
- Porta TCP aperta (`192.168.0.1:80`)
- URL (`https://www.evilcorp.com`)
- Indirizzo email (`[email protected]`)
- Organizzazione (`ORG:evilcorp`)
- Nome utente (`USER:bobsmith`)
- Filesystem (`FILESYSTEM:/tmp/asdf`)
- App mobile (`MOBILE_APP:https://play.google.com/store/apps/details?id=com.evilcorp.app`)
Per maggiori informazioni, consulta [Target](https://www.blacklanternsecurity.com/bbot/Stable/scanning/#targets-t). Per scoprire come BBOT gestisce lo scope, consulta [Scope](https://www.blacklanternsecurity.com/bbot/Stable/scanning/#scope).
## Chiavi API
Simile ad Amass o Subfinder, BBOT supporta chiavi API per vari servizi di terze parti come SecurityTrails, ecc.
Il metodo standard per farlo è inserire le tue chiavi API in **`~/.config/bbot/secrets.yml`**. Nota che sono ammesse più chiavi API:
```yaml
modules:
shodan_dns:
api_key: 4f41243847da693a4f356c0486114bc6
c99:
# multiple API keys
api_key:
- 21a270d5f59c9b05813a72bb41707266
- ea8f243d9885cf8ce9876a580224fd3c
- 5bc6ed268ab6488270e496d3183a1a27
virustotal:
api_key: dd5f0eee2e4a99b71a939bded450b246
securitytrails:
api_key: d9a05c3fd9a514497713c54b4455d0b0
```
Se preferisci, puoi specificarle anche dalla riga di comando:
```bash
bbot -c modules.virustotal.api_key=dd5f0eee2e4a99b71a939bded450b246
```
Per i dettagli, consulta [Configurazione](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration/).
## Elenchi completi di Moduli, Flag, ecc.
- Elenco completo dei [Moduli](https://www.blacklanternsecurity.com/bbot/Stable/modules/list_of_modules/).
- Elenco completo delle [Flag](https://www.blacklanternsecurity.com/bbot/Stable/scanning/#list-of-flags).
- Elenco completo dei [Preset](https://www.blacklanternsecurity.com/bbot/Stable/scanning/presets_list/).
- Elenco completo delle [Opzioni di Configurazione Globali](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration/#global-config-options).
- Elenco completo delle [Opzioni di Configurazione dei Moduli](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration/#module-config-options).
## Documentazione
<!-- BBOT DOCS TOC -->
- **Manuale Utente**
- **Nozioni di base**
- [Per Iniziare](https://www.blacklanternsecurity.com/bbot/Stable/)
- [Come Funziona](https://www.blacklanternsecurity.com/bbot/Stable/how_it_works)
- [Confronto con Altri Strumenti](https://www.blacklanternsecurity.com/bbot/Stable/comparison)
- **Scansione**
- [Panoramica della Scansione](https://www.blacklanternsecurity.com/bbot/Stable/scanning/)
- **Preset**
- [Panoramica](https://www.blacklanternsecurity.com/bbot/Stable/scanning/presets)
- [Elenco dei Preset](https://www.blacklanternsecurity.com/bbot/Stable/scanning/presets_list)
- [Eventi](https://www.blacklanternsecurity.com/bbot/Stable/scanning/events)
- [Output](https://www.blacklanternsecurity.com/bbot/Stable/scanning/output)
- [Suggerimenti e Trucchi](https://www.blacklanternsecurity.com/bbot/Stable/scanning/tips_and_tricks)
- [Utilizzo Avanzato](https://www.blacklanternsecurity.com/bbot/Stable/scanning/advanced)
- [Configurazione](https://www.blacklanternsecurity.com/bbot/Stable/scanning/configuration)
- [Sanità della Scansione](https://www.blacklanternsecurity.com/bbot/Stable/scanning/scan_sanity)
- **Moduli**
- [Elenco dei Moduli](https://www.blacklanternsecurity.com/bbot/Stable/modules/list_of_modules)
- [Moduli Interni](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)
- [Regole YARA Personalizzate](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)
- **Migrazione**
- [Modifiche Incompatibili 2.x → 3.0](https://www.blacklanternsecurity.com/bbot/Stable/migration/3.0_breaking_changes)
- **Varie**
- [Contributi](https://www.blacklanternsecurity.com/bbot/Stable/contribution)
- [Cronologia delle Release](https://www.blacklanternsecurity.com/bbot/Stable/release_history)
- [Risoluzione dei Problemi](https://www.blacklanternsecurity.com/bbot/Stable/troubleshooting)
- **Manuale dello Sviluppatore**
- [Panoramica dello Sviluppo](https://www.blacklanternsecurity.com/bbot/Stable/dev/)
- [Configurazione di un Ambiente di Sviluppo](https://www.blacklanternsecurity.com/bbot/Stable/dev/dev_environment)
- [Dipendenze Principali](https://www.blacklanternsecurity.com/bbot/Stable/dev/core_dependencies)
- [Architettura Interna di BBOT](https://www.blacklanternsecurity.com/bbot/Stable/dev/architecture)
- [Come Scrivere un Modulo BBOT](https://www.blacklanternsecurity.com/bbot/Stable/dev/module_howto)
- [Validazione e Ispezione dei Preset](https://www.blacklanternsecurity.com/bbot/Stable/dev/preset_validation)
- [Test Unitari](https://www.blacklanternsecurity.com/bbot/Stable/dev/tests)
- [Esempio di Bot Discord](https://www.blacklanternsecurity.com/bbot/Stable/dev/discord_bot)
- **Riferimento al Codice**
- [Scanner](https://www.blacklanternsecurity.com/bbot/Stable/dev/scanner)
- [Preset](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)
- **Helper**
- [Panoramica](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/)
- [Command](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)
- [Varie](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/misc)
- [Web](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/web)
- [Nuvola di Parole](https://www.blacklanternsecurity.com/bbot/Stable/dev/helpers/wordcloud)
<!-- END BBOT DOCS TOC -->
## Contributi
Alcuni dei migliori moduli BBOT sono stati scritti dalla community. BBOT è in costante miglioramento; ogni giorno diventa più potente!
Siamo aperti ai contributi. Non solo codice, ma anche idee! Se hai un'idea per una nuova funzionalità, faccelo sapere in [Discussioni](https://github.com/blacklanternsecurity/bbot/discussions). Se vuoi metterti all'opera, consulta [Contributi](https://www.blacklanternsecurity.com/bbot/Stable/contribution/). Lì troverai istruzioni di configurazione e un semplice tutorial su come scrivere un modulo BBOT. Abbiamo anche un'ampia [Documentazione per Sviluppatori](https://www.blacklanternsecurity.com/bbot/Stable/dev/).
Grazie a queste fantastiche persone per aver contribuito a 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>
Un ringraziamento speciale a:
- @TheTechromancer per aver creato BBOT
- @liquidsec per il suo ampio lavoro sulle funzionalità di hacking web di BBOT, inclusi [badsecrets](https://github.com/blacklanternsecurity/badsecrets) e [baddns](https://github.com/blacklanternsecurity/baddns)
- Steve Micallef (@smicallef) per aver creato Spiderfoot
- @kerrymilan per la sua esperienza con Neo4j e Ansible
- @domwhewell-sage per la sua famiglia di moduli tosti per il saccheggio del codice
- @aconite33 e @amiremami per i loro test spietati
- Aleksei Kornev (@alekseiko) per averci concesso la proprietà del repository bbot su Pypi <3