Nmap Development mailing list archives
Re: [NSE] POST path handling in http-default-accounts-fingerprints
From: nnposter () users sourceforge net
Date: Tue, 13 Aug 2013 21:28:25 +0000
George Chatzisofroniou wrote:
I don't really like the concatenation that occurs there.
This patch against revision 31798 is replacing the concatenation with a more uniform function call: --- nselib/data/http-default-accounts-fingerprints.lua.orig 2013-08-12 16:45:29.406250000 -0600 +++ nselib/data/http-default-accounts-fingerprints.lua 2013-08-13 14:58:41.484375000 -0600 @@ -47,7 +47,7 @@ -- @return True if login in was successful --- local function try_http_post_login(host, port, path, target, failstr, params, follow_redirects) - local req = http.post(host, port, path:gsub("[^/]+$","")..target, {no_cache=true}, nil, params) + local req = http.post(host, port, url.absolute(path, target), {no_cache=true}, nil, params) if not req.status then return false end local status = tonumber(req.status) or 0 Cheers, nnposter _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE] POST path handling in http-default-accounts-fingerprints nnposter (Jul 26)
- Re: [NSE] POST path handling in http-default-accounts-fingerprints George Chatzisofroniou (Jul 29)
- Re: [NSE] POST path handling in http-default-accounts-fingerprints nnposter (Jul 29)
- Re: [NSE] POST path handling in http-default-accounts-fingerprints George Chatzisofroniou (Jul 29)
- Re: [NSE] POST path handling in http-default-accounts-fingerprints nnposter (Aug 13)
- Re: [NSE] POST path handling in http-default-accounts-fingerprints George Chatzisofroniou (Aug 15)
- Re: [NSE] POST path handling in http-default-accounts-fingerprints nnposter (Jul 29)
- Re: [NSE] POST path handling in http-default-accounts-fingerprints George Chatzisofroniou (Jul 29)