On 31 Mar 2009, at 11:50, Daniel Pielmeier wrote:
2009/3/31 Stroller <[email protected]>:

I tried copying nmap-4.76.ebuild (the latest in the Portage tree) to /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and added the
MY_P="${P/_beta/BETA}" line from
http://bugs.gentoo.org/attachment.cgi?id=8748&action=view but I still get
"File nmap-4.85_beta5.tar.bz2 doesn't exist" when I try to create a
manifest. I also tried using MY_P="${P/_beta/BETA/}" in case it needed
that
extra slash, but no joy.

...

Yes you need to adapt SRC_URI and you probably also need to set S to
the correct location.

MY_P="${P/_beta/BETA}"
SRC_URI="http://www.insecure.org/nmap/dist/${MY_P}.tar.bz2";
S=${WORKDIR}/${MY_P}

Many thanks!!

And to Xav & Alan, also - they got me started & I was just in the middle of writing to whine for more help when I got your answer with just the additional info I needed. Working ebuild attached.

I meant to add some additional info in my original posting, as it may be useful for someone else to have a scan for this risk.

Nmap mailing list post about this:
http://seclists.org/nmap-dev/2009/q1/0869.html

This command performs the scan:
nmap -PN -T4 -p139,445 -n -v --script=smb-check-vulns --script-args safe=1 192.168.0.0/16

(last argument is target subnet - change as required)

You need to have the lua USE flag enabled when you emerge nmap.

Stroller.

Attachment: nmap-4.85_beta5.ebuild
Description: Binary data


Reply via email to