This file is indexed.

/usr/share/doc/empty-expect/examples/emsu.sh is in empty-expect 0.6.20b-1ubuntu1.

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
#!/bin/sh

# emsu.sh v.0.4
# su example for empty
# Copyright (C) 2005, 2006 Mikhail E. Zakharov
#

password="RootPassword"			# password (Change it!)

fifo_in="/tmp/empty.in"			# input fifo
fifo_out="/tmp/empty.out"		# output

# -----------------------------------------------------------------------------
tmp="/tmp/empty.tmp"			# tempfile to store results

echo "Starting empty"
empty -f -i $fifo_in -o $fifo_out su 
if [ $? = 0 ]; then
	sleep 1			# heh, we may need this sleep() again 
	if [ -w $fifo_in -a -r $fifo_out ]; then
		echo "Sending Password"
		empty -w -v -i $fifo_out -o $fifo_in -t 5 assword: "$password\n"
		echo "Sending tests"
		empty -s -o $fifo_in "echo EMPTY TEST BEGIN\n > $tmp"
		empty -s -o $fifo_in "who am i\n >> $tmp"
		empty -s -o $fifo_in "id\n >> $tmp"
		empty -s -o $fifo_in "echo EMPTY TEST END\n >> $tmp"
		echo "Sending exit"
		empty -s -o $fifo_in 'exit\n'
		echo "Check results:"
		sleep 1
		cat $tmp
	else
		echo "Error: Can't find I/O fifos!"
		return 1
	fi
else
	echo "Error: Can't start empty in daemon mode"
	return 1
fi

echo "Done"