This file is indexed.

/usr/share/doc/radare-doc/html/Section22.5.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!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>forum: rsc monitor usage</title>
<link rel="previous" href="Section22.4.html">
<link rel="ToC" href="contents.html">
<link rel="next" href="Section22.6.html">
</head>
<body>
<h1><a name="forummonitor"></a>22.5 forum: rsc monitor usage</h1>
<p>
Rsc is a wonderful entrypoint for user-defined external programs for radare.
</p>
<p>
There's a script called 'monitor' which allows to execute a intro-separated list of commands and visualize them on an external terminal or window.
</p>
<p>
Let's start with a simple example. Let's trace the contents of a buffer while we are stepping into a loop.
</p>
<pre><code>$ radare dbg://&lt;path-to-our-program&gt;
</code></pre>
<p>
Lets open a new terminal and play with it..
</p>
<p>
To list all current monitors type 'rsc monitor -l'. Remember that all your radares will share the same monitorpath. Use the MONITORPATH environment variable to change this (eval dir.monitor inside radare if you don't want to restart your radare) smile
</p>
<pre><code>$ rsc monitor
Usage: rsc monitor [-lr] [name] [command]
  -l        list all running monitors
  -r [name] remove a specific monitor
  -R        removes all monitors
Use MONITORPATH defaults to ~/.radare/monitor/
</code></pre>
<p>
To setup a new monitor type this:
</p>
<pre><code>$ rsc monitor xeip x@eip
</code></pre>
<p>
This will create monitor called "xeip" that willl show N bytes (block size) in hexadecimal starting from eip.
</p>
<p>
Monitors are executed everytime the prompt is shown (also in visual mode), I plan to add a SIGHUP callback for this in future versions.
</p>
<p>
Now we can monitor the 'xeip' monitor with:
</p>
<pre><code>$ rsc monitor xeip
</code></pre>
<p>
If you want to execute more than one command per monitor. Just edit the script by hand in ~/.radare/monitor/your-script (output of the script is your-script.txt) So. don't use .txt as script name smile
</p>
<p>
To remove all monitors use -R or -r with the script name to be removed.
</p>
<pre><code>$ rsc monitor -R
</code></pre>
<p>
Monitors are integrated with the gui.
</p>
<p>
I plan to use inotify() on linux to update the contents of the file faster.
</p>
<p>
NOTES: Only radare commands can be executed. Shell ones will be executed but not shown (because of the console abstraction).
</p>

<!-- version IDs:
$Id: radare.but 2009-04-25 pancake $
-->
</body>
</html>