changed to chomp
parent
3854d08dd9
commit
e89e2af9dc
|
@ -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$'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue