Skip to content

Correctly handle usernames/passwords longer than 127 bytes#178

Open
anonym wants to merge 1 commit intoAnorov:masterfrom
anonym:auth-length-fix
Open

Correctly handle usernames/passwords longer than 127 bytes#178
anonym wants to merge 1 commit intoAnorov:masterfrom
anonym:auth-length-fix

Conversation

@anonym
Copy link

@anonym anonym commented Mar 12, 2026

chr() only works for lengths shorter than 128. For instance, for a 128 characters long username chr(128).encode() computes to b'\xc2\x80', resulting in an invalid SOCKSv5 username/password request packet.

Fixes #177

chr() only works for lengths shorter than 128. For instance, for a 128
characters long username `chr(128).encode()` computes to
`b'\xc2\x80'`, resulting in an invalid SOCKSv5 username/password
request packet.
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

Successfully merging this pull request may close these issues.

Cannot handle SOCKS authentication usernames/passwords longer than 127 characters

1 participant