Implement suggestions from code review
This commit is contained in:
parent
360a0b866a
commit
f020c99a85
|
@ -35,7 +35,7 @@ module Exploit::Remote::HttpClient
|
|||
register_advanced_options(
|
||||
[
|
||||
OptString.new('UserAgent', [false, 'The User-Agent header to use for all requests',
|
||||
Rex::UserAgent.session_agent
|
||||
Rex::UserAgent.session_agent
|
||||
]),
|
||||
OptString.new('HttpUsername', [false, 'The HTTP username to specify for authentication', '']),
|
||||
OptString.new('HttpPassword', [false, 'The HTTP password to specify for authentication', '']),
|
||||
|
|
|
@ -21,7 +21,7 @@ module Rex::UserAgent
|
|||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Edg/95.0.1020.44',
|
||||
|
||||
# Safari
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1',
|
||||
'Mozilla/5.0 (iPad; CPU OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1',
|
||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 12_0_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15',
|
||||
|
||||
# Firefox
|
||||
|
|
|
@ -42,6 +42,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
print_status("Searching Google for email addresses from #{targetdom}")
|
||||
response = ""
|
||||
emails = []
|
||||
header = { 'User-Agent' => "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"}
|
||||
clnt = Net::HTTP::Proxy(@proxysrv,@proxyport,@proxyuser,@proxypass).new("www.google.com")
|
||||
searches = ["100", "200","300", "400", "500"]
|
||||
searches.each { |num|
|
||||
|
@ -61,6 +62,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
print_status("Searching Yahoo for email addresses from #{targetdom}")
|
||||
response = ""
|
||||
emails = []
|
||||
header = { 'User-Agent' => Rex::UserAgent.session_agent }
|
||||
clnt = Net::HTTP::Proxy(@proxysrv,@proxyport,@proxyuser,@proxypass).new("search.yahoo.com")
|
||||
searches = ["1", "101","201", "301", "401", "501"]
|
||||
searches.each { |num|
|
||||
|
@ -81,6 +83,7 @@ class MetasploitModule < Msf::Auxiliary
|
|||
print_status("Searching Bing email addresses from #{targetdom}")
|
||||
response = ""
|
||||
emails = []
|
||||
header = { 'User-Agent' => Rex::UserAgent.session_agent }
|
||||
clnt = Net::HTTP::Proxy(@proxysrv,@proxyport,@proxyuser,@proxypass).new("www.bing.com")
|
||||
searches = 1
|
||||
while searches < 201
|
||||
|
|
Loading…
Reference in New Issue