humberry / smb-example

Pythonista

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access Samba/Windows-Shares

Small example how to upload, download, delete files (use at your own risk). This worked with my mini WIFI-Router USB-Stick-Share.

First you need to download these two python modules: pysmb-1.1.13 and pyasn1-0.1.7 Then extract \pysmb-1.1.13\python2\smb, \pysmb-1.1.13\python2\nmb and \pyasn1-0.1.7\pyasn1\ to the side-packages directory. After adjusting the parameters (username, password, ...) you might check for NetBIOS support or leave it for TCP support. => Port (139 = NetBIOS) and is_direct_tcp=False => SUPPORT_SMB2=True

About

Pythonista

License:Other


Languages

Language:Python 100.0%