mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-11 19:21:11 +03:00
- Implemented a new UI module (sql_cli/ui.py) for displaying banners and scan results using the Rich library. - Created utility functions in sql_cli/utils.py for generating log filenames and saving logs. - Refactored sqlmapcli.py to utilize the new UI and utility functions, enhancing the interactive mode and scan processes. - Added support for custom headers and POST data in the interactive mode. - Introduced a test endpoints JSON file (test_endpoints.json) for batch testing.
19 lines
460 B
Python
19 lines
460 B
Python
from typing import List, Dict, Optional, TypedDict
|
|
from datetime import datetime
|
|
|
|
SQL_TECHNIQUES = {
|
|
"B": "Boolean-based blind",
|
|
"E": "Error-based",
|
|
"U": "Union query-based",
|
|
"S": "Stacked queries",
|
|
"T": "Time-based blind",
|
|
"Q": "Inline queries",
|
|
}
|
|
|
|
class ScanResult(TypedDict):
|
|
total_tests: int
|
|
vulnerabilities: List[Dict[str, str]]
|
|
start_time: Optional[datetime]
|
|
end_time: Optional[datetime]
|
|
target: Optional[str]
|