Skip to content

Commit

Permalink
encode-decode subfolder for smb spider to avoid encdoe error in case …
Browse files Browse the repository at this point in the history
…cyrrylic
  • Loading branch information
au committed Oct 4, 2024
1 parent 27313a0 commit c8866d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxc/protocols/smb/smbspider.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _spider(self, subfolder, depth):

filelist = None
try:
filelist = self.smbconnection.listPath(self.share, subfolder)
filelist = self.smbconnection.listPath(self.share, subfolder.encode('utf-8').decode('latin-1'))
self.dir_list(filelist, subfolder)
if depth == 0:
return
Expand Down

0 comments on commit c8866d7

Please sign in to comment.