The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::P0f::Backend::CmdFE - Back-end for Net::P0F that pilots the p0f utility

VERSION

Version 0.01

SYNOPSIS

use Net::P0f;

my $p0f = Net::P0f->new(backend => 'cmd', program_path => '/usr/local/bin/p0f');
...

DESCRIPTION

This module is a back-end helper for Net::P0f. It provides an interface to pilot the p0f(1) utility by parsing its output.

See Net::P0f for more general information and examples.

METHODS

init()

This method initializes the backend-specific part of the object. It is automatically called by Net::P0f during the object creation.

Options

  • program_path - indicates the path of the p0f program. If not specified, uses PATH.

run()

This method runs the backend engine. It is called by the loop() method.

DIAGNOSTICS

These messages are classified as follows (listed in increasing order of desperatin):

  • (W) A warning, usually caused by bad user data.

  • (E) An error caused by external code.

  • (F) A fatal error caused by the code of this module.

Can't exec '%s': %s

(F) This module was unable to execute the program. Detailed error follows.

Please set the path to p0f with the 'program_path' option

(F) You must set the program_path option with the path to the p0f binary.

The callback died with the following error: %s

(E) As the message says, the callback function died. Its error was catched and follows.

Unknown option '%s'

(W) You called an accesor which does not correspond to a known option.

SEE ALSO

Net::P0f

AUTHOR

Sébastien Aperghis-Tramoni <sebastien@aperghis.net>

BUGS

Please report any bugs or feature requests to bug-net-p0f-cmdfe@rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-P0f. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2004 Sébastien Aperghis-Tramoni, All Rights Reserved.

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