Skip to content

Commit 7440054

Browse files
author
RageLtMan
committed
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.
1 parent 8f52133 commit 7440054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/crawler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def crawler_process_page(t, page, cnt)
104104
info[:ctype] = page.headers['content-type']
105105
end
106106

107-
if !page.get_cookies.empty?
108-
info[:cookie] = page.get_cookies
107+
if !page.cookies.empty?
108+
info[:cookie] = page.cookies
109109
end
110110

111111
if page.headers['authorization']

0 commit comments

Comments
 (0)