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
381 stars 77 forks source link

Invalid non-printable character line 40 #13

Closed alex27riva closed 1 week ago

alex27riva commented 1 week ago

I get this error:

└─$ python3 CVE-2024-6387_Check.py <ip>
  File "/home/user/CVE-2024-6387_Check/CVE-2024-6387_Check.py", line 40
            'SSH-2.0-OpenSSH_8.5',
    ^
SyntaxError: invalid non-printable character U+2002

running cat -A

 vulnerable_versions = [$
        'SSH-2.0-OpenSSH_8.5p1',$
M-bM-^@M-^BM-bM-^@M-^BM-bM-^@M-^BM-bM-^@M-^B    'SSH-2.0-OpenSSH_8.5',$
        'SSH-2.0-OpenSSH_8.6p1',$
        'SSH-2.0-OpenSSH_8.6',$
PabloServers commented 1 week ago

Fix: https://termbin.com/d4we

pbutler6163 commented 1 week ago

Sounds like your not getting the special characters: export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8