home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Networking / nmap-5.00-setup.exe / scripts / auth-spoof.nse < prev    next >
Text File  |  2009-07-06  |  705b  |  31 lines

  1. description = [[
  2. Checks for an identd (auth) server which is spoofing its replies.
  3.  
  4. Tests whether an identd (auth) server responds with an answer before
  5. we even send the query.  This sort of identd spoofing can be a sign of
  6. malware infection though it can also be used for legitimate privacy
  7. reasons.
  8. ]]
  9.  
  10. author = "Diman Todorov <diman.todorov@gmail.com>"
  11.  
  12. license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
  13.  
  14. categories = {"malware"}
  15.  
  16. require "comm"
  17. require "shortport"
  18.  
  19. portrule = shortport.port_or_service(113, "auth")
  20.  
  21. action = function(host, port)
  22.     local status, owner = comm.get_banner(host, port, {lines=1})
  23.  
  24.     if not status then
  25.         return
  26.     end
  27.  
  28.     return "Spoofed reply: " .. owner
  29. end
  30.  
  31.