From 74400549a106f68f1d3e788894dd894641c968f0 Mon Sep 17 00:00:00 2001 From: RageLtMan Date: Fri, 30 May 2014 14:39:51 -0400 Subject: [PATCH] Resolve undefined method `get_cookies' Anemone::Page is not a Rex HTTP request/response, and uses the :cookies method to return an array of cookies. This resolves the method naming error, though it does break with Rex naming convention since Anemone still uses a lot non-Rex methods for working with pages/traffic. --- modules/auxiliary/scanner/http/crawler.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/http/crawler.rb b/modules/auxiliary/scanner/http/crawler.rb index 0915ee3da3..0b0b34a7ee 100644 --- a/modules/auxiliary/scanner/http/crawler.rb +++ b/modules/auxiliary/scanner/http/crawler.rb @@ -104,8 +104,8 @@ class Metasploit3 < Msf::Auxiliary info[:ctype] = page.headers['content-type'] end - if !page.get_cookies.empty? - info[:cookie] = page.get_cookies + if !page.cookies.empty? + info[:cookie] = page.cookies end if page.headers['authorization']