This file is indexed.

/usr/lib/radare/bin/xtrace is in radare-common 1:1.5.2-4.

This file is owned by root:root, with mode 0o755.

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
#!/bin/sh
#
# Execution trace logger script for GDB
#
# --author pancake <pancake@youterm.com>
#

PROGRAM="$1"
BREAKPOINT="$2"

if [ -z "$PROGRAM" ]; then
	echo "Usage: xtrace [program] [pc-addr]"
	exit 1
fi

if [ -z "${BREAKPOINT}" ]; then
	BREAKPOINT=`readelf -h ${PROGRAM} | grep Entry | awk '{print $4}'`
	if [ -z "${BREAKPOINT}" ]; then
		echo "ERROR: Cannot determine breakpoint.";
		exit 1
	fi
fi

#def gob

TMP=`mktemp -t gdb.XXXXXX`
S=$
cat > ${TMP} <<EOF

set height 0
set \$base=0x08040000
set \$mask=0xffff0000

break *${BREAKPOINT}

run

while(1)
	stepi
	if (((long)${S}eip & (long)${S}mask) == (long)${S}base)
	  disassemble ${S}eip ${S}eip+1
	end
end
quit
EOF

shift ; shift
cat ${TMP}
gdb -batch -n -q -x ${TMP} --args ${PROGRAM} $@ | grep : | grep -v Dump

rm ${TMP}