
Suite di strumenti per red teamers e bug hunter per scoprire asset cloud effimeri scansionando range IP e ispezionando certificati SSL per infrastrutture di sviluppo e IT nascoste.
Trova asset dai certificati! Scansiona il web! Strumento presentato al @DEFCON 31
** Devi avere CGO abilitato e potrebbe essere necessario installare gcc per eseguire CloudRecon**
sudo apt install gcc
go install github.com/g0ldencybersec/CloudRecon@latest
Nota:
Non dimenticare di impostare il tuo GOPATH prima di installare.
CloudRecon
CloudRecon è una suite di strumenti per red teamer e bug hunter per trovare asset effimeri e di sviluppo nelle loro campagne e cacce.
Spesso, le organizzazioni target allestiscono infrastrutture cloud che non sono legate al loro ASN o a infrastrutture conosciute. Molte volte questi asset sono siti di sviluppo, portali di prodotti IT, ecc. A volte non hanno affatto domini, ma molti necessitano comunque di HTTPS.
CloudRecon è una suite di strumenti per scansionare indirizzi IP o CIDR (ad es. IP di provider cloud) e trovare queste gemme nascoste per i tester, ispezionando i certificati SSL.
La suite di strumenti è composta da tre parti in GO:
Scrape - Uno strumento LIVE in esecuzione per ispezionare i range per una parola chiave nei campi CN e SN dei certificati SSL in tempo reale.
Store - uno strumento per recuperare certificati IP e scaricare tutte le loro organizzazioni, CN e SAN. In modo da avere il tuo database cert.sh.
Retr - uno strumento per analizzare e cercare tra i certificati scaricati per parole chiave.
## Don't forget to run in TMUX / Screen session
wget https://raw.githubusercontent.com/lord-alfred/ipranges/main/all/ipv4_merged.txt
CloudRecon scrape -i ipv4_merged.txt -j | tee -a certdb.json
Supporto Input: IP e CIDR separati da virgole, o un file con IP/CIDR su ogni riga, o un file contenente una lista in formato ip:porta.
PRINCIPALE
Usage: CloudRecon scrape|store|retr [options]
-h Show the program usage message
Subcommands:
cloudrecon scrape - Scrape given IPs and output CNs & SANs to stdout
cloudrecon store - Scrape and collect Orgs,CNs,SANs in local db file
cloudrecon retr - Query local DB file for results
SCRAPE
scrape [options] -i <IPs/CIDRs or File>
-a Add this flag if you want to see all output including failures
-c int
How many goroutines running concurrently (default 100)
-h print usage!
-i string
Either IPs & CIDRs separated by commas, or a file with IPs/CIDRs on each line (default "NONE")
-j Generate JSON output ("IP, PORT, Organization, CommonName, SAN")
-p string
TLS ports to check for certificates (default "443")
-t int
Timeout for TLS handshake (default 4)
STORE
store [options] -i <IPs/CIDRs or File>
-c int
How many goroutines running concurrently (default 100)
-db string
String of the DB you want to connect to and save certs! (default "certificates.db")
-h print usage!
-i string
Either IPs & CIDRs separated by commas, or a file with IPs/CIDRs on each line, or file contains ip:port format list. (default "NONE")
-p string
TLS ports to check for certificates (default "443")
-t int
Timeout for TLS handshake (default 4)
RETR
retr [options]
-all
Return all the rows in the DB
-cn string
String to search for in common name column, returns like-results (default "NONE")
-db string
String of the DB you want to connect to and save certs! (default "certificates.db")
-h print usage!
-ip string
String to search for in IP column, returns like-results (default "NONE")
-num
Return the Number of rows (results) in the DB (By IP)
-org string
String to search for in Organization column, returns like-results (default "NONE")
-san string
String to search for in common name column, returns like-results (default "NONE")