Nmap Development mailing list archives
Re: Scan until open port is found
From: Diman Todorov <diman.todorov () chello at>
Date: Sat, 11 Nov 2006 12:45:25 +0100
On 10.11.2006, at 10:54, Hans Nilsson wrote:
Hello! Is there any way to just scan until one open port is found and then stop?
Yes there is a way: sudo nmap -sP -PS22,80,113 hostname This will send SYN packets to all three ports and will stop if any of the ports replies with a SYN/ACK. Alternatively you can use -PA which will do a three way handshake. If you want to know which port was open you need to use --packet-trace (at least until the --reason project is incorporated into the nmap core) cheers Diman _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Scan until open port is found Hans Nilsson (Nov 10)
- Re: Scan until open port is found Diman Todorov (Nov 11)
- Re: Scan until open port is found Hans Nilsson (Nov 11)
- Re: Scan until open port is found Hans Nilsson (Nov 11)
- Re: Scan until open port is found Hans Nilsson (Nov 11)
- Re: Scan until open port is found Diman Todorov (Nov 11)