Description
The CLI sanitization for --target-ip removes : characters, which corrupts valid IPv6 addresses before Honeyscanner attempts honeypot detection.
Affected Files
Relevant Code
The sanitizer currently removes any character not matching [a-z0-9._\- ]:
s = re.sub(r'[^a-z0-9._\- ]', '', s)
Steps To Reproduce
Run Honeyscanner with an IPv6 target such as:
python3 honeyscanner/main.py --target-ip 2001:db8::1
Observe that the target value is sanitized before detection.
Current Behavior
A valid IPv6 address like:
is transformed into:
Expected Behavior
Valid IPv6 addresses should remain unchanged
Description
The CLI sanitization for
--target-ipremoves:characters, which corrupts valid IPv6 addresses before Honeyscanner attempts honeypot detection.Affected Files
Relevant Code
The sanitizer currently removes any character not matching
[a-z0-9._\- ]:Steps To Reproduce
Run Honeyscanner with an IPv6 target such as:
Observe that the target value is sanitized before detection.
Current Behavior
A valid IPv6 address like:
is transformed into:
Expected Behavior
Valid IPv6 addresses should remain unchanged