xaitax / CVE-2024-6387_Check

CVE-2024-6387_Check is a lightweight, efficient tool designed to identify servers running vulnerable versions of OpenSSH
GNU General Public License v3.0
380 stars 77 forks source link

Hardoded port number in summary report message #7

Closed MarcinOrlowski closed 1 week ago

MarcinOrlowski commented 1 week ago

https://github.com/xaitax/CVE-2024-6387_Check/blob/3f20d6cb6663ede789ad7a1ef11b5ea8693d4446/CVE-2024-6387_Check.py#L119

There's hardcoded 22 as port number in report message which is confusing as it seems like --port is ignored. I think the fix should be just to make that line like like:

print(f"\nšŸ”’ Servers with port {port} closed: {closed_ports}")