Skip to content

Commit

Permalink
sqlmap options are configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Sep 30, 2024
1 parent 37cab43 commit 092b19d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
15 changes: 15 additions & 0 deletions extra_modules_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ class ExtraModulesConfig:
default=25,
)

# Command-line options that will be passed to sqlmap
SQLMAP_COMMAND_LINE_OPTIONS = decouple.config(
"SQLMAP_COMMAND_LINE_OPTIONS",
cast=decouple.Csv(str),
default=",".join(
[
"--technique",
"BU",
"--skip-waf",
"--skip-heuristics",
]
),
)

# Tamper scripts to be used by sqlmap (sqlmap will be executed once per tamper script + once without any)
SQLMAP_TAMPER_SCRIPTS = decouple.config(
"SQLMAP_TAMPER_SCRIPTS",
cast=decouple.Csv(str),
Expand Down
5 changes: 1 addition & 4 deletions karton_sqlmap/karton_sqlmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,11 @@ def _run() -> SQLmapCallResult:
"-u",
url,
"--batch",
"--technique",
"BU",
"--skip-waf",
"--skip-heuristics",
"-v",
"1",
]
+ arguments
+ ExtraModulesConfig.SQLMAP_COMMAND_LINE_OPTIONS
+ additional_configuration
)

Expand Down

0 comments on commit 092b19d

Please sign in to comment.