Nmap Development mailing list archives

nmap socket bind to the udp port


From: idtjoe1 <josephriz () gmail com>
Date: Thu, 8 Mar 2012 11:49:40 -0800 (PST)


how to get the local hosts's (ie the host where nmap is running) UDP port
from a NSE
when nmap.new_socket() is run
that is we run from our script:
local socket = nmap.new_socket()
socket:set_timeout(5000)
status, result = socket:connect(host.ip, port.number, port.protocol)
now we want to know what is the local UDP port
the api had no mention of how to procure the local port
or reverse, how can we have the nmap socket bind to the udp port of our
choice?
the other question is what are all the methods related to the socket object?

-- 
View this message in context: http://old.nabble.com/nmap-socket-bind-to-the-udp-port-tp33467447p33467447.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: