Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom wordlist functionality addition for scan modules #1026

Merged
merged 17 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from 14 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
6 changes: 6 additions & 0 deletions nettacker/core/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,12 @@ def add_arguments(self):
default=Config.settings.compare_report_path_filename,
help=_("compare_report_path_filename"),
)
method_options.add_argument(
"-W",
"--wordlist",
action="store",
dest="read_from_file",
)

# API Options
api_options = self.add_argument_group(_("API"), _("API_options"))
Expand Down
1 change: 1 addition & 0 deletions nettacker/core/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(
self.module_inputs[module_extra_args] = self.module_inputs["modules_extra_args"][
module_extra_args
]

self.target = target

self.scan_id = scan_id
Expand Down
1 change: 1 addition & 0 deletions nettacker/locale/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ no_scan_to_compare: the scan_id to be compared not found
compare_report_saved: "compare results saved in {0}"
build_compare_report: "building compare report"
finish_build_report: "Finished building compare report"
user_wordlist: "Allows users to enter their own wordlist"
2 changes: 1 addition & 1 deletion nettacker/modules/scan/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ payloads:
suffix: ""
interceptors:
data:
urls:
urls:
read_from_file: wordlists/admin_wordlist.txt
schema:
- "http"
Expand Down
2 changes: 1 addition & 1 deletion nettacker/modules/scan/dir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ payloads:
suffix: ""
interceptors:
data:
urls:
urls:
read_from_file: wordlists/dir_wordlist.txt
schema:
- "http"
Expand Down