Nmap Development mailing list archives

Re: mac address on external txt file


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 7 Mar 2016 08:55:17 -0600

Matteo,

Grepable output (-oG) is a deprecated format [1]. It's stable and useful
for some things, but it can't be extended to new features. One feature that
is missing is MAC address output. If you need a machine-readable format
that will always contain output from all of Nmap's features, use the XML
output format [2]. The MAC address is output as the
//host/address[@addrtype="mac"] element.

Dan

[1] https://nmap.org/book/output-formats-grepable-output.html
[2] https://nmap.org/book/output-formats-xml-output.html

On Mon, Feb 22, 2016 at 9:24 AM, Matteo De Rosa <matteo.derosa () enea it>
wrote:

if my mac osx is in 192.168.18.0/24 net and I run on terminal :

nmap -O -F -sS 192.168.15.254

I obtain also *host mac address*.

If I run the same command but direct output to txt file:

nmap -O -F -sS -oG pippo.txt 192.168.15.254

I lose this information.

Is this a bug ?


*Matteo De Rosa*
…………………………………………………………………………………………………………………………………………………..
Dott. Matteo DE ROSA
Informatico

Laboratorio Infrastrutture e Servizi di Rete

ENEA - Centro Ricerche Portici
P. Le Enrico Fermi, 1 - 80055 Portici (Napoli) - ITALIA
matteo.derosa () enea it -  http://www.portici.enea.it
…………………………………………………………………………………………………………………………………………………...





_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: