Advertisement
makispaiktis

Lua 3 - Finger Scan

Nov 9th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | Cybersecurity | 0 0
  1. -- HEAD
  2. local comm = require "comm"
  3. local shortport = require "shortport"
  4. description = [[
  5.     Finger Scan Script
  6. ]]
  7. author = "boufik"
  8. license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
  9. categories = {"safe"}
  10.  
  11.  
  12. -- RULES
  13. portrule = shortport.port_or_service(79, "finger")
  14.  
  15.  
  16. -- ACTION
  17. action = function(host, port)
  18.     local try = nmap.new_try()
  19.     return try(comm.exchange(host, port, "\r\n",
  20.     {lines=100, proto=port.protocol, timeout=5000}))
  21. end
  22.  
  23.  
  24. -- Bash Run: nmap --script my-script-name localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement