Skip to content

Commit 0a9b00e

Browse files
committed
Apparently missed part of mubix's original changes
Used by auxiliary/admin/smb/list_directory
1 parent db676f1 commit 0a9b00e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/proto/smb/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ def find_first(path)
18841884
name = resp_data[didx + 70 + 24, info[15]].sub!(/\x00+$/, '')
18851885
files[name] =
18861886
{
1887-
'type' => (info[14] & 0x10) ? 'D' : 'F',
1887+
'type' => ((info[14] & 0x10)==0x10) ? 'D' : 'F',
18881888
'attr' => info[14],
18891889
'info' => info
18901890
}

0 commit comments

Comments
 (0)