Hosts
Synopsis
View, query, and flag hosts
Show unreviewed hosts:
$ arsenic hosts -q ‘.HasFlags “Unreviewed”’
Show hosts that have Gobuster results:
$ arsenic hosts -q ‘.HasFlags “Gobuster”’
Show hosts with the root domain example.com:
$ arsenic hosts -q ‘in .RootDomains “example.com”’
Show hosts with ports 22 or 2022:
$ arsenic hosts -q ‘.HasPorts 22 2022’
Show hosts who are in a CIDR block
$ arsenic hosts -q ‘.InCIDR “10.1.1.0/24”’
Metadata: Methods: - HasPorts(ports …int) bool - HasAnyPort() bool - HasTCPPorts(ports …int) bool - HasAnyTCPPort() bool - HasUDPPorts(ports …int) bool - HasAnyUDPPort() bool - HasFlags(flags …string) bool - HasAllFlags(flags …string) bool - HasASFlags(flags …string) bool - HasAllASFlags(flags …string) bool - HasUserFlags(flags …string) bool - HasAllUserFlags(flags …string) bool - HasAnyHostname() bool - InCIDR(cidrStr string) bool
Fields:
- Name string
- Hostnames []string
- RootDomains []string
- IPAddresses []string
- Flags []string
- UserFlags []string
- TCPPorts []int
- UDPPorts []int
- Ports []Port
- ReviewedBy string
Port: Fields: - ID int // The port number - Protocol string - Service string
arsenic hosts [flags]
Options
-a, --add-flags strings flag(s) to add
--add-names strings Hostname(s) to add
-f, --format string Go template format to apply to each matched host's metadata
-h, --help help for hosts
-H, --host strings host(s) to add/remove/update flags
-j, --json Return JSON
--paths Return only the path to each hosts directory
-p, --protocols strings print protocol strings
-q, --query string Query to run. Using Go Template style conditionals.
-r, --remove-flags strings flag(s) to remove
--remove-names strings Hostname(s) to remove
-R, --reviewed-by string[="operator"] Set the reviewer. -R=reviewer or reads from $AS_REVIEWER, and $USER. (default "operator")
-u, --update Update arsenic flags
Options inherited from parent commands
--config string the arsenic.yaml config file
--debug the arsenic.yaml config file
SEE ALSO
- arsenic - Pentesting conventions
- arsenic hosts add - Add a new host