mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-25 20:11:40 +01:00
Fixed new pylint warnings.
This commit is contained in:
parent
3313046714
commit
cb0f6b63d7
@ -365,11 +365,8 @@ def output_recommendations(out: OutputBuffer, algs: Algorithms, algorithm_recomm
|
|||||||
for cve_list in VersionVulnerabilityDB.CVE['PuTTY']:
|
for cve_list in VersionVulnerabilityDB.CVE['PuTTY']:
|
||||||
vuln_version = float(cve_list[1])
|
vuln_version = float(cve_list[1])
|
||||||
cvssv2_severity = cve_list[4]
|
cvssv2_severity = cve_list[4]
|
||||||
|
max_vuln_version = max(vuln_version, max_vuln_version)
|
||||||
if vuln_version > max_vuln_version:
|
max_cvssv2_severity = max(cvssv2_severity, max_cvssv2_severity)
|
||||||
max_vuln_version = vuln_version
|
|
||||||
if cvssv2_severity > max_cvssv2_severity:
|
|
||||||
max_cvssv2_severity = cvssv2_severity
|
|
||||||
|
|
||||||
fn = out.warn
|
fn = out.warn
|
||||||
if max_cvssv2_severity > 8.0:
|
if max_cvssv2_severity > 8.0:
|
||||||
|
@ -246,8 +246,7 @@ class SSH_Socket(ReadBuf, WriteBuf):
|
|||||||
|
|
||||||
def send_banner(self, banner: str) -> None:
|
def send_banner(self, banner: str) -> None:
|
||||||
self.send(banner.encode() + b'\r\n')
|
self.send(banner.encode() + b'\r\n')
|
||||||
if self.__state < self.SM_BANNER_SENT:
|
self.__state = max(self.__state, self.SM_BANNER_SENT)
|
||||||
self.__state = self.SM_BANNER_SENT
|
|
||||||
|
|
||||||
def ensure_read(self, size: int) -> None:
|
def ensure_read(self, size: int) -> None:
|
||||||
while self.unread_len < size:
|
while self.unread_len < size:
|
||||||
|
Loading…
Reference in New Issue
Block a user