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

Added client's IP and clientData to allow client identification #123

Merged
merged 2 commits into from
Jul 2, 2019

Conversation

Pourliver
Copy link
Contributor

Fixes #122 . I also log clientData, which normally is the hostname, but tools use it to identify "what" did the connection, just like an user-agent.

pyrdp/layer/tcp.py Outdated Show resolved Hide resolved
pyrdp/mitm/TCPMITM.py Outdated Show resolved Hide resolved
pyrdp/mitm/TCPMITM.py Outdated Show resolved Hide resolved
@@ -90,7 +90,7 @@ def __init__(self, log: SessionLogger, config: MITMConfig):
self.x224 = X224MITM(self.client.x224, self.server.x224, self.getLog("x224"), self.state, serverConnector, self.startTLS)
"""X224 MITM component"""

self.mcs = MCSMITM(self.client.mcs, self.server.mcs, self.state, self.recorder, self.buildChannel)
self.mcs = MCSMITM(self.client.mcs, self.server.mcs, self.state, self.recorder, self.buildChannel, self.getLog("mcs"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nothing to change but it might cause a conflict with #117 so we just need to watch out for that

@Pourliver Pourliver requested a review from Res260 June 20, 2019 13:50
@Pourliver Pourliver merged commit d619c6c into master Jul 2, 2019
@obilodeau obilodeau deleted the client_data branch November 27, 2019 21:53
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.

The IP of the connection isn't logged if exited before receiving ClientInfoPDU
2 participants