Sha256: e1c2280b50c87b8dda308342e86e71418bede2068b4d893f5500cc9f09256e07

Contents?: true

Size: 884 Bytes

Versions: 22

Compression:

Stored size: 884 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Error
    # WordPress hosted (*.wordpress.com)
    class WordPressHosted < Standard
      def to_s
        'The target appears to be hosted on WordPress.com. Scanning such site is not supported.'
      end
    end

    # Not WordPress Error
    class NotWordPress < Standard
      def to_s
        'The remote website is up, but does not seem to be running WordPress.'
      end
    end

    # Invalid Wp Version (used in the WpVersion#new)
    class InvalidWordPressVersion < Standard
      def to_s
        'The WordPress version is invalid'
      end
    end

    class WpContentDirNotDetected < Standard
      def to_s
        'Unable to identify the wp-content dir, please supply it with --wp-content-dir,' \
        ' use the --scope option or make sure the --url value given is the correct one'
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
wpscan-3.5.4 lib/wpscan/errors/wordpress.rb
wpscan-3.5.3 lib/wpscan/errors/wordpress.rb