Sha256: 0c9e3114788bf11645cc0205d5f74dc2a283d74363b2c4daed9e2e8165cf0d57

Contents?: true

Size: 575 Bytes

Versions: 20

Compression:

Stored size: 575 Bytes

Contents

module Dradis
  module Plugins
    module Wpscan
      class FieldProcessor < Dradis::Plugins::Upload::FieldProcessor
        # No need to implement anything here
        # def post_initialize(args={})
        # 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).
          type, name, attribute = field.split('.')

          @data.key?(name) ? @data[name] : 'n/a'
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
dradis-wpscan-4.14.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.13.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.11.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.10.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.9.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.8.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.7.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.6.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.5.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.4.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.3.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.2.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.1.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-4.0.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-3.22.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-3.21.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-3.20.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-3.19.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-3.18.0 lib/dradis/plugins/wpscan/field_processor.rb
dradis-wpscan-3.17.0 lib/dradis/plugins/wpscan/field_processor.rb