diff --git a/modules/post/windows/gather/enum_ad_computers.rb b/modules/post/windows/gather/enum_ad_computers.rb index 9ad7157265..63b8bf80af 100644 --- a/modules/post/windows/gather/enum_ad_computers.rb +++ b/modules/post/windows/gather/enum_ad_computers.rb @@ -88,7 +88,7 @@ class Metasploit3 < Msf::Post if db && datastore['STORE_DB'] case fields[i] when 'dNSHostName' - dns = field.value + dns = field report[:name] = dns hostnames << dns when 'operatingSystem'