LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-15-2005, 11:09 AM   #1
juanb
Member
 
Registered: May 2002
Posts: 401

Rep: Reputation: 30
nmap usage


Hi,

a shorrt question regarding nmap.

I want to scan for example all 10.0.0.0 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?

thanks

Juan
 
Old 05-15-2005, 12:32 PM   #2
rose_bud4201
Member
 
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, 05:06 AM   #3
ivanatora
Member
 
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 10.0.0.0/24 -p 23
 
  


Reply


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 02:08 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 09: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 05:45 AM
nmap 3.55 noir911 *BSD 2 08-11-2004 01:36 PM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:22 AM.

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