diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index e918d25150..3c8221953e 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -263,6 +263,9 @@ class DBManager task = queue(Proc.new { host = get_host(:workspace => wspace, :address => addr) + host.state = HostState::Alive + host.save! if host.changed? + proto = opts[:proto] || 'tcp' opts[:name].downcase! if (opts[:name]) @@ -430,6 +433,8 @@ class DBManager if addr and not host host = get_host(:workspace => wspace, :host => addr) end + host.state = HostState::Alive + host.save! if host.changed? ntype = opts.delete(:type) || opts.delete(:ntype) || return data = opts[:data] || return