mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 04:09:01 +00:00
I made every script follow a standard form: it starts with the id, followed by the description. The description is contained in [[ ]] delimiters. The description is in the global description variable, not in a LuaDoc comment. Other LuaDoc information such as @args and @usage follows the description in a comment. The first paragraph of each description is a a short summary of what the script does. More detailed information, if any, is given in following paragraphs. I also improved some wording and formatting in a few cases.
22 lines
498 B
Lua
22 lines
498 B
Lua
id = "Finger Results"
|
|
description = [[
|
|
Attempts to get a list of usernames via the finger service.
|
|
]]
|
|
|
|
author = "Eddie Bell <ejlbell@gmail.com>"
|
|
|
|
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
|
|
|
categories = {"default", "discovery"}
|
|
|
|
require "comm"
|
|
require "shortport"
|
|
|
|
portrule = shortport.port_or_service(79, "finger")
|
|
|
|
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
|