Nmap Development mailing list archives

[NSE] Problem with receive_lines ?


From: Patrik Karlsson <patrik () cqure net>
Date: Fri, 15 Jul 2011 21:48:25 +0200

Hi,

I'm working on a smtp-brute script and while testing it, I've run into a problem.
Once in a while when the scripts has finished guessing passwords and the brute library is waiting for the worker 
threads to finish the script "hangs".
As far as I can tell it looks as if one of the worker thread is stuck within the login function of the driver.
Based on this Nmap stack traceback it seems to be "stuck" in receive_lines, which is used by the smtp query function.
At the same time this happens Nmap spikes my cpu at 100% until killed with ctrl + c.
This happens some times, but not every time. Any ideas?

Here's the stack traceback:

NSE: Waiting: 'smtp-brute' worker (thread: 0x101048540)
        stack traceback:
                [C]: in function 'receive_lines'
                ...Users/patrik/hacktools/rd/nmap-dev/./nselib/smtp.lua:263: in function 'query'
                ...Users/patrik/hacktools/rd/nmap-dev/./nselib/smtp.lua:638: in function 'login'
                ...atrik/hacktools/rd/nmap-dev/./scripts/smtp-brute.nse:140: in function 'login'
                ...sers/patrik/hacktools/rd/nmap-dev/./nselib/brute.lua:492: in function 'doAuthenticate'
                ...sers/patrik/hacktools/rd/nmap-dev/./nselib/brute.lua:526: in function 'main'
                /Users/patrik/hacktools/rd/nmap-dev/./nse_main.lua:707: in function 
</Users/patrik/hacktools/rd/nmap-dev/./nse_main.lua:707>
NSE: Waiting: 'smtp-brute' (thread: 0x101024d60)
        stack traceback:
                [C]: in function 'condvar'
                ...sers/patrik/hacktools/rd/nmap-dev/./nselib/brute.lua:651: in function 'start'
                ...atrik/hacktools/rd/nmap-dev/./scripts/smtp-brute.nse:190: in function 
<...atrik/hacktools/rd/nmap-dev/./scripts/smtp-brute.nse:166>
                (tail call): ?

//Patrik
--
Patrik Karlsson
http://www.cqure.net
http://www.twitter.com/nevdull77

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: