Skip to content

Commit

Permalink
Land #12140, correct output printing bug from smb_enumshares
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen-r7 committed Jul 29, 2019
2 parents c47caec + 4856e0f commit 86b0b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/smb/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def smb_srvsvc_netshareenumall
res.slice!(0,2) if comment_length % 2 == 1 # pad

name = Rex::Text.to_ascii(name).gsub("\x00", "")
s_type = Rex::Text.to_ascii(smb_lookup_share_type(types[t])).gsub("\x00", "")
s_type = smb_lookup_share_type(types[t])
comment = Rex::Text.to_ascii(comment).gsub("\x00", "")

shares << [ name, s_type, comment ]
Expand Down

0 comments on commit 86b0b7b

Please sign in to comment.