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

Adding parameter "-outputfile" to set smbserver log file. #1784

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

gabrielg5
Copy link
Collaborator

@gabrielg5 gabrielg5 commented Aug 1, 2024

This PR fixes #1771

It allows configuring a log file from the smbserver parameters and before switching to the file prints a message in the stdout informing that.

For example:

┌──(xxx㉿XXXX)-[~/impacket/examples]
└─$ python smbserver.py TEMP /tmp -outputfile /tmp/smbservertest.log

Impacket v0.12.0.dev1+20240801.132541.6eae6598 - Copyright 2023 Fortra

[*] Config file parsed
[*] Switching output to file /tmp/smbservertest.log

@alexisbalbachan alexisbalbachan merged commit 2a0603a into master Aug 5, 2024
11 checks passed
@gabrielg5 gabrielg5 deleted the smbserver_log_configuration branch August 6, 2024 21:06
@gabrielg5 gabrielg5 restored the smbserver_log_configuration branch August 12, 2024 18:38
@gabrielg5 gabrielg5 deleted the smbserver_log_configuration branch August 12, 2024 18:58
GeisericII added a commit to ThePorgs/impacket that referenced this pull request Aug 18, 2024
Adding parameter "-outputfile" to set smbserver log file. (fortra#1784)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to find smbserver.py logs
2 participants