This file is indexed.

/usr/share/radare2/0.9.6/www/enyo/js/r2ui.js is in libradare2-common 0.9.6-3.1ubuntu1.

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
76
77
78
79
80
var r2ui = {};

r2ui.history = [];
r2ui.history_idx = 0;

r2ui.history_push = function (x) {
  if (r2ui.history_idx != r2ui.history.length)
    r2ui.history = r2ui.history.splice (0,r2ui.history_idx);
  r2ui.history_idx++;
//alert ("push "+x);
  r2ui.history.push (x);
}

r2ui.history_pop = function () {
  if (r2ui.history_idx == r2ui.history.length)
    r2ui.history_idx--;
  return r2ui.history.pop();
}

r2ui.history_prev = function () {
  if (r2ui.history_idx>1)
    r2ui.history_idx--;
  var ret = r2ui.history[r2ui.history_idx-1];
  return ret;
}

r2ui.history_next = function () {
//alert(r2ui.history_idx);
//alert(r2ui.history.length);
  var ret = r2ui.history[r2ui.history_idx];
  if (r2ui.history_idx<r2ui.history.length)
    r2ui.history_idx++;
  return ret;
}

// XXX . this is used from disasm()
r2ui.seek = function (addr, x) {
  // XXX. this is only for disasm 
    r2ui.history_push (addr);
  if (r2ui.ra.getIndex ()==2)
    r2ui.ra.setIndex (1);
  r2.cmd ("s "+addr, function () {
    r2ui._dis.seek (addr);
    r2ui._dis.scrollTo (0, 0);
    r2ui._hex.seek (addr);
    r2ui._hex.scrollTo (0, 0);
  });
}

r2ui.seek_prev = function () {
  // XXX. this is only for disasm 
  var addr = r2ui.history.pop ();
  r2.cmd ("s "+addr, function () {
    r2ui._dis.seek (addr);
    r2ui._dis.scrollTo (0, 0);
    r2ui._hex.seek (addr);
    r2ui._hex.scrollTo (0, 0);
  });
}

/* used from mainpanel */
r2ui.openpage = function(addr, idx) {
  if (idx === undefined) {
    idx = addr;
    addr = undefined;
  } else
  if (addr !== undefined)
    r2ui.seek (addr);
  if (r2ui.ra.getIndex ()==2)
    r2ui.ra.setIndex (1);
  r2ui.mp.openPage (idx);
}

r2ui.opendis = function (addr) {
  r2ui.openpage (addr, 0);
}

r2ui.openhex = function (addr) {
  r2ui.openpage (addr, 2);
}