O'Reilly logo

Mastering the Nmap Scripting Engine by Paulino Calderón Pale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required