Nmap Development mailing list archives

Re: Setting MSS via NSE


From: Daniel Miller <bonsaiviking () gmail com>
Date: Tue, 10 Jan 2017 13:10:31 -0600

David,

Thanks for asking. There's not currently a way to do this. The packet.lua
library has only the functions that have been necessary to accomplish the
scripts that are currently written. Most of those uses are for packet
sniffing and parsing, so it is short on packet generation. TCP especially
is lacking, because there are lots of nuances involved in a
fully-functional TCP stack that would be tricky to work out, and NSE has
robust socket-based TCP connection handling already.

We would welcome any patch that you have to enhance our current capability.
Also be aware that we have a long-standing to-do item in our "GSoC
Community Ideas" wiki page [1] to convert the entire packet.lua library to
a binding to Nmap's own netutil packet generation and parsing libraries.

Dan

[1]
https://secwiki.org/w/GSoC_community_ideas#Moving_packet.lua_from_lua_to_C.2B.2B

On Tue, Jan 10, 2017 at 3:21 AM, David Muscut <davidmuscut () gmail com> wrote:

Can someone point me to an example of how to set the Maximum Segment Size
via packet:ip_set_options in the NSE packet library?

thanks,

- D

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

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

Current thread: