Skip to content

IPv6 targets unusable #53

Description

@ShenoyAman

Description

The CLI sanitization for --target-ip removes : characters, which corrupts valid IPv6 addresses before Honeyscanner attempts honeypot detection.

Affected Files

  • [honeyscanner/main.py]

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:

2001:db8::1 

is transformed into:

2001db81 

Expected Behavior

Valid IPv6 addresses should remain unchanged

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions