Exception: WPScan::Error::ChecksumsMismatch

Inherits:
Standard
  • Object
show all
Defined in:
lib/wpscan/errors/update.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_file, cf_ray: nil) ⇒ ChecksumsMismatch

Returns a new instance of ChecksumsMismatch.



15
16
17
18
19
# File 'lib/wpscan/errors/update.rb', line 15

def initialize(db_file, cf_ray: nil)
  @db_file = db_file
  @cf_ray  = cf_ray
  super()
end

Instance Attribute Details

#cf_rayObject (readonly)

Returns the value of attribute cf_ray.



13
14
15
# File 'lib/wpscan/errors/update.rb', line 13

def cf_ray
  @cf_ray
end

#db_fileObject (readonly)

Returns the value of attribute db_file.



13
14
15
# File 'lib/wpscan/errors/update.rb', line 13

def db_file
  @db_file
end

Instance Method Details

#to_sObject



21
22
23
24
25
26
27
28
29
# File 'lib/wpscan/errors/update.rb', line 21

def to_s
  msg = "#{db_file}: checksums do not match. Please try again in a few minutes."
  msg += "\nCloudflare Ray ID: #{cf_ray}" if cf_ray
  msg += "\nIf this issue persists, you can:\n  " \
         "- Check our status page at https://status.wpscan.com/\n  " \
         "- Contact us via https://wpscan.com/contact/ (please include the Ray ID above if any)\n  " \
         '- Or open a GitHub issue at https://github.com/wpscanteam/wpscan/issues'
  msg
end