This file is indexed.

/usr/share/pyshared/fs/tests/ftpserver.py is in python-fs 0.3.0-2.

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

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
try:
    from pyftpdlib import ftpserver
except ImportError:
    print "Requires pyftpdlib <http://code.google.com/p/pyftpdlib/>"
    raise
    
import sys

authorizer = ftpserver.DummyAuthorizer()
authorizer.add_user("user", "12345", sys.argv[1], perm="elradfmw")
authorizer.add_anonymous(sys.argv[1])

handler = ftpserver.FTPHandler
handler.authorizer = authorizer
address = ("127.0.0.1", 21)

ftpd = ftpserver.FTPServer(address, handler)
ftpd.serve_forever()