diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2024-04-23 14:21:30 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2024-04-23 14:21:30 -0400 |
| commit | 98a5094bea61e02fb9184707b8bad6e09b9f5574 (patch) | |
| tree | e16be5006463bc669bbd6e934d8200d31b3980d5 /python | |
| parent | aa4ad795075bf513f219cfce8eec782e94e1756b (diff) | |
initial advanced binary search documentation
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index d740ce92..9ef7a913 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -8700,6 +8700,15 @@ class BinaryView: :return: A generator object that yields the offset and matched DataBuffer for each match found. :rtype: QueueGenerator + :Example: + >>> from binaryninja import load + >>> bv = load('/bin/ls') + >>> print(bv) + <BinaryView: '/bin/ls', start 0x100000000, len 0x182f8> + >>> bytes(list(bv.search("50 ?4"))[0][1]).hex() + '5004' + >>> bytes(list(bv.search("[\\x20-\\x25][\\x60-\\x67]"))[0][1]).hex() + '2062' """ if start is None: start = self.start |
