Target Type Detection
Esprit uses intelligent target inference fromesprit/interface/utils.py:829 to automatically detect:
- Web Applications - URLs with
http://orhttps:// - Repositories - Git URLs and repository patterns
- Local Code - Directories on your filesystem
- IP Addresses - IPv4 and IPv6 addresses
- Domains - Domain names without protocol
Web Application Scanning
Scan any web application by providing a URL:Localhost URLs are automatically rewritten to use
host.docker.internal for proper access from the Docker sandbox environment. See esprit/interface/utils.py:994.Domain Name Scanning
Esprit accepts bare domain names and automatically addshttps://:
Repository Scanning
Scan Git repositories from various sources:Repository Detection Logic
Fromesprit/interface/utils.py:817, repositories are detected by:
- URLs starting with
git@orgit:// - URLs ending with
.git - HTTP(S) URLs with credentials in the URL
- HTTP(S) URLs that respond to Git’s
info/refsendpoint
Repositories are automatically cloned to a temporary directory before scanning. The clone path is stored in
esprit_runs/<run-name>/cloned_repos/.Local Directory Scanning
Scan code on your local filesystem:IP Address Scanning
Scan network targets by IP address:Loopback addresses (127.0.0.0/8, ::1) are automatically rewritten to
host.docker.internal for container network access.Multiple Target Scanning
Scan multiple targets in a single session:esprit/interface/utils.py:926:
- Repository names are derived from the URL
- Local paths use the directory name
- Duplicate names get numeric suffixes (
repo-1,repo-2)
Terminal Output Example
Target Validation
Fromesprit/interface/main.py:1173, Esprit validates all targets before starting:
- URLs must be properly formatted
- Local paths must exist and be directories
- Repository URLs must be accessible
- IP addresses must be valid IPv4 or IPv6
Best Practices
- Web Apps
- Repositories
- Local Code
- Networks
- Test both HTTP and HTTPS if applicable
- Include full paths for API endpoints
- Quote URLs with special characters
- Verify localhost ports are accessible
Next Steps
Scan Modes
Choose between quick, standard, and deep scan modes
Custom Instructions
Guide scans with custom testing instructions