Host Data Commands are the items that gather data from hosts on the network. The Get Hostname one is quite simple:
{
"name": "Get Hostname",
"description": "Simply executes hostname command on host",
"hosts": ["local", "remote"],
"result_type": "hostname",
"run": {
"command": "hostname",
"method": "invoke"
}
}
See also:
Host Data Commands can gather the following data about a host:
hostname
connections
- an array of connection objects with the following fields:local_address
local_port
remote_address
remote_port
process
state
:"listen" | "syn_sent" | "syn_received" | "established" | "fin_wait_1" | "fin_wait_2" | "close_wait" | "closing" | "last_ack" | "time_wait" | "bound"
ip_addresses
- an array of IP Adresses belonging to the host.mac_addresses
- an array of Mac Addresses belonging to the host with the following fields:mac
vendor
os
- the host's Operating Systemhosts
- an array of data about hosts on the network with the following fields:local
- boolean, is this the machine running the server?hostname
ips
- seeip_addresses
abovemacs
- seemac_addresses
aboveimportant
- boolean, is this machine on our network?