Sha256: f2140a559781457e626bc53b7dd706e0eba52f6462c930b37752f71fe17c6c69
Contents?: true
Size: 735 Bytes
Versions: 25
Compression:
Stored size: 735 Bytes
Contents
module Dradis module Plugins module Burp class FieldProcessor < Dradis::Plugins::Upload::FieldProcessor def post_initialize(args={}) @burp_object = if data.is_a?(Nokogiri::XML::Element) ::Burp::Xml::Issue.new(data) elsif data.is_a?(Nokogiri::XML::NodeSet) ::Burp::Html::Issue.new(data) end end def value(args={}) field = args[:field] # fields in the template are of the form <foo>.<field>, where <foo> # is common across all fields for a given template (and meaningless). _, name = field.split('.') @burp_object.try(name) || 'n/a' end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems