Class BinaryPatternVerifier
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.BinaryPatternVerifier
A collection of binary patterns and a verifier for them. Determine if any one of the pattern
matches a provided bytes buffer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPattern(IBinaryPattern pattern) voidaddPatterns(IBinaryPattern... patterns) voidaddPatterns(Collection<IBinaryPattern> patterns) voidclear()intverify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd) verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize) verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize, int processorMode)
-
Constructor Details
-
BinaryPatternVerifier
public BinaryPatternVerifier()
-
-
Method Details
-
addPatterns
-
addPatterns
-
addPattern
-
getPatterns
-
clear
public void clear() -
getLongestSize
public int getLongestSize() -
verify
public IBinaryPattern verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd) -
verify
public IBinaryPattern verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize) -
verify
public IBinaryPattern verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize, int processorMode) - Parameters:
gca-address-buffer-offset-offsetEnd-patternSize- if different from zero, the verification is only done with the patterns of the given size in bytesprocessorMode- restricted processor mode, matchingIBinaryPattern.getProcessorMode(). UseIProcessor.MODE_DEFAULTto test all modes or pick one to restrict verification.- Returns:
-