From fa9bd83f3a7c4790833f2dd47d12de37476dc22b Mon Sep 17 00:00:00 2001 From: "Remi GASCOU (Podalirius)" <79218792+p0dalirius@users.noreply.github.com> Date: Sun, 16 Jun 2024 18:09:29 +0200 Subject: [PATCH 1/2] Fixed #33 --- smbclientng/core/SMBSession.py | 1 + 1 file changed, 1 insertion(+) diff --git a/smbclientng/core/SMBSession.py b/smbclientng/core/SMBSession.py index dde4f75..4983585 100644 --- a/smbclientng/core/SMBSession.py +++ b/smbclientng/core/SMBSession.py @@ -1101,6 +1101,7 @@ def set_share(self, shareName): if shareName.lower() in self.available_shares.keys(): # Doing this in order to keep the case of the share adevertised by the remote machine self.smb_share = self.available_shares[shareName.lower()]["name"] + self.smb_cwd = "" # Connects the tree self.smb_tree_id = self.smbClient.connectTree(self.smb_share) else: From 840c209d88a410802ef0acc7d3bf2c2d9547f283 Mon Sep 17 00:00:00 2001 From: "Remi GASCOU (Podalirius)" <79218792+p0dalirius@users.noreply.github.com> Date: Sun, 16 Jun 2024 18:12:22 +0200 Subject: [PATCH 2/2] Fixed SyntaxWarning: invalid escape sequence '\|' --- smbclientng/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smbclientng/__main__.py b/smbclientng/__main__.py index eedf250..c5d1897 100644 --- a/smbclientng/__main__.py +++ b/smbclientng/__main__.py @@ -16,7 +16,7 @@ def parseArgs(): - print(""" _ _ _ _ + print(r""" _ _ _ _ ___ _ __ ___ | |__ ___| (_) ___ _ __ | |_ _ __ __ _ / __| '_ ` _ \| '_ \ / __| | |/ _ \ '_ \| __|____| '_ \ / _` | \__ \ | | | | | |_) | (__| | | __/ | | | ||_____| | | | (_| |