This file is indexed.

/usr/share/kannel/contrib/fortune.cgi is in kannel-extras 1.4.3-2fakesync2build1.

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

FORTUNE_MAX_TRIES = 10
SMS_MAX = 160

import os, string, sys

def fortune():
    for i in range(FORTUNE_MAX_TRIES):
	f = os.popen("/usr/games/fortune", "r")
	data = f.read()
	f.close()
	data = string.join(string.split(data))
	if len(data) <= SMS_MAX:
	    break
    sys.stdout.write("Content-Type: text/plain\r\n\r\n")
    sys.stdout.write(data[:SMS_MAX])

if __name__ == "__main__":
    fortune()