Advertisement
makispaiktis

Lua 4 - HTTP script and execute multiple scripts at once

Nov 9th, 2024 (edited)
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | Cybersecurity | 0 0
  1. -- HEAD
  2. local shortport = require "shortport"
  3. description = [[
  4.     A simple script
  5. ]]
  6. author = "boufik"
  7. license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
  8. categories = {"safe"}
  9.  
  10.  
  11. -- RULES
  12. portrule = shortport.port_or_service(80, "http")
  13.  
  14.  
  15. -- ACTION
  16. action = function(host, port)
  17.     return "This message is shown, because my script identified an " .. port.state .. " port (" .. port.number .. ") running " .. port.version.name
  18. end
  19.  
  20. -- Bash Run: 6 comma-separated scripts without spacebar!
  21. -- nmap --script http-title,http-enum,http-csrf,ssh-hostkey,ssh-auth-methods,my-script-name scanme.nmap.org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement