Sha256: 76fe0e86a99d600618b384f93d172ec74caa3acb3a9a2a326a05f05e3d9b277f
Contents?: true
Size: 763 Bytes
Versions: 20
Compression:
Stored size: 763 Bytes
Contents
# frozen_string_literal: true module WPScan module Finders module InterestingFindings # BackupDB finder class BackupDB < CMSScanner::Finders::Finder # @return [ InterestingFinding ] def aggressive(_opts = {}) path = 'wp-content/backup-db/' res = target.head_and_get(path, [200, 403]) return unless [200, 403].include?(res.code) && !target.homepage_or_404?(res) Model::BackupDB.new( target.url(path), confidence: 70, found_by: DIRECT_ACCESS, interesting_entries: target.directory_listing_entries(path), references: { url: 'https://github.com/wpscanteam/wpscan/issues/422' } ) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems