Ref #1241
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user