Skip to content

Commit

Permalink
Merge pull request #26 from krystianbajno/features/linux-fixes
Browse files Browse the repository at this point in the history
features-linux-fixes
  • Loading branch information
krystianbajno authored Nov 25, 2024
2 parents 6a9a381 + ef3e64d commit db4df93
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _filter_enrichment_sources(self):
if name in self.enrichment_functions
}

print(f"\n\n[*] Enabled enrichment sources: {", ".join(list(self.enrichment_functions.keys()))}.\n")
print(f"\n\n[*] Enabled enrichment sources: {', '.join(list(self.enrichment_functions.keys()))}.\n")

def enrich(self) -> List[VulnerabilityIntelligence]:
if not self.enrichment_functions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def apply(self, vuln_intelligence: VulnerabilityIntelligence):

cisa_description = self.data.get('cisa_description')
if cisa_description:
formatted_description = f"{cisa_description.replace('\n', ' ')}"
formatted_description = cisa_description.replace('\n', ' ')
if not any(desc["text"] == formatted_description for desc in vuln_intelligence.descriptions):
vuln_intelligence.descriptions.append({
"source": self.enrich_source_name("CISA KEV"),
Expand All @@ -35,7 +35,7 @@ def apply(self, vuln_intelligence: VulnerabilityIntelligence):

cisa_required_action = self.data.get('cisa_requiredAction')
if cisa_required_action:
formatted_mitigation = f"{cisa_required_action.replace('\n', ' ')}"
formatted_mitigation = cisa_required_action.replace('\n', ' ')
vuln_intelligence.descriptions.append({
"source": self.enrich_source_name_mitigation("CISA KEV"),
"text": formatted_mitigation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def apply(self, vuln_intelligence: VulnerabilityIntelligence):

vulners_description = self.data.get('vulners_description')
if vulners_description:
formatted_description = f"{vulners_description.replace('\n', ' ')}"
formatted_description = vulners_description.replace('\n', ' ')
if not any(desc["text"] == formatted_description for desc in vuln_intelligence.descriptions):
vuln_intelligence.descriptions.append({
"source": self.enrich_source_name("Vulners"),
Expand Down
2 changes: 1 addition & 1 deletion terminal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def print_configuration(profilename, configuration):
print_greyed_out(f"Configuration:\n\n{yaml.dump(configuration, allow_unicode=True, default_flow_style=False)}")

def print_wrong_profile(profiles):
print(f"[!] Hold on! You entered a wrong profile. You can add profiles in profiles.yaml. \n\nSelect one of the available profiles: {", ".join(profiles.keys())}")
print(f"[!] Hold on! You entered a wrong profile. You can add profiles in profiles.yaml. \n\nSelect one of the available profiles: {', '.join(profiles.keys())}")
2 changes: 1 addition & 1 deletion terminal/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
GREEN = "\033[92m"
YELLOW = "\033[93m"
BLACK_ON_WHITE = "\033[30;47m"
GREY = "\033[38;5;236m"
GREY = "\033[38;5;248m"

0 comments on commit db4df93

Please sign in to comment.