Nmap Development mailing list archives
UDP 'bytes=' option with comm.exchange()
From: Brandon Enright <bmenrigh () ucsd edu>
Date: Sun, 27 Jul 2008 21:40:44 +0000
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In testing a script I'm working on fixing/updating I noticed that the the comm.exchange() call in dns-test-open-recursion.nse doesn't behave properly. Right now the line is: local status, result = comm.exchange(host, port, request, {proto="udp"}) When this script is run it appears to hang. A packet capture shows that the DNS server does, indeed, respond. If I add the bytes=1 option to the call the script behaves properly. I propose changing the comm call to: local status, result = comm.exchange(host, port, request, {proto="udp", bytes=1, timeout=10000}) So my question is, can comm.exchange be used with UDP without specifying a byte count? If so, how and under what circumstances? Is this by design? Brandon -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkiM62QACgkQqaGPzAsl94I9cgCfc6PE4Q9WYAN8ZU3UXviuqH+T sIkAoL0+b0C44ITo6LSwdbGYdrh5oRmR =TAIj -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- UDP 'bytes=' option with comm.exchange() Brandon Enright (Jul 27)
- Re: UDP 'bytes=' option with comm.exchange() Kris Katterjohn (Jul 27)
- Re: UDP 'bytes=' option with comm.exchange() Brandon Enright (Jul 27)
- Re: UDP 'bytes=' option with comm.exchange() Kris Katterjohn (Jul 27)
- Re: UDP 'bytes=' option with comm.exchange() Brandon Enright (Jul 27)
- Re: UDP 'bytes=' option with comm.exchange() Kris Katterjohn (Jul 27)