This file is indexed.

/usr/bin/rsc is in radare-common 1:1.5.2-6.

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
#!/bin/sh
#
# radare scripts wrapper
#
# For example:
# 
# $ rsc read /bin/ls 0x100 10
# $ bindiff a b | rsc bdcolor 3
#
# --author pancake

SCRIPTS="/usr/lib/radare/bin"
HOMESCRIPTS="~/.radare/rsc/"
COMMAND="$1"

show_help() {
	echo "Usage: rsc [-l] [script] [-h]"
}

[ "${COMMAND}" = "-h" ] && show_help && exit 0

if [ "${COMMAND}" = "-l" ] ; then
	[ -d ${HOMESCRIPTS} ] && cd ${HOMESCRIPTS} && ls
	cd ${SCRIPTS} && ls 
	exit 0
fi

if [ -z "${COMMAND}" ]; then
	show_help
	echo "* Scripts at ${SCRIPTS} and ${HOMESCRIPTS}"
	echo "* Available scripts:"
	[ -d ${HOMESCRIPTS} ] && cd ${HOMESCRIPTS} && ls
	cd ${SCRIPTS} && ls
	exit 0

fi

if [ -e "${HOMESCRIPTS}/${COMMAND}" ]; then
	DIR=${HOMESCRIPTS}
else
	if [ -e "${SCRIPTS}/${COMMAND}" ]; then
		DIR=${SCRIPTS}
	else
		show_help
	fi
fi

shift
${DIR}/${COMMAND} $@
#perl ${DIR}/${COMMAND} "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8"