miketeo / pysmb

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.
Other
338 stars 95 forks source link

pysmb-1.1.18 (from pip): Unknown status value (0xC0000001) in SMB_COM_SESSION_SETUP_ANDX #59

Closed alxchk closed 6 years ago

alxchk commented 8 years ago

smb.smb_structs.ProtocolError: Unknown status value (0xC0000001) in SMB_COM_SESSION_SETUP_ANDX (with extended security) ==================== SMB Message ==================== Command: 0x01 (SMB2_COM_SESSION_SETUP) Status: 0xC0000001 Flags: 0x01 PID: 25621 MID: 2 TID: 0 Data: 9 bytes 090000000000000000 ==================== SMB Data Packet (hex) ==================== fe534d4240000000010000c001000100010000000000000002000000000000001564000000000000c316f8ea0000000000000000000000000000000000000000090000000000000000

The most fun thing about this error, that if I start program second time - it will work. But with time this error arises again.

smb-error-0xC0000001.pcapng.zip

uSpike commented 8 years ago

Related to #34 ?

miketeo commented 6 years ago

From packet capture, it looks like the user parameter and the share parameter are mixed up during pysmb initialization.

kamalkant2 commented 4 years ago

I had an issue today with below error: smb.smb_structs.ProtocolError: Unknown status value (0xC0000022) in SMB_COM_SESSION_SETUP_ANDX (with extended security)

I fixed it disabling the encryption on the host: Set-SmbServerConfiguration -EncryptData 0

However Is there any better way to fix it from client itself?

washi29 commented 1 year ago

Does this command work for linux ? I'm having the same issue