Jozef Reisinger

NAME

App::Monport - Monitor network ports for changes

SYNOPSIS

 # generate the configuration file
 $ monport localhost scanme.nmap.org

 # review/edit the configuration file
 $ vi $HOME/.monport.yml

 # compare against the configuration file
 $ monport

DESCRIPTION

Use this module to find out whether some new ports have been opened or existing ones have been closed. New open ports mean bigger attack surface and consequently higher security risk. On the other hand if a port gets closed it might indicate a problem with a network service.

The application works by comparing the actual state of ports (open or closed) with the expected state defined in the configuration file.

FUNCTIONS

See bin/monport for how to use these functions.

create_config($conf_file, @hosts)

Create configuration file $HOME/.monport.yml containing hosts with corresponding open ports. This file will be used as the expected list of open ports in the consequent scans.

compare_config($conf_file)

Compare list of open ports defined in the $conf_file with the current list of open ports. Print newly opened or closed ports.

scan_ports($host, $verbose)

Return an array reference containing list of ports open on $host.

nmap_path()

Return absolute path to nmap executable or die.

INSTALLATION

To install this module run:

 $ cpan App::Monport

or

 $ cpanm App::Monport

when using App::cpanminus.

To install manually clone the "SOURCE REPOSITORY" and then run (on Unix):

 perl Build.PL
 ./Build
 ./Build test
 ./Build install

For more see StackOverflow or CPAN instructions.

SOURCE REPOSITORY

http://github.com/jreisinger/App-Monport

AUTHOR

Jozef Reisinger, <reisinge@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015-2016 by Jozef Reisinger.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.