This file is indexed.

/usr/lib/radare/bin/CafeBabe.sh 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
#!/bin/sh
RADARE=../src/radare
[ ! -e "${RADARE}" ] && RADARE=radare

FILE=$1
if [ ! -e "${FILE}" ]; then
	echo "Usage: CafeBabe.sh [file.class]"
	exit 1;
fi

PORT=9876

${RADARE} -L ${PORT} ${FILE} 2>&1 >/dev/null
if [ $? = 1 ]; then
	echo "error: Cannot start the radare daemon.";
	exit 1
fi

query="${RADARE} -q localhost:${PORT}"

# Go little endian
$query "e 1" >/dev/null
cafe=`$query "v/w"`
if [ "${cafe}" = "CAFE" ]; then
	printf "CAFE"
else
	echo "This is not a cafe."
	$query "q"
	exit 1
fi
$query "s 2" >/dev/null
$query "v/w"
$query "q"

exit 0