From 0ff299c425801d053bf2884bf5f479f785c50e9b Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 22 Jul 2019 12:13:01 +0100 Subject: [PATCH] Updates UA used when updating the DB --- lib/wpscan/db/updater.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/wpscan/db/updater.rb b/lib/wpscan/db/updater.rb index 834cba75..f625ac0b 100644 --- a/lib/wpscan/db/updater.rb +++ b/lib/wpscan/db/updater.rb @@ -64,11 +64,12 @@ module WPScan # @return [ Hash ] The params for Typhoeus::Request # @note Those params can't be overriden by CLI options def request_params - { + @request_params ||= { timeout: 600, connecttimeout: 300, accept_encoding: 'gzip, deflate', - cache_ttl: 0 + cache_ttl: 0, + headers: { 'User-Agent' => Browser.instance.default_user_agent } } end