Book Image

Mastering the Nmap Scripting Engine

By : Paulino Calderon
Book Image

Mastering the Nmap Scripting Engine

By: Paulino Calderon

Overview of this book

Table of Contents (23 chapters)
Mastering the Nmap Scripting Engine
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Scan Phases
Script Categories
Nmap Options Mind Map
References
Index

Appendix B. NSE Script Template

This appendix includes an NSE script template that contains the required script fields scripts and the default licensing values:

description = [[
]]

---
-- @usage
-- 
-- @output
--
-- @args
--
---

author = ""
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {}

--portrule = 

action = function(host, port)

end

This template is available online in my GitHub repository, at https://github.com/cldrn/nmap-nse-scripts/blob/master/nse-script-template.nse.