You can use the following example code to iterate over cookies and their
for _, cookie in ipairs(result.cookies) do
stdnse.print_debug(0, "Cookie: name=%s; value=%s; path=%s",
cookie.name, cookie.value, cookie.path)
On Mar 14, 2011, at 11:29 , Ryan Dewhurst wrote:
I am attempting to write a NSE script for an experiment however I am
trouble accessing HTTP response cookies from the http lib. I think this
due to my lack of understanding of how LUA works.
What I am trying to do is send a HTTP request, then access the HTTP
cookies for later manipulation. I managed to do this by using strsplit()
rawheaders() but then noticed the cookies() method and thought it would
cleaner to use.
I thought the following would have worked, but it does not:
Here is a pastie of the code:
Here is the command I am using:
nmap -sT www.bbc.co.uk -n -PN -p 80,443
I suspect its just a case of me not knowing the syntax however have spent
many hours trying different variations.
projects www.dvwa.co.uk | www.webwordcount.com
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/