Skip to content

Conversation

mai0li
Copy link

@mai0li mai0li commented Aug 22, 2025

Summary

Enhanced the SQLMap wizard interface to allow users to select their preferred verbosity level (0-6), providing better control over output detail while maintaining backward compatibility.

Motivation

The wizard currently hard-codes verbosity to level 0 (minimal output). While this works well for automation, beginners often need more detailed output to understand what SQLMap is doing. This change allows users to choose the appropriate verbosity level for their needs.

Changes

  • Enhanced _useWizardInterface() function in lib/core/option.py
  • Replaced hardcoded conf.verbose = 0 with interactive selection menu
  • Added support for all verbosity levels (0-6) with clear descriptions
  • Maintains backward compatibility with level 0 as default
  • Follows existing wizard UI patterns for consistency

Features

  • Complete coverage: All SQLMap verbosity levels (0-6) supported
  • Clear labeling: Distinguishes wizard default (0) vs application default (1)
  • Robust validation: Invalid inputs default safely to level 0
  • Backward compatible: Preserves original minimal output behavior
  • Consistent UI: Matches existing wizard prompt patterns

Testing

  • ✅ Manual testing of all verbosity levels
  • ✅ Input validation with edge cases and invalid inputs
  • ✅ Security testing with malicious payloads
  • ✅ Integration testing with existing wizard flow
  • ✅ Confirmed no crashes or unexpected behavior

Example Usage

- Enhanced wizard to allow selection of verbose levels 0-6
- Maintains backward compatibility with level 0 default
- Provides clear labels for wizard vs application defaults
- Follows existing wizard UI patterns with input validation
- Enables users to choose appropriate output detail level

Resolves the need for configurable verbosity in beginner-friendly wizard mode
while preserving the original 'minimal output' behavior for automation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant