Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unpack requires a buffer of 4 bytes #25

Open
habwch opened this issue Apr 23, 2024 · 1 comment
Open

unpack requires a buffer of 4 bytes #25

habwch opened this issue Apr 23, 2024 · 1 comment

Comments

@habwch
Copy link

habwch commented Apr 23, 2024

Hello, we would like to use the tool, unfortunately this error is always displayed. Can you help with that?

SSH_Scan Fehler

@sscotter
Copy link

You've probably moved on by now, but this message is generated due to Python interrupting the \ as an escape character.

As per https://stackoverflow.com/questions/50504500/deprecationwarning-invalid-escape-sequence-what-to-use-instead-of-d I simply changed line 14 ...
from
banner = """
to
banner = r"""

This defines banner as a raw string rather than a unicode string. As a result I no longer get the warning message.

Side note: I use SSHScan on both Ubuntu and Debian machines. Only the Ubuntu machines generated this message. Likely related to the available version of python of the different distros.

Ubuntu
# python3 -V
Python 3.12.3

Debian
# python3 -V
Python 3.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants