Skip to content

Commit

Permalink
Add section about delta search (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpelissier authored May 11, 2021
1 parent 40a2391 commit d867f18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/search_bytes/pattern_search.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ Here is an example:
[0x00000000]> /p 10
```
This command output will show different patterns found and how many times each of them is encountered.

It is possible to search patterns with a known difference between consecutive bytes with `/d` command. For example, the command to search all the patterns with the first and second bytes having the first bit which differs and the second and third bytes with the second bit which differs is:

```
[0x00000000]> /d 0102
Searching 2 bytes in [0x0-0x400]
hits: 2
0x00000118 hit2_0 9a9b9d
0x00000202 hit2_1 a4a5a7
```

0 comments on commit d867f18

Please sign in to comment.