/usr/share/perl5/HTTP/Server/Simple/server.pl is in libhttp-server-simple-authen-perl 0.04-1.
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/perl -w
use strict;
use lib 'lib';
package MyServer;
use base qw( HTTP::Server::Simple::Authen HTTP::Server::Simple::CGI );
use Authen::Simple::Passwd;
sub authen_handler {
Authen::Simple::Passwd->new(passwd => '/etc/passwd');
}
sub handle_request {
my $self = shift;
my $user = $self->authenticate();
return unless defined $user;
print "Hello World";
}
MyServer->new->run;
|