Home page logo
/

nmap-dev logo Nmap Development mailing list archives

[NSE] Fix for auth-owners.nse
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/

  By Date           By Thread  

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