Sha256: 8fa199b4007e793d9d20723e0ba13050798cc89574c600523292b0c1c3e3bd57
Contents?: true
Size: 666 Bytes
Versions: 10
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module WPScan module Finders module Passwords # Password attack against the XMLRPC interface class XMLRPC < CMSScanner::Finders::Finder include CMSScanner::Finders::Finder::BreadthFirstDictionaryAttack def login_request(username, password) target.method_call('wp.getUsersBlogs', [username, password], cache_ttl: 0) end def valid_credentials?(response) response.code == 200 && response.body =~ /blogName/ end def errored_response?(response) response.code != 200 && response.body !~ /login_error/i end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems