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

PR: ntlmrelayx.py ignores URL parameters provided in targets #1910 #1911

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nitbx
Copy link

@nitbx nitbx commented Feb 27, 2025

This is an attempt to fix the issue: #1910

Comment on lines +120 to +121
if target.query:
newTarget = urlparse('%s://%s@%s%s?%s' % (target.scheme, gotUsername.replace('/','\\'), target.netloc, target.path, target.query))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

targetsutils is also used by LDAP and SMB relay clients, afaik target.query is only valid for HTTP targets. the condition must also specify that target.scheme is HTTP/HTTPS

@anadrianmanrique anadrianmanrique added the waiting for response Further information is needed from people who opened the issue or pull request label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Medium priority item waiting for response Further information is needed from people who opened the issue or pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants