Nmap Development mailing list archives

Re: Initmatch error with 5.51


From: Daniel Miller <bonsaiviking () gmail com>
Date: Wed, 24 Aug 2011 10:23:51 -0500

The problem is with "[." followed by ".]", which denotes POSIX collating symbols (http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html). I'm not sure why this hasn't come up before, but since the order of elements inside [] brackets should not matter, I used this substitution in vim:

:%s/\[\.\([^]]*\)/[\1./g

...to swap the period to the right side of the bracketed expression, which should eliminate this confusion. Turned out to be about 50 match lines that changed, though that line (Generic kubiv worm) seems to be the only one that could cause this error. Patches for 5.51 and svn attached.

Dan

On 08/23/2011 11:53 PM, John Hutchison wrote:
Hello,

Whilst playing with Nmap I tried to scan my computer using the -A
switch to which I received this error:

$ nmap -v -A localhost

Starting Nmap 5.51 ( http://nmap.org ) at 2011-08-23 23:48 CDT
NSE: Loaded 57 scripts for scanning.
Initiating Ping Scan at 23:48:%s/\[\.\([^]]*\)/[\1./g

Scanning localhost (127.0.0.1) [2 ports]
Completed Ping Scan at 23:48, 0.00s elapsed (1 total hosts)
Initiating Connect Scan at 23:48
Scanning localhost (127.0.0.1) [1000 ports]
Discovered open port 25/tcp on 127.0.0.1
Discovered open port 8010/tcp on 127.0.0.1
Completed Connect Scan at 23:48, 0.06s elapsed (1000 total ports)
InitMatch: illegal regexp on line 118 of nmap-service-probes (at
regexp offset 25): POSIX collating elements are not supported

QUITTING!

I thought the problem was from my distro (ArchLinux), and downloaded a
copy of the stable release, decompress it and did a diff of the two
files (/usr/share/nmap/nmap-service-probes
~/nmap-5.51/nmap-service-probes) and I received no output, assuming
that means they are the same. I even tried to move the file and backup
Arch's version but I get the same error.

Just thought I would give you a heads-up, I tried googling but nothing
came up so I have come to you guys. I wish I knew what was going on to
at *least* give you a patch.

--
Heimdal
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Attachment: collating5.51.patch
Description:

Attachment: collatingsvn.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: