Nmap Development: [NSE] Fix for auth-owners.nse (original) (raw)
Nmap Developmentmailing list archives
From: Richard Sammet <richard.sammet () googlemail com>
Date: Fri, 27 Nov 2009 20:36:19 +0100
Hi Guys,
I noticed that the script auth-owners.nse is not working with some ident daemons. After a few seconds of debugging I identified the problem:
owner = string.match(owner, "USERID : .+ : (.+)\n", 1)
This would only match if the format of the reply exactly matches with all the whitespaces. E.g. (gidentd):
22, 45200 : USERID : UNIX : root
Most of the identd's I tested this script against are replying with (e.g. oidentd, openbsd-identd, ...):
22,45200:USERID:UNIX:root
And in this case the script will not report anything.
I wrote a small patch which fixes that issue and makes it working with every format I've seen so far... (attached)
Greetings, Richard
Attachment:auth-owners.patch
Description:
Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE] Fix for auth-owners.nse Richard Sammet (Nov 29)
- Re: [NSE] Fix for auth-owners.nse Fyodor (Nov 29)
* Re: [NSE] Fix for auth-owners.nse Richard Sammet (Nov 29)
- Re: [NSE] Fix for auth-owners.nse Fyodor (Nov 29)