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

Fix SOCKS Target Parsing #1843

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Fix SOCKS Target Parsing #1843

merged 2 commits into from
Jan 30, 2025

Conversation

gjhami
Copy link
Contributor

@gjhami gjhami commented Oct 31, 2024

Fixes #1575 by parsing the target hostname correctly from commands run through ntlmrelayx's socks5 proxy.

Fixes fortra#1575 by parsing the target hostname correctly from commands run through ntlmrelayx's socks5 proxy.
Fix hostname parsing
@gjhami
Copy link
Contributor Author

gjhami commented Jan 25, 2025

For clarity: as mentioned in the linked issue, the socks functionality of NTLMRelayx is broken when targets are specified by hostname instead of IP. This PR fixes the issue.

Targeting machines by hostname instead of IP is preferable in some cases. Such as when targeting a group of workstations and laptops configured with DHCP where a specific user has local admin. It also makes large target files more readable, especially when a naming convention is followed for hostnames.

@anadrianmanrique
Copy link
Contributor

thanks @gjhami, I'll take care of this one

@anadrianmanrique anadrianmanrique added the bug Unexpected problem or unintended behavior label Jan 30, 2025
@anadrianmanrique
Copy link
Contributor

thanks for the PR, merging now

@anadrianmanrique anadrianmanrique merged commit 0f4b866 into fortra:master Jan 30, 2025
8 checks passed
Ridter pushed a commit to Ridter/impacket that referenced this pull request Feb 26, 2025
* Update socksserver.py

Fixes fortra#1575 by parsing the target hostname correctly from commands run through ntlmrelayx's socks5 proxy.

* Update socksserver.py

Fix hostname parsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ntlmrelayx.py SOCKS option TypeError with socks5 on relaying
2 participants