results command displays output from executed tasks, including stdout, stderr, exit codes, and execution timing.
Basic Results Usage
View all results for a session:Results Table Format
The results table shows:| Column | Description | Format |
|---|---|---|
| TASK ID | Unique task identifier | Full UUID (36 characters) |
| EXIT | Command exit code | Integer (0 = success) |
| DURATION | Execution time | Milliseconds with “ms” suffix |
| STDOUT | Command output | First 60 characters (truncated) |
Truncated Output
Stdout is truncated to 60 characters in the table view:server/api_interface.py:100
Viewing Full Output
After viewing the results table, you can enter a task ID to see the complete output:- Full task ID
- Exit code
- Execution duration
- Complete stdout (with original formatting)
- Complete stderr (if present)
Understanding Exit Codes
Exit codes indicate task execution status:Success (0)
The command completed without errors:Command Errors (1-125)
The command ran but encountered an error:Blocked Command (126)
The command is on the blocklist:Command Not Found (127)
The command doesn’t exist on the target system:Timeout (124)
The command exceeded the 30-second timeout:Exit Code Summary Table
| Exit Code | Meaning | Action |
|---|---|---|
| 0 | Success | Normal operation |
| 1-125 | Command error | Check stderr for details |
| 126 | Blocked command | Review security policy |
| 127 | Command not found | Verify command exists |
| 124 | Timeout | Use shorter-running command |
Result Timing
Duration is measured in milliseconds and includes:- Command execution time
- Output capture overhead
- Subprocess management time
agent/executor.py:36-39
Timing Examples
Output Handling
Stdout
Standard output is captured in thestdout field:
agent/executor.py:89
Stderr
Standard error is captured separately and only displayed in full result view:Empty Output
Commands with no output show(empty):
server/api_interface.py:119
Output Size Limit
Both stdout and stderr are capped at 64 KB:agent/executor.py:9
Result Persistence
All results are stored in the database when received from the agent:server/command_queue.py:142
Database Schema
Results are stored in theresults table:
Result Retrieval
Results are fetched from the database by session ID:Results Display Implementation
The results command uses two display functions:Table View
server/api_interface.py:81
Full Output View
server/api_interface.py:114
Result Interpretation Examples
Successful Reconnaissance
jdoe on VICTIM-PC.
Network Connectivity Test
Failed Command
Blocked Operation
Result Management Best Practices
1. Check Results Regularly
Always verify task completion:2. Investigate Non-Zero Exit Codes
Any exit code other than 0 indicates an issue:3. Monitor Execution Times
Slow commands may indicate:- Network latency
- System resource constraints
- Command hanging
4. Review Stderr
Always check stderr for warnings and errors, even if exit code is 0.5. Archive Important Results
Copy critical output for documentation:Error Handling
Session Not Found
list.
No Results Available
- No tasks have been executed
- Tasks are still pending/dispatched
- Agent hasn’t returned results yet
Invalid Task ID
Logging
Result operations are logged:logs/ for detailed execution history and troubleshooting.