
रेड टीमर्स और बग हंटर्स के लिए उपकरणों का एक सूट जो आईपी श्रेणियों को स्कैन करके और एसएसएल प्रमाणपत्रों का निरीक्षण करके छिपे हुए विकास और आईटी बुनियादी ढांचे को खोजने के लिए अस्थायी क्लाउड संपत्तियों की खोज करता है।
प्रमाणपत्रों से संपत्तियों की खोज! वेब को स्कैन करें! उपकरण @DEFCON 31 में प्रस्तुत किया गया
** आपको CGO सक्षम होना चाहिए, और CloudRecon चलाने के लिए gcc स्थापित करना पड़ सकता है**
sudo apt install gcc
go install github.com/g0ldencybersec/CloudRecon@latest
नोट:
स्थापित करने से पहले अपना GOPATH सेट करना न भूलें।
CloudRecon
CloudRecon लाल टीम के सदस्यों और बग शिकारियों के लिए उपकरणों का एक सूट है जो उनके अभियानों और खोजों में क्षणिक और विकास संपत्ति खोजने के लिए है।
अक्सर, लक्ष्य संगठन क्लाउड बुनियादी ढांचा खड़ा करते हैं जो उनके ASN से बंधा नहीं है या ज्ञात बुनियादी ढांचे से संबंधित नहीं है। कई बार ये संपत्तियाँ विकास साइटें, आईटी उत्पाद पोर्टल आदि होती हैं। कभी-कभी उनके पास कोई डोमेन नहीं होता लेकिन फिर भी कई को HTTPs की आवश्यकता होती है।
CloudRecon उपकरणों का एक सूट है जो IP पतों या CIDR (उदा: क्लाउड प्रदाताओं के IP) को स्कैन करता है और उन SSL प्रमाणपत्रों का निरीक्षण करके परीक्षकों के लिए ये छिपे हुए रत्न ढूंढता है।
उपकरण सूट GO में तीन भागों में है:
Scrape - एक LIVE चलने वाला उपकरण जो SSL प्रमाणपत्रों के CN और SN फ़ील्ड में किसी कीवर्ड के लिए वास्तविक समय में श्रेणियों का निरीक्षण करता है।
Store - एक उपकरण जो IP प्रमाणपत्रों को पुनर्प्राप्त करता है और उनके सभी संगठनों, CN और SAN को डाउनलोड करता है। ताकि आप अपना खुद का cert.sh डेटाबेस रख सकें।
Retr - एक उपकरण जो डाउनलोड किए गए प्रमाणपत्रों को पार्स करता है और कीवर्ड के लिए खोजता है।
## 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
इनपुट समर्थन: या तो अल्पविराम से अलग किए गए IP और CIDR, या प्रत्येक पंक्ति पर IP/CIDR वाली फ़ाइल, या ip:port स्वरूप सूची वाली फ़ाइल।
मुख्य
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")