From af2c05bdb89589c855c9c42a3a8940e935c2eddc Mon Sep 17 00:00:00 2001 From: rusal Date: Sun, 9 Jul 2023 12:12:22 -0400 Subject: [PATCH] Correct module name --- api/engine.py | 2 +- core/parse.py | 2 +- core/readme.md | 22 ++++++++++------------ core/{scan_targers.py => scan_targets.py} | 0 core/targets.py | 2 +- 5 files changed, 13 insertions(+), 15 deletions(-) rename core/{scan_targers.py => scan_targets.py} (100%) diff --git a/api/engine.py b/api/engine.py index 09530745..ca183bb8 100644 --- a/api/engine.py +++ b/api/engine.py @@ -39,7 +39,7 @@ from database.db import logs_to_report_json from database.db import search_logs from database.db import logs_to_report_html from config import nettacker_global_config -from core.scan_targers import start_scan_processes +from core.scan_targets import start_scan_processes from core.args_loader import check_all_required app = Flask( diff --git a/core/parse.py b/core/parse.py index 78a4d7ad..b8776834 100644 --- a/core/parse.py +++ b/core/parse.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- -from core.scan_targers import start_scan_processes +from core.scan_targets import start_scan_processes from core.alert import info from core.alert import write from core.alert import messages diff --git a/core/readme.md b/core/readme.md index c903f55d..b7ea3fa2 100644 --- a/core/readme.md +++ b/core/readme.md @@ -3,20 +3,18 @@ OWASP Nettacker core functions OWASP Nettacker core functions are stored in here. -* `die.py` exit functions -* `time.py` time functions * `alert.py` user alerts and printing functions * `args_loader.py` ARGV commands and apply rules -* `attack.py` start new attacks and multi-processing managements -* `color.py` color founds for windows and linux/mac. +* `color.py` color founds for windows and linux/mac * `compatible.py` compatibility functions -* `config.py` user configs (could be modify by user) -* `config_builder.py` core static configs (same as user configs but should not be change by users) -* `get_input.py` get inputs from users functions +* `die.py` exit functions +* `graph.py` graph representation * `ip.py` IPv4 and IPv6 functions -* `load_modules` load modules, requirements, paths functions -* `log.py` log the scans and generate reports +* `load_modules.py` load modules, requirements, paths functions +* `messages.py` class messages * `parse.py` parse the ARGV and pass it -* `targets.py` process, calculate and count targets -* `update.py` updates functions of the framework -* `wizard.py` wizard mode for the framework \ No newline at end of file +* `scan_targets.py` start new attacks and multi-processing managements +* `socks_proxy.py` use SOCKS5 proxy +* `targets.py` process, calculate and count targets +* `time.py` time functions +* `utility.py` support functions \ No newline at end of file diff --git a/core/scan_targers.py b/core/scan_targets.py similarity index 100% rename from core/scan_targers.py rename to core/scan_targets.py diff --git a/core/targets.py b/core/targets.py index 67f19169..b7e56862 100644 --- a/core/targets.py +++ b/core/targets.py @@ -32,7 +32,7 @@ def expand_targets(options, scan_unique_id): Returns: a generator """ - from core.scan_targers import multi_processor + from core.scan_targets import multi_processor targets = [] for target in options.targets: if '://' in target: