Skip to content

Commit 90ae9a3

Browse files
committed
Land rapid7#4173, @wchen-r7's fix for SMB find_first
* Fixes rapid7#4119, SMB find_first("\\*") does not return accurate results * It missed initialization of sid
2 parents f2add92 + 719db5d commit 90ae9a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rex/proto/smb/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,7 @@ def queryfs_fs_attribute
18721872

18731873
# Enumerates a specific path on the mounted tree
18741874
def find_first(path)
1875+
sid = nil
18751876
files = { }
18761877
parm = [
18771878
26, # Search for ALL files

0 commit comments

Comments
 (0)