Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ saferwall-cli scan -d -t 30 -o windows-10-x64 /path/to/sample
| `--force` | `-f` | `false` | Force rescan if the file already exists |
| `--parallel` | `-p` | `1` | Number of files to scan in parallel |
| `--enableDetonation` | `-d` | `false` | Enable detonation (dynamic analysis) |
| `--timeout` | `-t` | `15` | Detonation duration in seconds |
| `--timeout` | `-t` | `30` | Detonation duration in seconds |
| `--os` | `-o` | `windows-10-x64` | Preferred OS for detonation (`windows-7-x64`, `windows-10-x64`, or `windows-11-x64`) |

### Rescan
Expand Down
2 changes: 1 addition & 1 deletion cmd/rescan.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func init() {
"Number of files to rescan in parallel")
reScanCmd.Flags().BoolVarP(&enableDetonationFlag, "enableDetonation", "d", false,
"Enable sandbox detonation (skipped by default)")
reScanCmd.Flags().IntVarP(&timeoutFlag, "timeout", "t", 15,
reScanCmd.Flags().IntVarP(&timeoutFlag, "timeout", "t", defaultDetonationTimeout,
"Detonation duration in seconds")
reScanCmd.Flags().StringVarP(&osFlag, "os", "o", "windows-10-x64",
"Preferred OS for detonation, choice(windows-7-x64 | windows-10-x64 | windows-11-x64)")
Expand Down
5 changes: 3 additions & 2 deletions cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import (
)

const (
statusCompleted = 3
statusCompleted = 3
defaultDetonationTimeout = 30

pollInterval = 5 * time.Second
)
Expand All @@ -36,7 +37,7 @@ func init() {
"Number of files to scan in parallel")
scanCmd.Flags().BoolVarP(&enableDetonationFlag, "enableDetonation", "d", false,
"Enable sandbox detonation (skipped by default)")
scanCmd.Flags().IntVarP(&timeoutFlag, "timeout", "t", 15,
scanCmd.Flags().IntVarP(&timeoutFlag, "timeout", "t", defaultDetonationTimeout,
"Detonation duration in seconds")
scanCmd.Flags().StringVarP(&osFlag, "os", "o", "windows-10-x64",
"Preferred OS for detonation, choice(windows-7-x64 | windows-10-x64 | windows-11-x64)")
Expand Down
Loading