github greenbone/python-gvm v1.0.0.beta2
python-gvm 1.0.0.beta2

latest releases: v24.3.0, v24.1.0, v23.12.0...
pre-release5 years ago

Changes

gvm.protocols.base

  • Fix: Don't close the connection after each send/read command sequence
    automatically. This fixes sending more then one privileged gmp command after
    authentication.

gvm.protocols.gmpv7

  • Fixed generating XML for help command
  • help method type argument got renamed to help_type
  • help method help_type argument will be checked for invalid values
  • Fixed wrong order of key and value for condition_data, event_data and
    method_data dict parameters of create_alert method.
  • create_credential requires a credential_type argument now.
  • Optional parameters are required to be passed as keyword arguments.
  • Fixed get_reports sending the wrong protocol command
  • Removed format_id argument from get_reports
  • get_report method format_id argument got renamed to
    report_format_id
  • Removed alert_id argument from get_reports
  • Added new trigger_alert method for triggering an alert method on a
    specific report.
  • Fixed create_permission method
  • Check if scanner_type is one of '1' (OSP Scanner) or '2' (OpenVAS Scanner) in
    create_scanner method.
  • Fixed get_config sending the correct protocol command.
  • Added import_config method to import a scan config from xml.

gvm.xml

  • Added helper function to validate xml input gvm.xml.validate_xml_string
  • pretty_print accepts a xml string as input too

gvm.connections

  • Optional arguments for connection class constructors must be passed as
    keyword arguments.
  • Add finish_send method to connections. The method allows to indicate to
    the server sending data is finished and no additional data has to be received.
  • Don't crash if huge content is returned in a xml response. This fixes e.g.
    get_reports for bigger report data.
  • It's possible to wait indefinitely by deactivating the timeouts via passing
    None as timeout argument to the connection class constructors now.
  • Removed unused read_timeout argument from UnixSocketConnection

Don't miss a new python-gvm release

NewReleases is sending notifications on new releases.