Scan target hostnames with dashes are not resolved #3231
Labels
Bug
An error, flaw, misbehavior or failure in the Monkey or Monkey Island.
Impact: Low
Impact: Medium
sp/3
Milestone
If a hostname with dashes is added to the "Scan target list", it will not get resolved, and will not be scanned. This is because it is interpreted as an IP range, two IPs separated by a dash.
Related code:
network_range.py:
NetworkRange.get_range_obj()
converts a string into aNetworkRange
NetworkRange.check_if_range()
is where we determine whether or not a string is a rangeSingleIpRange.string_to_host()
is where hostnames are resolvedNetworkRange.check_if_range("hadoop-3")
returnsTrue
. It should returnFalse
Tasks
The text was updated successfully, but these errors were encountered: