Skip to content

Conversation

@LaurenceJJones
Copy link
Member

link to #1567

Description

  • Changed pattern from ipv4 to ipv\d to support both IPv4 and IPv6
  • Added missing SMB_AUTH_FAIL pattern for NT_STATUS_NO_SUCH_USER status
  • Made port number mandatory in pattern to help with IPv6 boundary detection
  • Added IPv6 test cases with private IPv6 addresses (fd00::/8)
  • Updated parser.assert with test results

Checklist

  • I have read the contributing guide
  • I have tested my changes locally
  • For new parsers or scenarios, tests have been added
  • I have run the hub linter and no issues were reported (see contributing guide)
  • Automated tests are passing
  • AI was used to generate any/all content of this PR

- Changed pattern from ipv4 to ipv\d to support both IPv4 and IPv6
- Added missing SMB_AUTH_FAIL pattern for NT_STATUS_NO_SUCH_USER status
- Made port number mandatory in pattern to help with IPv6 boundary detection
- Added IPv6 test cases with private IPv6 addresses (fd00::/8)
- Updated parser.assert with test results
- Changed pattern to use DATA instead of IP pattern to capture IP:port
- Use Go-style slicing with lastIndexOf() to extract IP address
- This approach handles both IPv4 and IPv6 addresses correctly
- Updated parser.assert with test results
- Removed SMB_IP_PORT custom pattern
- Use standard DATA pattern for ip_source_with_port extraction
- Extract IP using lastIndexOf expression to handle IPv6 addresses with ports
- Pattern now works correctly for both IPv4 and IPv6 addresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant