Пытаюсь насканить машины с rdp в нужном диапазоне ip:
Скрипт такой:
description = [[ RDP Servers seachtool ]]
author = "Group"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"discovery"}
require "shortport"
portrule = shortport.port_or_service(3389,"ms-term-serv")
action = function(host, port)
file = io.open ("/root/ip_with_rdp.txt","a+")
file:write(host.ip.."\n")
file:flash()
file:close()
end
nohup nmap -iL /root/ip -n -PS3389 --script=/root/rpdlist.nse
Ошибок не выдает, в ip_with_rdp.txt пусто.