Nmap Development mailing list archives
Re: Scan for devices with port 80 open but port 22 closed
From: Petr Lázňovský <lazna () volny cz>
Date: Tue, 4 Mar 2014 15:05:17 +0100
Windows shell rulezzzzzzzzzz ;-) @echo off & (for /f "skip=2 tokens=2,4,5 delims=, " %a in ('nmap -p80^,22 -oG - 192.168.0.0/24') do echo %b | findstr "22/closed" >NUL && echo %a) & @echo on L. BTW: But thanks for your time and effort
no prob Petr.
Cannot use Cygwin ?
2014-03-04 14:04 GMT+01:00 Petr Lázňovský <lazna () volny cz>:
thank you Paul, that is what I want to know.
I am on Windows so I will script in Windows shell...
L.
Dobry den Petr !
Regarding your question, what about some Bash or even Python script ? I didn't find any option allowing you to specify open and closed port
2014-03-04 13:49 GMT+01:00 Petr Lázňovský <lazna () volny cz>:
Did you read my subject carefully? I want to scan subnet for deviceswithport 80 open, BUT PORT 22 CLOSED. Both conditions active simultaneously.
L.
BTW: Maybe my lack of english...
04.03.2014 13:32, Petr Lázňovský:Nmap seems does not support multiple -p parameter.
You want nmap -p 80,22 target. http://nmap.org/book/man-port-specification.html
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Scan for devices with port 80 open but port 22 closed Petr Lázňovský (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Jacek Wielemborek (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Petr Lázňovský (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Paul AMAR (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Paul AMAR (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Petr Lázňovský (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Paul AMAR (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Petr Lázňovský (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Petr Lázňovský (Mar 04)
- Re: Scan for devices with port 80 open but port 22 closed Jacek Wielemborek (Mar 04)