Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Automated Asset Collection System Based on Asset Breeding Engine

License

Notifications You must be signed in to change notification settings

sansjtw1/Z-Sans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Z-Sans Asset Breeding Engine

Z-Sans Logo

Z-Sans

πŸ”₯ "Automated Asset Collection System Powered by Asset Breeding Engine"
License Python 3.9+ GitHub issues
README | δΈ­ζ–‡ζ–‡ζ‘£

πŸš€ Project Overview

Z-Sans is a powerful cybersecurity tool featuring an innovative Asset Breeding Engine that automates attack surface discovery and mapping. Starting with minimal seed assets (domains or URLs), Z-Sans systematically discovers and expands digital assets including domains, IPs, URLs, ports, and JavaScript resources while generating comprehensive asset reports.

✨ Key Features

  • Multi-Asset Support: Domains, IPs, URLs, ports, and JS files
  • Configurable Breeding Strategies: Priority-based scanning with depth customization
  • Tool Integration: Supports subfinder, naabu, subfinder and other security tools
  • Flexible Output Formats: JSON, CSV, GraphML and HTML reports
  • Internationalization: Built-in Chinese and English support
  • Detailed Logging: Multi-level logging for debugging
  • Modular Architecture: Core engine decoupled from tool implementations
  • Lightweight Design: Optimized for efficient resource usage
  • Asset Breeding Engine: Automatically generates new assets from discovered relationships

πŸ› οΈ Project Structure

Z-Sans/
β”œβ”€β”€ assets/             # External tool scripts
β”œβ”€β”€ core/               # Core engine
β”‚   β”œβ”€β”€ breeders/       # Breeding algorithms
β”‚   β”œβ”€β”€ tools/          # Tool integrations
β”‚   β”œβ”€β”€ i18n.py         # Internationalization
β”‚   β”œβ”€β”€ output.py       # Output handlers
β”‚   └── zsans_engine.py # Breeding engine core
β”œβ”€β”€ i18n/               # Language resources
β”œβ”€β”€ output/             # Results directory
β”œβ”€β”€ templates/          # Report templates
β”œβ”€β”€ breeding-config.yaml # Configuration
β”œβ”€β”€ main.py             # Entry point
β”œβ”€β”€ README.md           # This documentation (English)
β”œβ”€β”€ README_CN.md        # Chinese documentation
└── requirements.txt    # Dependencies

πŸ’‘ Installation Guide

Requirements

  • Python 3.9+
  • Supported OS: Windows, Linux, macOS

Installation Steps

  1. Clone repository:
git clone https://github.com/sansjtw1/Z-Sans.git
cd Z-Sans
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure external tools (Optional): Edit breeding-config.yaml to set paths for subfinder, naabu, etc.

πŸ“‹ Usage

Note: Large enterprises with extensive assets may require longer breeding cycles

Basic Commands

# Run with domain seed
python main.py -d example.com

# Start from URL seed
python main.py -u https://example.com

# Custom configuration
python main.py -c your-config.yaml -d example.com

# Verbose output
python main.py -d example.com -v

# Custom output directory
python main.py -d example.com -o custom-output

Command Line Arguments

-c, --config     Config file path (default: breeding-config.yaml)
-d, --domain     Add domain seeds (multiple supported)
-u, --url        Add URL seeds (multiple supported)
-o, --output     Output directory (default: output)
-v, --verbose    Verbose output mode
--init           Create default configuration
--version        Show version info
--depth          Set maximum breeding depth

πŸ’» Configuration

Configuration file breeding-config.yaml includes:

Breeding Strategy

strategy: priority_based  # Priority-based asset breeding

Language Configuration

language:
  default_language: en    # Default language (en or zh_CN)
  supported_languages:   # Supported languages
    - en
    - zh_CN
  locale_dir: i18n        # Localization directory

Asset Scope

asset_scope:
  restrict_to_seed_domains: true    # Limit to seed domains
  restrict_to_seed_ip_ranges: false # Don't limit to seed IPs
  include_subdomains: true          # Include subdomains
  include_ip_ranges: true           # Include IP ranges

Concurrency Control

concurrency:
  max_tasks: 20        # Max concurrent processes
  tools:               # Tool-specific concurrency
    subfinder: 2       # Subdomain discovery
    naabu: 2           # Port scanning
    jsfinder: 2        # JS file discovery

Resource Limits

resource_limits:
  max_domains: 2000    # Maximum domains
  max_ips: 2000        # Maximum IPs
  max_urls: 5000       # Maximum URLs
  max_ports: 5000      # Maximum ports
  max_js: 2000         # Maximum JS files

🎯 Output Samples

Results include multiple formats in the output directory:

  • JSON asset data
  • CSV assets/relationships
  • GraphML relationship diagrams
  • HTML reports

Output Sample

πŸ“ƒ Disclaimer

Important:

  1. Authorized Use Only
    Only operate on explicitly authorized targets
  2. Legal Compliance
    Users must comply with all applicable laws
  3. Ethical Operation
    Follow responsible disclosure practices
  4. No Liability
    Developers assume no liability for damages

🎈 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a pull request

πŸ“ƒ License

Licensed under MIT - See LICENSE for details.

πŸ“ž Contact

Email: [email protected]
GitHub: https://github.com/sansjtw1 Telegram: https://t.me/sansjtw

About

Automated Asset Collection System Based on Asset Breeding Engine

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages