This file is indexed.

/usr/share/doc/libjcifs-java/examples/VerifyGuest.java is in libjcifs-java-doc 1.3.19-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
19
20
21
22
23
24
25
26
27
import jcifs.netbios.NbtAddress;
import jcifs.smb.*;
import java.util.Date;

public class VerifyGuest {

    public static void list( SmbFile dir ) {
        try {
            long t1 = System.currentTimeMillis();
            SmbFile[] files = dir.listFiles();
            long t2 = System.currentTimeMillis() - t1;

            for( int i = 0; i < files.length; i++ ) {
                System.out.print( " " + files[i].getName() );
            }
            System.out.println();
            System.out.println( files.length + " files in " + t2 + "ms" );
        } catch( Exception e ) {
            e.printStackTrace();
        }
    }

    public static void main( String[] argv ) throws Exception {
        list( new SmbFile( "smb://miallen2/" ));
        list( new SmbFile( "smb://miallen2/pub/", new NtlmPasswordAuthentication( "dom", "user", "pass" )));
    }
}