/usr/share/doc/radare-doc/html/Section11.1.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 40 41 42 43 44 45 46 47 | <!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>File identification</title>
<link rel="previous" href="Chapter11.html">
<link rel="ToC" href="contents.html">
<link rel="next" href="Section11.2.html">
</head>
<body>
<h1><a name="rabin-id"></a>11.1 File identification</h1>
<p>
The file identification is done through the -I flag, it will output information regarding binary class, encoding, OS, type, etc.
</p>
<pre><code>$ rabin -I /bin/ls
[Information]
class=ELF32
enconding=2's complement, little endian
os=linux
machine=Intel 80386
arch=intel
type=EXEC (Executable file)
stripped=Yes
static=No
baddr=0x0804800
</code></pre>
<p>
As it was said we can add the -r flag to use all this information in radare:
</p>
<pre><code>$ rabin -Ir /bin/ls
e file.type = elf
e io.vaddr = 0x08048000
e cfg.bigendian = false
e dbg.dwarf = false
e asm.os = linux
e asm.arch = intel
</code></pre>
<p>
This is automatically done at startup if we append to our configuration file (.radarerc) the eval command "eval file.id = true".
</p>
<!-- version IDs:
$Id: radare.but 2009-04-25 pancake $
-->
</body>
</html>
|