Skip to content

Commit

Permalink
Add sterr to output list (#3649)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Klopper <[email protected]>
  • Loading branch information
noamblitz and underdarknl authored Oct 23, 2024
1 parent 870b4fe commit 64461ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion boefjes/boefjes/plugins/kat_dnssec/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ def run(boefje_meta: dict):
cmd = ["/usr/bin/drill", "-DT", domain]
output = subprocess.run(cmd, capture_output=True)

return [({"openkat/dnssec-output"}, output.stdout)]
output.check_returncode()

results = [({"openkat/dnssec-output"}, output.stdout)]

return results
8 changes: 7 additions & 1 deletion boefjes/boefjes/plugins/kat_nmap_tcp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ def run(boefje_meta: dict):
cmd.append("-6")

cmd.extend(["-oX", "-", str(ip)])
return [({"openkat/nmap-output"}, subprocess.run(cmd, capture_output=True).stdout.decode())]
output = subprocess.run(cmd, capture_output=True)

output.check_returncode()

results = [({"openkat/nmap-output"}, output.stdout.decode())]

return results

0 comments on commit 64461ad

Please sign in to comment.