Class: WPScan::Finders::InterestingFindings::TmmDbMigrate

Inherits:
CMSScanner::Finders::Finder
  • Object
show all
Defined in:
app/finders/interesting_findings/tmm_db_migrate.rb

Overview

Tmm DB Migrate finder

Instance Method Summary collapse

Instance Method Details

#aggressive(_opts = {}) ⇒ InterestingFinding

Returns:



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/finders/interesting_findings/tmm_db_migrate.rb', line 7

def aggressive(_opts = {})
  path = 'wp-content/uploads/tmm_db_migrate/tmm_db_migrate.zip'
  url  = target.url(path)
  res  = Browser.get(url)

  return unless res.code == 200 && res.headers['Content-Type'] =~ %r{\Aapplication/zip}i

  WPScan::InterestingFinding.new(
    url,
    confidence: 100,
    found_by: DIRECT_ACCESS,
    references: { packetstorm: 131_957 }
  )
end