Skip to content

Commit

Permalink
update -sh to -se
Browse files Browse the repository at this point in the history
  • Loading branch information
winezer0 committed Jul 5, 2023
1 parent 309b6dc commit c733d6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DynaScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def dyna_scan_controller(target_urls, paths_dict, config_dict):
curr_host_history_file = config_dict[GB_HISTORY_FORMAT].format(mark=curr_host_port_string)

# 过滤当前的 current_url_list
if config_dict[GB_HISTORY_EXCLUDE]:
if config_dict[GB_EXCLUDE_HISTORY]:
# 排除自定义的历史URL文件
current_url_list = exclude_history_urls(current_url_list, config_dict[GB_EXCLUDE_URLS])
# 排除自动生成的历史URL文件
Expand Down
2 changes: 1 addition & 1 deletion libs/input_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
GB_ACCESS_OK_FILE = "GB_ACCESS_OK_FILE"
GB_ACCESS_NO_FILE = "GB_ACCESS_NO_FILE"

GB_HISTORY_EXCLUDE = "GB_HISTORY_EXCLUDE" # 排除历史URLs文件
GB_EXCLUDE_HISTORY = "GB_EXCLUDE_HISTORY" # 排除历史URLs文件
GB_HISTORY_FORMAT = "GB_HISTORY_FORMAT" # 自动生成的历史URLs文件路径
GB_EXCLUDE_URLS = "GB_EXCLUDE_URLS" # 自定义的历史URLs文件路径,用于联动其他工具

Expand Down
10 changes: 5 additions & 5 deletions libs/input_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@ def parse_input(config_dict):
f"Default is [{config_dict[GB_STREAM_MODE]}]",
)
# 关闭历史扫描URL过滤
argument_parser.add_argument("-sh",
f"--{vars_param_name(GB_HISTORY_EXCLUDE)}",
default=config_dict[GB_HISTORY_EXCLUDE],
argument_parser.add_argument("-se",
f"--{vars_param_name(GB_EXCLUDE_HISTORY)}",
default=config_dict[GB_EXCLUDE_HISTORY],
action="store_false",
help=f"Shutdown Exclude Request History, "
f"Default is [{config_dict[GB_HISTORY_EXCLUDE]}]",
f"Default is [{config_dict[GB_EXCLUDE_HISTORY]}]",
)
# 手动指定排除扫描的URLs文件
argument_parser.add_argument("-eu",
f"--{vars_param_name(GB_EXCLUDE_URLS)}",
default=config_dict[GB_EXCLUDE_URLS],
help=f"Specify the exclude URLs File, "
help=f"Specify the Exclude Custom URLs File, "
f"Default is [{config_dict[GB_EXCLUDE_URLS]}]",
)
# 关闭 URL目标可访问性判断
Expand Down
2 changes: 1 addition & 1 deletion setting_com.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize(config):
config[GB_ACCESS_OK_FILE] = config[GB_BASE_DIR].joinpath("runtime", "access_ok.log").as_posix()
##################################################################
# 扫描URL的排除过滤,建议开启
config[GB_HISTORY_EXCLUDE] = True
config[GB_EXCLUDE_HISTORY] = True
# 记录扫描已完成的URL 针对每个目标生成不同的记录文件
config[GB_HISTORY_FORMAT] = config[GB_BASE_DIR].joinpath("runtime", "history_{mark}.log").as_posix()
# 自定义排除的历史URLs,用于联动其他工具
Expand Down

0 comments on commit c733d6e

Please sign in to comment.