Usage
Description
Thescan command initiates an AI-powered penetration test against one or more targets. Esprit automatically detects the target type (URL, repository, or local directory) and performs comprehensive security testing.
Arguments
Target(s) to test. Supports multiple formats:
- Web URLs:
https://example.com,https://api.example.com - Git repositories:
github.com/user/repo,https://github.com/user/repo.git - Local directories:
./my-project,/path/to/codebase
esprit scan target1 target2 target3Options
Custom instructions for the scan. Provide specific objectives, areas to focus on, or constraints.Example:
--instruction "Focus on authentication and session management"Path to a file containing custom instructions. Cannot be used with
--instruction.Example: --instruction-file ./scan-instructions.txtRun in non-interactive mode. Automatically selects default options without prompting.
Useful for CI/CD pipelines and automated workflows.Default:
falseScan depth and thoroughness level.Choices:
quick: Fast reconnaissance and surface-level checksstandard: Balanced scan with common vulnerability testingdeep: Comprehensive testing with advanced exploitation techniques
deepPath to a custom configuration file. Overrides default settings.Example:
--config ./esprit-config.yamlExit Codes
- 0: Scan completed successfully
- 1: Configuration error, authentication failure, or invalid target
- 2: Scan interrupted or failed during execution
Examples
Scan a web application
Scan a GitHub repository
Scan local codebase
Quick scan with custom instructions
Non-interactive scan for CI/CD
Scan multiple targets
Use instruction file
Pre-scan Checks
Before starting a scan, Esprit performs automatic validation:- Provider Authentication: Verifies LLM provider is configured
- Model Selection: Ensures a valid model is selected
- Docker Health (local runtime): Checks Docker daemon and disk space
- Target Validation: Confirms target is accessible
esprit provider status to check authentication status before scanning.
Legacy Syntax
The-t, --target flag is still supported but deprecated:
Related Commands
esprit provider login- Configure LLM provider authenticationesprit provider status- Check provider status