Save this Script as name "blah.bat"
Code:
@echo off
for /l %%%x in (1,1,2) do (
start "rdp" /HIGH nmap -n -Pn -p T:3389 -T5 --script rdp.nse -iR 0
)
exit
Save this Script as name "rdp.nse"
Code:
description=[[
Checks if an RDP port is open.
]]
author = "ROleg"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"default", "discovery", "external", "intrusive"}
require "shortport"
portrule = shortport.portnumber(3389, "tcp", "open")
action = function(host, port)
file = io.open ("results.txt","a+")
file:write (host.ip.."\n")
file:flush()
file:close()
end
save both script in one folder. install nmap (you can find on google) after installation of namp run "blah.bat" script
your all ip saved in "result.txt" file
Enjoy
M@d___Sql1