Nmap Development mailing list archives

Automatic protocol selection?


From: Roy Sigurd Karlsbakk <roy () karlsbakk net>
Date: Sat, 6 Jul 2024 22:50:44 +0200

Hi all

Sometimes I use nmap in my scripts and since I'm in a mixed environment, where most of the hosts are dual protocol, not 
all are, and some are only on IPv4 or IPv6, depending on the type of equipment and their function. Most other software, 
will just default to a single protocol, typically IPv6, and then fall back to the other if the first fails. At first I 
thought using the -6 flag would do so (as it says 'Enable IPv6 scanning' in the manual), but this effectively also 
turns off IPv4, so we're back to manually choosing the protocol.

Automatic protocol selection would be a very nice addition to nmap, since often, the services you probe, will be 
available on both anyway and if you want to probe specifically on one of them, that really shouldn't be a problem 
either, given you keep today's possibilities open.

And yes, I know this is scriptable, like everything else, but it doesn't make much sense to leave to every sysadmin out 
there the responsibility to script this every time nmap is needed in such an environment,

What do you think?

roy
--
Roy Sigurd Karlsbakk
roy () karlsbakk net
+47 9801 3356
--
I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er et elementært imperativ for alle 
pedagoger å unngå eksessiv anvendelse av idiomer med xenotyp etymologi. I de fleste tilfeller eksisterer adekvate og 
relevante synonymer på norsk.
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at https://seclists.org/nmap-dev/

Current thread: