#!/usr/bin/perl # Build log hardening check, checks build logs for missing hardening flags. # Copyright (C) 2012 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use Getopt::Long (); our $VERSION = '0.01'; # Parse command line arguments. my $option_help = 0; my $option_version = 0; if (not Getopt::Long::GetOptions( 'help|h|?' => \$option_help, 'version' => \$option_version, )) { require Pod::Usage; Pod::Usage::pod2usage(2); } if ($option_help) { require Pod::Usage; Pod::Usage::pod2usage(1); } if ($option_version) { print "blhc $VERSION Copyright (C) 2012 Simon Ruderich This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . "; exit 0; } __END__ =head1 NAME blhc - build log hardening check, checks build logs for missing hardening flags =head1 SYNOPSIS B [-h -? --help] --help available options --version version number and license =head1 DESCRIPTION blhc is a small tool which checks build logs for missing hardening flags and other important warnings. It's licensed under the GPL 3 or later. =head1 OPTIONS =over 8 =item B<-h -? --help> Print available options. =item B<--version> Print version number and license. =back =head1 AUTHOR Simon Ruderich, Esimon@ruderich.orgE =head1 COPYRIGHT AND LICENSE Copyright (C) 2012 by Simon Ruderich This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . =cut