Nmap Development mailing list archives
Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug?
From: Patrick Donnelly <batrick () batbytes com>
Date: Mon, 14 Sep 2009 10:45:23 -0400
Hi Ron, On Mon, Sep 14, 2009 at 10:32 AM, Ron <ron () skullsecurity net> wrote:
You are correct, it's returning 'nil'. The NSEDoc doesn't say anything about returning nil, though, it only says the call returns 'true' or 'false'.[1] All my scripts explicitly check for a 'false' return value. If it's going to stay like this, I suggest updating NSEDoc. Ron [1] http://nmap.org/nsedoc/lib/nmap.html#connect
At some point the decision was made to use true/false as a return value for most of the socket functions. This value is generally redundant. Typically Lua functions will return nil, error_message for recoverable errors and the expected values otherwise (which gave rise to the assert function). I believe if we make any change we should move away from these useless boolean values. Alas compatibility is a concern here. -- -Patrick Donnelly "Let all men know thee, but no man know thee thoroughly: Men freely ford that see the shallows." - Benjamin Franklin _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Fyodor (Sep 09)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Fyodor (Sep 10)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Ron (Sep 10)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Trancer (Sep 10)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Rob Nicholls (Sep 10)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Ron (Sep 10)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? David Fifield (Sep 13)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Ron (Sep 14)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Patrick Donnelly (Sep 14)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Ron (Sep 14)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? David Fifield (Sep 14)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? Ron (Sep 14)
- Re: NSE Script to exploit the Windows Vista and 7 SMB 2.0 remote BSOD bug? David Fifield (Sep 13)
