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

Impacket #1434: Added SMB2_FILE_ALLOCATION_INFO type determination, referenced Samba code #1547

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions impacket/smbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3476,6 +3476,10 @@ def smb2SetInfo(connId, smbServer, recvPacket):
except Exception as e:
smbServer.log("smb2SetInfo: %s" % e, logging.ERROR)
errorCode = STATUS_ACCESS_DENIED
elif informationLevel == smb2.SMB2_FILE_ALLOCATION_INFO:
# See https://github.com/samba-team/samba/blob/master/source3/smbd/smb2_trans2.c#LL5201C8-L5201C39
smbServer.log("Warning: SMB2_FILE_ALLOCATION_INFO not implemented")
errorCode = STATUS_SUCCESS
alexisbalbachan marked this conversation as resolved.
Show resolved Hide resolved
else:
smbServer.log('Unknown level for set file info! 0x%x' % informationLevel, logging.ERROR)
# UNSUPPORTED
Expand Down