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

Bug report: ExtractIPAddresses function IPv6 matches incorrectly when multiple IPs in one-line #1721

Open
BlacAmDK opened this issue Feb 18, 2024 · 0 comments
Labels

Comments

@BlacAmDK
Copy link
Contributor

Describe the bug
The original IPv6 regex code in ExtractIPAddresses only worked fine when it matched the whole one-line text, if it has multiple IPs in one line, it will break sometimes.

To Reproduce

https://gchq.github.io/CyberChef/#recipe=Extract_IP_addresses(false,true,false,false,false,false)&input=MjAwMTowZGI4OjAwMDE6MDAwMDowMDAwOjBhYjk6QzBBODowMTAyIGNhbiBiZSBjb21wcmVzc2VkIGFzIGZvbGxvd3M6IDIwMDE6ZGI4OjE6OmFiOTpDMEE4OjEwMi4

Expected behaviour
When multiple IP in one-line, it can be matched correctly.

Screenshots
2024-02-18_09-20

Additional context
See #1661, fix this issue may need to revert this pull request.

@BlacAmDK BlacAmDK added the bug label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant