Command Structure
Available Commands
pensar
Launch the interactive Terminal UI for guided penetration testing
pentest
Run a full orchestrated pentest with attack surface discovery
targeted-pentest
Execute a focused pentest against specific objectives
quicktest
Run a rapid, objective-focused penetration test
benchmark
Compare security posture across repository branches
swarm
Run parallel pentests on multiple targets simultaneously
auth
Authenticate to target applications and verify auth mechanisms
doctor
Check dependencies and system configuration
upgrade
Update Pensar to the latest version
Quick Reference
Launch TUI
Full Pentest
Targeted Pentest
Quick Test
Benchmark
Swarm
Authentication
System Check
Update
Global Options
These options work with any command:flag
Display help information for the command
flag
Show the current Pensar version
Command Output
Most pentest commands generate structured output:- Findings: JSON file with discovered vulnerabilities
- POCs: Proof-of-concept exploit scripts
- Reports: Human-readable security assessment reports
- Session Data: Stored in
~/.pensar/sessions/for later review
Environment Variables
Pensar respects standard environment variables for AI provider configuration:Usage Patterns
Interactive Exploration (TUI)
Best for learning, exploration, and manual testing:Automated CI/CD Integration
Best for continuous security testing:Focused Vulnerability Research
Best for testing specific attack vectors:Next Steps
Getting Started
Set up Pensar and run your first pentest
Configuration
Configure AI providers and customize settings

