Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan target hostnames with dashes are not resolved #3231

Closed
1 task
cakekoa opened this issue Apr 17, 2023 — with Slack · 0 comments · Fixed by #3352
Closed
1 task

Scan target hostnames with dashes are not resolved #3231

cakekoa opened this issue Apr 17, 2023 — with Slack · 0 comments · Fixed by #3352
Assignees
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Impact: Low Impact: Medium sp/3
Milestone

Comments

Copy link
Contributor

cakekoa commented Apr 17, 2023

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 a NetworkRange
  • NetworkRange.check_if_range() is where we determine whether or not a string is a range
  • SingleIpRange.string_to_host() is where hostnames are resolved

NetworkRange.check_if_range("hadoop-3") returns True. It should return False

Tasks

  • Fix it (0.5d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Impact: Low Impact: Medium sp/3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants