Nmap Development mailing list archives

Re: [NSE] Dependencies not working


From: Ron <ron () skullsecurity net>
Date: Sun, 12 Dec 2010 21:58:47 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 12 Dec 2010 19:43:12 -0800 David Fifield <david () bamsoftware com> wrote:
On Sun, Dec 12, 2010 at 09:17:26PM -0600, Ron wrote:
Hey,

In the current HEAD version (and I'm not sure how far back), it
looks like script dependencies aren't working. Scripts are put in
the right order, and it goes through the runlevels in the right
order, but the runlevels end and the new ones start before the
scripts have a chance to finish. 

Here's an example:

==
$ ./nmap -p445 -d -n --script=smb-brute,smb-enum-users 192.168.1.104

Starting Nmap 5.36TEST2 ( http://nmap.org ) at 2010-12-12 21:15 CST
[...]
NSE: Starting runlevel 1 (of 2) scan.
NSE: Script scanning 192.168.1.104.
NSE: Starting smb-brute against 192.168.1.104.
NSE: Starting runlevel 2 (of 2) scan.
NSE: Script scanning 192.168.1.104.
NSE: Starting smb-enum-users against 192.168.1.104.
==

So basically, it runs smb-enum-users.nse without waiting for
smb-brute.nse to finish. I've replicated this with other scripts,
as well. 

Any idea what's happening?

Can you try r21083 and r21146? That's before and after the recent
CONCURRENCY_LIMIT change that also affected runlevels.
Sure, no problem. 

r21146 is broken (same as HEAD). 

r21083 works properly. 

Ron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAk0FmfcACgkQ2t2zxlt4g/SuAgCeMSmcSqxtin3qUHeYnzbITZek
b5sAn3Hjrt4w2mjQOWqvBOkEDAOSViNd
=bgpQ
-----END PGP SIGNATURE-----
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: