set --read-timeout=60 --tries=3 for wget

This commit is contained in:
Brendan Coles
2015-06-29 20:08:04 +00:00
parent 968ed12849
commit 6f56f00a18

View File

@@ -39,7 +39,7 @@ module BeEF
# #
if use_existing.nil? || use_existing == false if use_existing.nil? || use_existing == false
begin #,"--background" begin #,"--background"
cmd = ["wget", "#{url}", "-c", "-k", "-O", "#{@cloned_pages_dir + output}", "-U", "#{user_agent}"] cmd = ["wget", "#{url}", "-c", "-k", "-O", "#{@cloned_pages_dir + output}", "-U", "#{user_agent}", '--read-timeout', '60', '--tries', '3']
if not @config.get('beef.extension.social_engineering.web_cloner.verify_ssl') if not @config.get('beef.extension.social_engineering.web_cloner.verify_ssl')
cmd << "--no-check-certificate" cmd << "--no-check-certificate"
end end