[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/45438: regex error in net/nmap
The following reply was made to PR pkg/45438; it has been noted by GNATS.
From: Alan Barrett <apb%cequrux.com@localhost>
Subject: Re: pkg/45438: regex error in net/nmap
Date: Sat, 19 Nov 2011 10:40:00 +0200
On Fri, 18 Nov 2011, Fredrik Pettai wrote:
> On Oct 13, 2011, at 13:05 , J=0?rn Clausen wrote:
>> The diff is a bit lengthy, so I won't include it here. Just
>> open nmap-service-probes in vi and do
> I don't follow, could you please explain what you mean?
> Example? (For me, nmap -A -T4 scanme.nmap.org didn't differ w/o
> the patch you suggested)
Line 118 of the nmap-service-probes file looks like this:
118 match backdoor m|^220 [Sf.][tu.][nc.][yk.][.F][t.][p.][d.] [0.][w.][n.]
118 [s.] [j.][0.]\r?\n|i p/Generic Kibuv worm/ i/**BACKDOOR**/ o/Windows/
Some regexp implementations are confused by the "[.F][t.]", thinking
that it looks like a "collating symbol" as described in
" A collating symbol is a collating element enclosed within
" bracket-period ( "[." and ".]" ) delimiters.
To avoid this problem, the regexp should be changed to ensure that
"." is never the first character inside square brackets.
This problem appears in several places in the file, not only in
line 118. The vi command given earlier
will find and fix them all.
--apb (Alan Barrett)
Main Index |
Thread Index |