Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 1 addition & 2 deletions sploitscan/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def main(
Orchestrate SploitScan workflow for one or more CVE IDs.
"""
config = load_config(config_path=config_path, debug=debug)

all_results: List[Dict[str, Any]] = []
selected = _selected(methods)

Expand Down Expand Up @@ -375,7 +374,7 @@ def cli() -> None:
clone_cvelistV5_repo(config=cfg)

if args.keywords:
cve_ids = search_cve_by_keywords(args.keywords)
cve_ids = search_cve_by_keywords(args.keywords, cfg)
if not cve_ids:
raise SystemExit("No valid CVE IDs found for the provided keywords.")
else:
Expand Down
4 changes: 2 additions & 2 deletions sploitscan/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .constants import NUCLEI_URL


def search_cve_by_keywords(keywords: Iterable[str]) -> List[str]:
def search_cve_by_keywords(keywords: Iterable[str], cfg: Dict[str, Any]) -> List[str]:
"""
Aggregate CVE IDs matching all keywords across:
- Local cvelistV5 JSON database (if present)
Expand All @@ -22,7 +22,7 @@ def search_cve_by_keywords(keywords: Iterable[str]) -> List[str]:
results: Set[str] = set()

# Local grep
local_cve_ids = grep_local_db(kws)
local_cve_ids = grep_local_db(kws, config=cfg)
if local_cve_ids:
results.update(local_cve_ids)

Expand Down