Implement suggestions from code review

This commit is contained in:
Ashley Donaldson 2021-11-16 11:07:48 +11:00
parent 360a0b866a
commit f020c99a85
No known key found for this signature in database
GPG Key ID: 70277622B54D3BCE
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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