Description
Adversaries may scan victim IP blocks to gather information that can be used during targeting. Public IP addresses may be allocated to organizations by block, or a range of sequential addresses.
Adversaries may scan IP blocks in order to Gather Victim Network Information, such as which IP addresses are actively in use as well as more detailed information about hosts assigned these addresses. Scans may range from simple pings (ICMP requests and responses) to more nuanced scans that may reveal host software/versions via server banners or other network artifacts. Information from these scans may reveal opportunities for other forms of reconnaissance (ex: Search Open Websites/Domains or Search Open Technical Databases), establishing operational resources (ex: Develop Capabilities or Obtain Capabilities), and/or initial access (ex: External Remote Services).[1]
Ping
# Scans 10.i.j.k
for /L %i in (1 1 15) do for /L %j in (1 1 20) do for /L %k in (1 1 20) do ping 10.%i.%j.%k -n 1 -w 100 | findstr "Reply"
# Scans 10.9.20.i 0-254
for /L %i in (1 1 254) do ping 10.9.20.%i -n 1 -w 100 | find "Reply"