This file is indexed.

/usr/share/thpot/lib/ssh.pl is in tinyhoneypot 0.4.6-10.

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
sub ssh {
    my $textfin = '';
    $textfin = "Protocol mismatch.\n";
    
    print STDERR "$sshver\n\n";
    open(LOG, ">>$sesslog");
    while (my $commands = <STDIN>) {
        print LOG $commands;
        chomp $commands;
        $commands =~ s/\r//;
        @commands=split /\s+/,($commands);
   }
    print STDERR "$textfin";
    close LOG;
}