Put colons between each octet of the imported mac address
git-svn-id: file:///home/svn/framework3/trunk@9205 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
94d67d57f6
commit
aea08c56b0
|
@ -1452,7 +1452,8 @@ class DBManager
|
|||
end
|
||||
data[:host] = addr
|
||||
if (h["hardware-address"])
|
||||
data[:mac] = h["hardware-address"]
|
||||
# Put colons between each octet of the MAC address
|
||||
data[:mac] = h["hardware-address"].gsub(':', '').scan(/../).join(':')
|
||||
end
|
||||
data[:state] = (h["status"] == "alive") ? Msf::HostState::Alive : Msf::HostState::Dead
|
||||
|
||||
|
|
Loading…
Reference in New Issue