Usage : my $solution = $plugin->solution Other data as solution, risk factor, etc. This method returns the description of the current plugin. Usage : my $description = $plugin->description This method returns the summary of the current plugin. This method returns the name of the current plugin. This method returns the version of the current plugin. This method returns the list of bugtraq ids associated with the current plugin. This method returns the list of CVE names associated with the current plugin. This method returns the name of the plugin's file (only if you used parse_file method). Usage : my $filename = $plugin->filename This method returns the plugin id of the last plugin processed with parse_file or parse_string, as SCALAR variable. If this method returns true, then you can continue with the parsing, otherwise, the string given as argument isn't a valid. This method tells Parse::Nessus::Plugin to be ready to parse $nasl_string, where $nasl_string is a SCALAR variable that contains the code of a Nessus plugin written in NASL. Usage : $plugin->parse_string($nasl_string) If this method returns true, then you can continue with the parsing, otherwise, the argument given wasn't a valid. nasl plugin (for example /usr/nessus/cifs445.nasl). This method tells Parse::Nessus::Plugin to be ready to parse $nasl_filename, where $nasl_filename is the path to the. Usage : $plugin->parse_file($nasl_filename) This method returns an instance of the Parse::Nessus::Plugin class. Usage : my $plugin = Parse::Nessus::Plugin->new With this module you can get the script id, solution, description, risk factor and many other information in your NASL plugin with a simple call to an OO method. Parse::Nessus::Plugin provides OO methods that easily parse Nessus plugins written in NASL. $plugin->solution # Get solution DESCRIPTION $plugin->parse_string($nasl_string) # Parse from a string $plugin->parse_file($nasl_file) # Parse from a filename $plugin = Parse::Nessus::Plugin->new || undef ĭie("It wasn't posible to initialize parser") Parse::Nessus::Plugin - OO methods to parse Nessus plugins SYNOPSIS use Parse::Nessus::Plugin
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |