Storing Misc Host Information With Yaptest

As of version 0.0.7 yaptest is able to store arbitrary information about hosts.  This is particularly useful on large tests.  This page provides a few examples of how to use the yaptest-host-info.pl script.

To query the host-info that’s been recorded for a host:

$ yaptest-host-info.pl query -i 10.0.0.1
test_area_name  ip_address      key     value
--------------  ----------      ---     -----
int     10.0.0.1  os      Windows 5.0
int     10.0.0.1  windows_domwkg  WORKGROUP

To query the OS information (collected only via yaptest-parse-enum4linux.pl at present) on all the hosts your scanned so far:

$ yaptest-host-info.pl query --key os

To find all members of a particular domain:

$ yaptest-host-info.pl query --key windows_domwkg --value xyzco

To find all the Windows 2000 servers:

$ yaptest-host-info.pl query --value 'Windows 5.0"

To find all the domain controllers (this information is collected via yaptest-parse-nbtscan.pl):

$ yaptest-host-info.pl query --key windows_dc

To add host-info just specify a new key on the command line:

yaptest-host-info.pl add --ip 10.0.0.1 --key nis_domain --value foo

 


Leave a Reply