Sha256: 1ae700bb2c6fa1ecf5616661cc8e01fdc6a01ace4a5b55e99177f38592d0e353

Contents?: true

Size: 632 Bytes

Versions: 21

Compression:

Stored size: 632 Bytes

Contents

class WpscanTasks < Thor
  include Rails.application.config.dradis.thor_helper_module

  namespace "dradis:plugins:wpscan"

  desc      "upload FILE", "upload WPScan results in JSON format"
  long_desc "This plugin expects a JSON file generated by WPScan using: -f "\
            "json -o results.json"
  def upload(file_path)
    require 'config/environment'

    unless File.exists?(file_path)
      $stderr.puts "** the file [#{file_path}] does not exist"
      exit(-1)
    end

    detect_and_set_project_scope

    importer = Dradis::Plugins::Wpscan::Importer.new(task_options)
    importer.import(file: file_path)
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

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