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. |