Put colons between each octet of the imported mac address

git-svn-id: file:///home/svn/framework3/trunk@9205 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-05-02 23:43:41 +00:00
parent 94d67d57f6
commit aea08c56b0
1 changed files with 2 additions and 1 deletions

View File

@ -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