Class MaskedByteSequenceByteMatcher

java.lang.Object
ghidra.features.base.memsearch.matcher.UserInputByteMatcher
ghidra.features.base.memsearch.matcher.MaskedByteSequenceByteMatcher
All Implemented Interfaces:
ByteMatcher<SearchData>

public class MaskedByteSequenceByteMatcher extends UserInputByteMatcher
ByteMatcher where the user search input has been parsed into a sequence of bytes and masks to be used for searching a byte sequence.
  • Constructor Details

    • MaskedByteSequenceByteMatcher

      public MaskedByteSequenceByteMatcher(String input, byte[] bytes, SearchSettings settings)
      Constructor where no masking will be required. The bytes must match exactly.
      Parameters:
      input - the input text used to create this matcher
      bytes - the sequence of bytes to use for searching
      settings - the SearchSettings used to parse the input text
    • MaskedByteSequenceByteMatcher

      public MaskedByteSequenceByteMatcher(String input, byte[] bytes, byte[] masks, SearchSettings settings)
      Constructor that includes a mask byte for each search byte.
      Parameters:
      input - the input text used to create this matcher
      bytes - the sequence of bytes to use for searching
      masks - the sequence of mask bytes to use for search. Each mask byte will be applied to the bytes being search before comparing them to the target bytes.
      settings - the SearchSettings used to parse the input text
  • Method Details