changed to chomp

bug/bundler_fix
Rich Lundeen 2013-07-24 11:09:00 -07:00
parent 3854d08dd9
commit e89e2af9dc
1 changed files with 1 additions and 3 deletions

View File

@ -80,9 +80,7 @@ class Metasploit3 < Msf::Auxiliary
read = write = false read = write = false
# srvsvc adds a null byte that needs to be removed # srvsvc adds a null byte that needs to be removed
if datastore['USE_SRVSVC_ONLY'] share = share.chomp("\x00")
share = share[0..-2]
end
return false,false,nil,nil if share == 'IPC$' return false,false,nil,nil if share == 'IPC$'