update enum_delicious, fixes #3230

git-svn-id: file:///home/svn/framework3/trunk@11107 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake 2010-11-23 01:26:59 +00:00
parent 9c668b8daf
commit b55633af60
1 changed files with 3 additions and 3 deletions

View File

@ -48,11 +48,11 @@ class Metasploit3 < Msf::Auxiliary
while lastpage == 0
print_status("Page number: " + pagenum.to_s)
header = { 'User-Agent' => "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/4.0.221.6 Safari/525.13"}
clnt = Net::HTTP::Proxy(@proxysrv,@proxyport,@proxyuser,@proxypass).new("delicious.com")
clnt = Net::HTTP::Proxy(@proxysrv,@proxyport,@proxyuser,@proxypass).new("www.delicious.com")
resp, data = clnt.get2("/search?p=site%3A"+targetdom+"&page="+pagenum.to_s,header)
response << data
response.each_line do |line|
list << line.gsub!(/(.+<a rel)(.+=+\")(.+)(\".+)/, '\3')
list << line.gsub!(/(.+<a rel=\"nofollow)(.+=+\")(.+)(\".+)/, '\3')
end
if /pn\ next/.match(data)
pagenum += 1
@ -102,7 +102,7 @@ class Metasploit3 < Msf::Auxiliary
print_status("Located #{urls.count} addresses for #{target}")
if datastore['OUTFILE']
write_output(urls.join("\n") + "\n")
write_output(urls.join)
else
urls.each do |i|
puts(i)