Sha256: 0413d9b176eaec67e1e36dc5cbacddebb093506cfc030ca12a98c7203e784a4f
Contents?: true
Size: 679 Bytes
Versions: 15
Compression:
Stored size: 679 Bytes
Contents
module WPScan module Finders module InterestingFindings # UploadSQLDump finder class UploadSQLDump < CMSScanner::Finders::Finder SQL_PATTERN = /(?:(?:(?:DROP|CREATE) TABLE)|INSERT INTO)/ # @return [ InterestingFinding ] def aggressive(_opts = {}) url = dump_url res = Browser.get(url) return unless res.code == 200 && res.body =~ SQL_PATTERN WPScan::InterestingFinding.new( url, confidence: 100, found_by: DIRECT_ACCESS ) end def dump_url target.url('wp-content/uploads/dump.sql') end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems