Add NetworkHost :lastseen to console
This commit is contained in:
@@ -171,11 +171,12 @@ class Target
|
||||
'Hostname',
|
||||
'Type',
|
||||
'Operating System',
|
||||
'MAC Address'
|
||||
'MAC Address',
|
||||
'Last Seen'
|
||||
])
|
||||
|
||||
driver.interface.select_network_hosts['results'].each do |x|
|
||||
tbl << [x['ip'],x['hostname'],x['type'],x['os'],x['mac']]
|
||||
tbl << [x['ip'],x['hostname'],x['type'],x['os'],x['mac'],x['lastseen']]
|
||||
end
|
||||
|
||||
puts "\nNetwork Hosts:\n\n"
|
||||
|
||||
@@ -390,7 +390,8 @@ class ShellInterface
|
||||
'hostname' => x['hostname'].to_s,
|
||||
'type' => x['type'].to_s,
|
||||
'os' => x['os'].to_s,
|
||||
'mac' => x['mac'].to_s
|
||||
'mac' => x['mac'].to_s,
|
||||
'lastseen' => x['lastseen'].to_s
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user