Nmap Development mailing list archives
Re: How do I do HTTP Basic Auth?
From: Robin Wood <robin () digininja org>
Date: Sun, 17 Feb 2013 23:01:04 +0000
On 17 February 2013 22:58, David Fifield <david () bamsoftware com> wrote:
On Sun, Feb 17, 2013 at 10:55:45PM +0000, Robin Wood wrote:I'm writing an nse script which needs to do basic auth, I've found quiteafew scripts which call the brute force engine to do the authenticationbutI can't find any examples of doing it when you know the credentials. Can anyone give me an example?In general it's something like this: http.get(host, port, path, { auth = { username = "user", password = "pass" } }) The fourth argument is an option table that controls auth, as well as other things. David Fifield
Brilliant, thanks. Robin _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- How do I do HTTP Basic Auth? Robin Wood (Feb 17)
- Re: How do I do HTTP Basic Auth? David Fifield (Feb 17)
- Re: How do I do HTTP Basic Auth? Robin Wood (Feb 17)
- Re: How do I do HTTP Basic Auth? David Fifield (Feb 17)