lib/wpscan/errors/wordpress.rb
# 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
class NoLoginInterfaceDetected < Standard
def to_s
'Could not find a login interface to perform the password attack against'
end
end
end
end