pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol (SMB1 and SMB2) which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders.
When i would like to get a file as Security.evtx (windows logs events .evtx) with the following code:
file = open('Security.evtx', 'wb')
conn.retrieveFileFromOffset('Logs', 'Security.evtx', file)
i obtain the following issue via wireshark (STATUS_SHARING_VIOLATION):
When i modify the Oplock flag, i obtain the same result.
The share access attribute is the following:
When a file is not use by a system process, it's work fine...
If i access to this file with a samba share (smbmount) on linux, it's work fine and i obtain the following smbheader with the following share access attribut:
Hi,
When i would like to get a file as Security.evtx (windows logs events .evtx) with the following code: file = open('Security.evtx', 'wb') conn.retrieveFileFromOffset('Logs', 'Security.evtx', file)
i obtain the following issue via wireshark (STATUS_SHARING_VIOLATION):
When i modify the Oplock flag, i obtain the same result.
The share access attribute is the following:
When a file is not use by a system process, it's work fine...
If i access to this file with a samba share (smbmount) on linux, it's work fine and i obtain the following smbheader with the following share access attribut:
Idea ?
Thx for your help,