nmap
nmap copied to clipboard
Idea: support multiple input files with -iL
Currently, Nmap only supports reading target specs from one file OR from the command-line. We should be able to support multiple files AND command-line specs at the same time. Some potential implementation ideas:
-
-iLoption processing changes to not open the file immediately, but to put it into a list or vector of filenames, potentially after astat()check for readability. -
grab_next_host_specchanges to iterate over both the list of command-line expressions as well as the list of filenames from the -iL options, opening each in turn and yielding expressions from those with the existingread_host_from_filefunction.