Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)
Date: Tue, 31 Mar 2009 12:44:57
Message-Id: 7BD5150B-EE84-4A0C-8772-3F0449E3E6E6@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning) by Daniel Pielmeier
1 On 31 Mar 2009, at 11:50, Daniel Pielmeier wrote:
2 >>> 2009/3/31 Stroller <stroller@××××××××××××××××××.uk>:
3 >>>>
4 >>>> I tried copying nmap-4.76.ebuild (the latest in the Portage tree)
5 >>>> to
6 >>>> /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and
7 >>>> added the
8 >>>> MY_P="${P/_beta/BETA}" line from
9 >>>> http://bugs.gentoo.org/attachment.cgi?id=8748&action=view but I
10 >>>> still get
11 >>>> "File nmap-4.85_beta5.tar.bz2 doesn't exist" when I try to create a
12 >>>> manifest. I also tried using MY_P="${P/_beta/BETA/}" in case it
13 >>>> needed
14 >>>> that
15 >>>> extra slash, but no joy.
16 >>>
17 >>> ...
18 >
19 > Yes you need to adapt SRC_URI and you probably also need to set S to
20 > the correct location.
21 >
22 > MY_P="${P/_beta/BETA}"
23 > SRC_URI="http://www.insecure.org/nmap/dist/${MY_P}.tar.bz2"
24 > S=${WORKDIR}/${MY_P}
25
26 Many thanks!!
27
28 And to Xav & Alan, also - they got me started & I was just in the
29 middle of writing to whine for more help when I got your answer with
30 just the additional info I needed. Working ebuild attached.
31
32 I meant to add some additional info in my original posting, as it may
33 be useful for someone else to have a scan for this risk.
34
35 Nmap mailing list post about this:
36 http://seclists.org/nmap-dev/2009/q1/0869.html
37
38 This command performs the scan:
39 nmap -PN -T4 -p139,445 -n -v --script=smb-check-vulns --script-args
40 safe=1 192.168.0.0/16
41
42 (last argument is target subnet - change as required)
43
44 You need to have the lua USE flag enabled when you emerge nmap.
45
46 Stroller.

Attachments

File name MIME type
nmap-4.85_beta5.ebuild application/octet-stream

Replies

Subject Author
Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning) Mick <michaelkintzios@×××××.com>