LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2006, 06:35 AM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
nmap


hi there,

i'm trying to get nmap outputting only the information i want (IP address and MAC address)

when i run nmap 192.168.0.0/24 it outputs this

Interesting ports on paulie.mshome.net (192.168.0.136):
(The 1658 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
135/tcp open msrpc
139/tcp open netbios-ssn
445/tcp open microsoft-ds
1025/tcp open NFS-or-IIS
5000/tcp open UPnP
MAC Address: 08:00:46:AC:B2:42 (Sony)

although i've managed to use nmap 192.168.0.0/24 | grep "MAC Address:"

and it now puts out

MAC Address: 08:00:46:AC:B2:42 (Sony)

can anyone tell me either how to use the nmap command to only output what i want, or how to make grep look for 'varA' & 'varB'
 
Old 01-22-2006, 07:13 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
nmap -options | grep -e var1 -e var2

Something like that?

Håkan
 
  


Reply



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
Nmap lgilleran Linux - Newbie 1 07-27-2005 05:50 AM
nmap -O sopiaz57 Linux - Security 3 01-04-2004 09:09 AM
nmap sopiaz57 Linux - Software 2 09-16-2003 08:32 PM
nmap im1crazyassmofo Linux - Security 4 01-14-2003 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:36 PM.

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
Open Source Consulting | Domain Registration