Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-15-2005, 10:09 AM   #1
Registered: May 2002
Posts: 401

Rep: Reputation: 30
nmap usage


a shorrt question regarding nmap.

I want to scan for example all network for hosts which have telnet open. and I want that nmap will show me just those portsI know that this is something I do with |grep but Im not sure.

can someone help please?


Old 05-15-2005, 11:32 AM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Try something along the lines of nmap -A -T4 10.*.*.* | egrep '(telnet|"Interesting ports"|PORT)' to give you the host it's currently scanning, the column headers and any lines that have "telnet" in them.

However, I'd modify those wildcards...! There are a whole _lot_ of combinations to be had from 3 wildcards, and I've no idea how long the command would actually take as written. If you only use 10.1.*.* on your network, use 10.1.*.* instead
Old 05-17-2005, 04:06 AM   #3
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
If you see man nmap you will notice there is an option to check only for certain ports. It will only show that port and _only_ scan that port That is what you want, and it's faster than the 'grep' thing.
nmap -p 23


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
nmap ? how do i do nmap in linux ? command not found abbasakhtar Linux - Newbie 2 01-02-2011 01:08 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
nmap 3.55 noir911 *BSD 2 08-11-2004 12:36 PM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration