Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: NSE http lib cookies
From: David Fifield <david () bamsoftware com>
Date: Mon, 14 Mar 2011 15:44:44 -0700

On Mon, Mar 14, 2011 at 11:38:57PM +0100, Patrik Karlsson wrote:
Hi Ryan,

You can use the following example code to iterate over cookies and their attributes:

for _, cookie in ipairs(result.cookies) do
      stdnse.print_debug(0, "Cookie: name=%s; value=%s; path=%s", cookie.name, cookie.value, cookie.path)

And cookies have historically been buggy in the http.lua library because
we don't have scripts that use them. You might try with the latest code
from Subversion if that's not what you're using already.

David Fifield
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]