Summary
In this chapter, you learned all about performing connection-oriented and advanced network I/O operations with NSE sockets. Raw packet manipulation can be complex but, as we have seen, it is very straightforward in NSE. By now, you should be able to write scripts that communicate with other hosts with the help of the Nmap API and the bin and packet NSE libraries. Try writing a script that communicates with an unsupported protocol to put in practice the topics covered here.
Next, you will learn about parallelism in Lua and NSE to achieve collaborative multitasking. The objective of the following chapter will be to give you the tools needed to control the execution flow of worker threads inside your NSE scripts, but don't start thinking about ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access