Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- HEAD
- local comm = require "comm"
- local shortport = require "shortport"
- description = [[
- Finger Scan Script
- ]]
- author = "boufik"
- license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
- categories = {"safe"}
- -- RULES
- portrule = shortport.port_or_service(79, "finger")
- -- ACTION
- action = function(host, port)
- local try = nmap.new_try()
- return try(comm.exchange(host, port, "\r\n",
- {lines=100, proto=port.protocol, timeout=5000}))
- end
- -- Bash Run: nmap --script my-script-name localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement