Skip to content

Instantly share code, notes, and snippets.

@mad
Created January 27, 2012 22:46
Show Gist options
  • Save mad/1691372 to your computer and use it in GitHub Desktop.
Save mad/1691372 to your computer and use it in GitHub Desktop.
NSE skeleton for emacs yassnippet
# -*- mode: snippet -*-
# name: nse
# --
description = [[
$0
]]
---
-- @usage
-- nmap --script <this script> <ip>
--
-- @output
--
--
author = ""
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = { }
--
-- Version 0.1
--
-- Created `(time-stamp-string "%:y/%02m/%02d")` - v0.1 - created by `(concat user-full-name " " "<" user-mail-address ">")`
--
function action(host, port)
return stdnse.format_output(true, { "What?" })
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment