Skip to content

Latest commit

ย 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฆ… Basilic โ€” Advanced Subdomain Intelligence Tool

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•

        [ Advanced Subdomain Intelligence Tool ]
        [ by Pr0fessor_Snape ]  v1.0.0
        [ Takeover | WAF | ZoneXfer | CORS | Tech | Screenshots ]

๐Ÿ“Œ What is Basilic?

Basilic is a powerful, all-in-one subdomain intelligence and reconnaissance framework built from scratch in Python. It goes far beyond simple subdomain enumeration โ€” it actively fingerprints technologies, detects WAFs, checks for CORS misconfigurations, tests for subdomain takeover vulnerabilities, attempts DNS zone transfers, and even captures screenshots of live hosts.

Built for penetration testers, bug bounty hunters, and cybersecurity researchers.

โš ๏ธ Legal Disclaimer: Use Basilic only on domains you own or have explicit written permission to test. Unauthorized scanning is illegal. The author takes no responsibility for misuse.


โœจ Features

Module Description
๐Ÿ” CT Log Enumeration Queries crt.sh Certificate Transparency logs for passive subdomain discovery
๐Ÿ’ฃ Brute Force Enumeration DNS brute force using built-in wordlist or custom wordlist
๐Ÿ”„ DNS Zone Transfer (AXFR) Tests all nameservers for zone transfer misconfiguration โ€” critical finding
โš ๏ธ Subdomain Takeover Detection Checks 35+ services (GitHub Pages, Heroku, AWS S3, Azure, Shopify, etc.)
๐Ÿ›ก๏ธ WAF / CDN Detection Identifies Cloudflare, Akamai, Fastly, Sucuri, Imperva, F5, ModSecurity & more
๐ŸŒ CORS Misconfiguration Check Detects wildcard origins, origin reflection, null origin with exploit guidance
๐Ÿ”ฌ Technology Fingerprinting Detects 25+ technologies: WordPress, Laravel, Django, React, Angular, Next.js & more
๐Ÿ“ธ Screenshot Capture Headless Chromium screenshots of live hosts (falls back to HTML save)
๐ŸŒ HTTP Status Checking Live/dead detection, status codes, page title extraction
๐Ÿ”Œ Port Scanning Common port scan on discovered IPs
๐Ÿง  IP Intelligence ASN, ISP, country, region via ip-api.com
๐Ÿ“„ Report Export JSON, CSV, and beautiful HTML report with all findings

๐Ÿš€ Installation

# Clone the repository
git clone https://github.com/Pr0fessorSnApe/Basilic.git
cd Basilic

# Install dependencies
pip install -r requirements.txt

Dependencies

requests
dnspython
colorama
urllib3

๐Ÿ› ๏ธ Usage

Basic subdomain scan

python basilic.py -d example.com

Full scan with port scanning and screenshots

python basilic.py -d example.com --ports --screenshots

Use a custom wordlist

python basilic.py -d example.com -w /usr/share/wordlists/subdomains.txt

Custom thread count and output directory

python basilic.py -d example.com -t 100 -o results/

Skip HTTP checking (faster)

python basilic.py -d example.com --no-http

โš™๏ธ Arguments

Argument Description Default
-d, --domain Target domain (required) โ€”
-w, --wordlist Custom wordlist file path Built-in list
-t, --threads Number of threads 50
-o, --output Output directory name Auto-generated
--ports Enable port scanning on discovered IPs Disabled
--screenshots Capture screenshots of live hosts Disabled
--no-http Skip HTTP status checking Disabled

๐Ÿ“‹ Example Output

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Target: example.com
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[*] Threads        : 50
[*] Port scan      : Yes
[*] Screenshots    : Yes

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  DNS Zone Transfer (AXFR)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[*] Found 2 nameserver(s): ns1.example.com, ns2.example.com
[+]   ns1.example.com โ€” AXFR refused (secure)

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Certificate Transparency Logs
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[+] Found 14 subdomains from CT logs

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Brute Force Enumeration
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[CT] api.example.com                              93.184.216.34
[BF] admin.example.com                            93.184.216.34
[BF] dev.example.com                              93.184.216.34

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  WAF / CDN Detection
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[+] api.example.com                               ๐Ÿ›ก  Cloudflare
[+] admin.example.com                             ๐Ÿ›ก  AWS WAF / CloudFront

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Technology Fingerprinting
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[+] admin.example.com     โ†’ WordPress, jQuery, Google Analytics
[+] api.example.com       โ†’ Laravel, Nginx

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  CORS Misconfiguration Check
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[VULN] dev.example.com โ€” [HIGH] Origin Reflection
  Origin 'https://evil.com' reflected. Credentials: true

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Subdomain Takeover Detection
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[VULN] old.example.com โ€” TAKEOVER POSSIBLE
  CNAME โ†’ example.github.io

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  FINAL SUMMARY
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
[+] Subdomains found  : 17
[+] Live hosts        : 12
[VULN] Takeover risks : 1
[!]  CORS issues      : 1

๐Ÿ“ Output Files

After a scan, Basilic creates an output directory containing:

basilic_example.com_20240101/
โ”œโ”€โ”€ basilic_results.json       # Full JSON data
โ”œโ”€โ”€ basilic_results.csv        # Spreadsheet-friendly CSV
โ”œโ”€โ”€ basilic_results.html       # Beautiful HTML report
โ””โ”€โ”€ screenshots/               # Screenshots of live hosts
    โ”œโ”€โ”€ api_example_com.png
    โ””โ”€โ”€ admin_example_com.png

๐Ÿ—‚๏ธ Architecture

basilic.py
โ”œโ”€โ”€ DNS Records Enumeration
โ”œโ”€โ”€ Zone Transfer (AXFR) Testing
โ”œโ”€โ”€ Certificate Transparency (crt.sh)
โ”œโ”€โ”€ Brute Force DNS Enumeration
โ”œโ”€โ”€ HTTP Status Checking
โ”œโ”€โ”€ Port Scanning
โ”œโ”€โ”€ IP / ASN Intelligence
โ”œโ”€โ”€ WAF / CDN Detection          โ† 10 WAF signatures
โ”œโ”€โ”€ Technology Fingerprinting    โ† 25+ tech signatures
โ”œโ”€โ”€ CORS Misconfiguration Check  โ† 3 attack vectors
โ”œโ”€โ”€ Subdomain Takeover Detection โ† 35+ service fingerprints
โ”œโ”€โ”€ Screenshot Capture
โ””โ”€โ”€ Report Generator (JSON / CSV / HTML)

๐Ÿ”ฎ Roadmap

  • Wayback Machine URL harvesting
  • Shodan API integration
  • SSL/TLS misconfiguration checks
  • Email security checks (SPF, DMARC, DKIM)
  • Subdomain permutation engine
  • Interactive HTML dashboard
  • Slack/Discord notification support

๐Ÿ“œ License

This project is licensed under the MIT License โ€” see the LICENSE file for details.


๐Ÿ‘ค Author

Pr0fessor_Snape Cybersecurity Researcher & Student

"Know your target before your target knows you."


โญ Support

If you found Basilic useful, give it a star โญ on GitHub โ€” it means a lot!


Made with ๐Ÿฆ… and pure Python by Pr0fessor_Snape

About

Advanced Subdomain Intelligence Tool

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages