/usr/share/doc/radare-doc/html/Chapter18.html is in radare-doc 1:1.5.2-6.
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 40 41 42 43 44 45 46 47 48 | <!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>Rahash</title>
<link rel="previous" href="Chapter17.html">
<link rel="ToC" href="contents.html">
<link rel="next" href="Section18.1.html">
</head>
<body>
<h1><a name="Hashing"></a>Chapter 18: Rahash</h1>
<p>
The it is quite easy to calculate a hash checksum of the current block using the '#' command.
</p>
<p>
Change the block size, seek to the interesting offset and calculate the md5 of it.
</p>
<pre><code>$ radare /bin/ls
[0x08048000]> s section._text
[0x08049790]> b section._text_end-section._text
[0x08049790]> #md5
d2994c75adaa58392f953a448de5fba7
</code></pre>
<p>
In the same way you can also calculate other hashing algorithms that are supported by 'rahash': md4, md5, crc16, crc32, sha1, sha256, sha384, sha512, par, xor, xorpair, mod255, hamdist, entropy, all.
</p>
<p>
The '#' command can accept a numeric argument to define the length in bytes to be hashed.
</p>
<pre><code>[0x08049A80]> #md5 32
9b9012b00ef7a94b5824105b7aaad83b
[0x08049A80]> #md5 64
a71b087d8166c99869c9781e2edcf183
[0x08049A80]> #md5 1024
a933cc94cd705f09a41ecc80c0041def
[0x08049A80]>
</code></pre>
<ul>
<li><a href="Section18.1.html#rahash">18.1 Rahash tool</a></li>
</ul>
<!-- version IDs:
$Id: radare.but 2009-04-25 pancake $
-->
</body>
</html>
|