#!/usr/bin/perl # list_services.cgi # Displays a list of standard and custom services require './itsecur-lib.pl'; &can_use_error("services"); &header($text{'services_title'}, "", undef, undef, undef, undef, &apply_button()); print "
$text{'service_name'} | ", "$text{'service_ports'} | |
$text{'services_header1'} | ||
$text{'services_header2'} | ||
$s->{'name'} | \n"; } else { print "", "$s->{'name'} | \n"; } print ""; for($i=0; $i<@{$s->{'protos'}}; $i++) { print &protocol_name($s->{'protos'}->[$i], $s->{'ports'}->[$i]); print "\n"; } for($i=0; $i<@{$s->{'others'}}; $i++) { print "$s->{'others'}->[$i]\n"; } print " | \n"; print "
\n" if ($edit); print "