This commit is contained in:
erwanlr
2018-11-08 19:04:40 +00:00
parent 3555ca1d1e
commit 8b5ea589db
3 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
module WPScan module WPScan
# HTTP Error # HTTP Error
class HTTPError < StandardError class HTTPError < Error
attr_reader :response attr_reader :response
# @param [ Typhoeus::Response ] res # @param [ Typhoeus::Response ] res

View File

@@ -1,6 +1,6 @@
module WPScan module WPScan
# Error raised when there is a missing DB file and --no-update supplied # Error raised when there is a missing DB file and --no-update supplied
class MissingDatabaseFile < StandardError class MissingDatabaseFile < Error
def to_s def to_s
'Update required, you can not run a scan if a database file is missing.' 'Update required, you can not run a scan if a database file is missing.'
end end

View File

@@ -1,20 +1,23 @@
module WPScan module WPScan
class Error < StandardError
end
# WordPress hosted (*.wordpress.com) # WordPress hosted (*.wordpress.com)
class WordPressHostedError < StandardError class WordPressHostedError < Error
def to_s def to_s
'Scanning *.wordpress.com hosted blogs is not supported.' 'Scanning *.wordpress.com hosted blogs is not supported.'
end end
end end
# Not WordPress Error # Not WordPress Error
class NotWordPressError < StandardError class NotWordPressError < Error
def to_s def to_s
'The remote website is up, but does not seem to be running WordPress.' 'The remote website is up, but does not seem to be running WordPress.'
end end
end end
# Invalid Wp Version (used in the WpVersion#new) # Invalid Wp Version (used in the WpVersion#new)
class InvalidWordPressVersion < StandardError class InvalidWordPressVersion < Error
def to_s def to_s
'The WordPress version is invalid' 'The WordPress version is invalid'
end end