miketeo/pysmb

receiving an error with Echo command

Closed this issue · 5 comments

I have an issue where I am getting a message for psymb Echo, but isSmbv2 returns okay. I think this is maybe an authentication error, but can't tell for sure.

File "/usr/local/lib/python2.7/dist-packages/smb/SMBConnection.py", line 549, in echo
self._pollForNetBIOSPacket(timeout)
File "/usr/local/lib/python2.7/dist-packages/smb/SMBConnection.py", line 575, in _pollForNetBIOSPacket
raise NotConnectedError
smb.base.NotConnectedError

Thanks in Advance.

@zerstoeren : I think you have not called the connect() method before calling the echo() method.

Do I need to call it immediately before? My code flows as:

Assert connect
Issmbv2
Echo
Close.

Should I change It so that Echo is immediately after the Connect?

@zerstoeren : Your code flow is correct. Just need to ensure that there is not too much time delay between the connect() and echo() calls as the remote server can disconnect the network connection if there is no activity for a prolonged period of time.

after reaching out to the admin, it turns out that its a sharepoint smb system with MFA. ugh...