Open igorkostyrko opened 2 years ago
I think this is related to the SMBServer (yet) not implementing all the info levels supported by the protocol. We've been adding some of those in latest PRs (see #1303 or #1147), but some others might be still missing.
I loaded latest changes from master and tested it again. Behavior is the same. But, now there is no error message on 10th step: "Unknown level for set file info! 0x13"
This happens with SMB2. I created a traffic capture of 6th, 7th and 8th steps of my test: https://storagemadeeasy.com/files/e2310f455facb6386679547a6da35961.pcap
Hello, Just for the sake of documentation, I've run this test from a Windows system (instead than a Mac) and it worked fine.
Will try to test from a Mac.. also if you can, can you retest, please @igorkostyrko? Let me know how that goes if you do it.
Thanks!
Configuration
impacket version: 0.9.24 Python version: 3.6.8 Target OS: CentOS
Description
If open XLSX file with MS Excel, edit it and save it then file will be broken. I tested it with MacOS Big Sur and MacOS Monterey. Behavior is the same.
How I tested it
Go
=>Connect to server
-- enter:smb://IP_ADDRESS/SHARED_FOLDER_NAME
-- enter credentialsXLSX
file with MS Excel and save on local diskXLSX
file from local disk to the SMB server via the FinderXLSX
file from the SMB server via the FinderXLSX
file with MS Excel and try to save it with a new name in SMB server then MS Excel hangs and SMB server shows the error: "Unknown level for set file info! 0x13"