Nmap Development mailing list archives

Re: nmap socket bind to the udp port


From: idtjoe1 <josephriz () gmail com>
Date: Wed, 14 Mar 2012 09:55:20 -0700 (PDT)


Hello Sai,

Can you tell us the usage of stdnse.make_buffer() function vs
socket:receive_lines(1). When to use one vs another? Is function 
stdnse.make_buffer  documented anywhere?

Your help is appreciated.


SAI LAKSHMI Bhavana wrote:

In connect() call the port number we use is the port on the remote
host we want to connect to its not local port.

socket:bind()
can be used to bind the socket to the port of your choice.

some of the methods of socket object can be found in the nmap.luadoc
of nselib in the compiled code.
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


-- 
View this message in context: http://old.nabble.com/nmap-socket-bind-to-the-udp-port-tp33467447p33503640.html
Sent from the Nmap - Dev mailing list archive at Nabble.com.

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


Current thread: