/usr/share/doc/radare-doc/html/Section5.4.html is in radare-doc 1:1.5.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=US-ASCII">
<title>Pattern search with distance</title>
<link rel="previous" href="Section5.3.html">
<link rel="ToC" href="contents.html">
<link rel="next" href="Section5.5.html">
</head>
<body>
<h1><a name="search-proximity"></a>5.4 Pattern search with distance</h1>
<p>
Since radare 1.4 there's a /P command that implements a search algorithm that tries to find a block of blocksize bytes matching at least N bytes compared against the current block.
</p>
<p>
This algorithm is useful for finding similar blocks of code (basic blocks), duplicated and similar strings, etc..
</p>
<p>
Here's an usage example:
</p>
<pre><code>$ cat file
helloworld
this is new
algorithm for
hellpworld
similar blocks
h3llow0rld
$ radare file
[0x00000000]> /P 8 @ 0:10
0x00000025 9/10
0x0000003f 8/10
</code></pre>
<!-- version IDs:
$Id: radare.but 2009-04-25 pancake $
-->
</body>
</html>
|