
⚡ Censys के प्रमाणपत्र पारदर्शिता लॉग का उपयोग करके उपडोमेन अभिगणना करें।
महत्वपूर्ण नोट: 2024 के अंत तक, Censys मुफ्त खातों को अब API एक्सेस प्रदान नहीं करता है।
यह एक उपकरण है जो Censys Search में संग्रहीत प्रमाणपत्र पारदर्शिता लॉग का उपयोग करके उपडोमेन की गणना करता है। यह किसी भी उपडोमेन को वापस करना चाहिए जिसे कभी किसी सार्वजनिक CA द्वारा SSL प्रमाणपत्र जारी किया गया हो।
इसे कार्य में देखें:
$ python censys-subdomain-finder.py github.com
[*] Searching Censys for subdomains of github.com
[*] Found 42 unique subdomains of github.com in ~1.7 seconds
- hq.github.com
- talks.github.com
- cla.github.com
- github.com
- cloud.github.com
- enterprise.github.com
- help.github.com
- collector-cdn.github.com
- central.github.com
- smtp.github.com
- cas.octodemo.github.com
- schrauger.github.com
- jobs.github.com
- classroom.github.com
- dodgeball.github.com
- visualstudio.github.com
- branch.github.com
- www.github.com
- edu.github.com
- education.github.com
- import.github.com
- styleguide.github.com
- community.github.com
- server.github.com
- mac-installer.github.com
- registry.github.com
- f.cloud.github.com
- offer.github.com
- helpnext.github.com
- foo.github.com
- porter.github.com
- id.github.com
- atom-installer.github.com
- review-lab.github.com
- vpn-ca.iad.github.com
- maintainers.github.com
- raw.github.com
- status.github.com
- camo.github.com
- support.enterprise.github.com
- stg.github.com
- rs.github.com
https://search.censys.io/register पर एक खाता पंजीकृत करें (मुफ्त)
https://search.censys.io/account पर जाएं, और अपने API ID और API सीक्रेट के साथ दो पर्यावरण चर सेट करें:
export CENSYS_API_ID=...
export CENSYS_API_SECRET=...
वैकल्पिक रूप से, आप उपयोगों में स्थिरता के लिए इन मानों को संग्रहीत करने के लिए एक .env फ़ाइल का उपयोग कर सकते हैं:
cp .env.template .env
फिर .env फ़ाइल को संपादित करें और CENSYS_API_ID और CENSYS_API_SECRET के लिए मान सेट करें।
रिपॉजिटरी क्लोन करें:
git clone https://github.com/christophetd/censys-subdomain-finder.git
एक virtualenv में निर्भरताएँ स्थापित करें:
cd censys-subdomain-finder
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
नमूना उपयोग:
python censys-subdomain-finder.py example.com
उपडोमेन की सूची को एक टेक्स्ट फ़ाइल में आउटपुट करें:
python censys-subdomain-finder.py example.com -o subdomains.txt
usage: censys-subdomain-finder.py [-h] [-o OUTPUT_FILE]
[--censys-api-id CENSYS_API_ID]
[--censys-api-secret CENSYS_API_SECRET]
domain
positional arguments:
domain The domain to scan
optional arguments:
-h, --help show this help message and exit
-o OUTPUT_FILE, --output OUTPUT_FILE
A file to output the list of subdomains to (default:
None)
--censys-api-id CENSYS_API_ID
Censys API ID. Can also be defined using the
CENSYS_API_ID environment variable (default: None)
--censys-api-secret CENSYS_API_SECRET
Censys API secret. Can also be defined using the
CENSYS_API_SECRET environment variable (default: None)
यह Python 3.7+ पर चलना चाहिए।
Censys API की 5 मिनट की विंडो में 120 क्वेरी की सीमा दर है। इस उपकरण का प्रत्येक आह्वान Censys को ठीक एक API कॉल करता है।
सुझावों या टिप्पणियों के लिए बेझिझक एक मुद्दा खोलें या ट्वीट करें @christophetd।