Nmap Development mailing list archives

Re: mac address on external txt file


From: Robin Wood <robin@digi.ninja>
Date: Mon, 07 Mar 2016 15:41:59 +0000

As long as it isn't going to disappear in a near future release then I'm
happy.

I can fully understand why it isn't changing or growing but that is a good
thing for all the tools and one liners that rely on it.

Robin

On Mon, 7 Mar 2016 at 15:38 Daniel Miller <bonsaiviking () gmail com> wrote:

Robin,

It's not going anywhere, it's just not getting new features added. This is
to ensure that all the old scripts and tools that import it will not break.
Fixed, delimited formats like that just aren't naturally extensible. XML,
on the other hand, is easy to add to and Nmap's format even supports
versioning for times when we really break something (like the
osclass/osmatch nesting change back in 6.00).

Dan

On Mon, Mar 7, 2016 at 9:13 AM, Robin Wood <robin@digi.ninja> wrote:

Could I start a campaign to undeprecate it? I use it on every test to
easily pull out lists to feed into other tools.

XML may be useful to feed into tools specifically developed for it but
not for everything else.

Robin

On Mon, 7 Mar 2016 14:55 Daniel Miller, <bonsaiviking () gmail com> wrote:

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/



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

Current thread: