1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00

o The command line in XML output (/nmaprun/@args attribute) now does

quoting of whitespace using double quotes and backslashes. This
  allows recovering the original command line array even when
  arguments contain whitespace. [David]
This commit is contained in:
david
2010-11-14 02:09:58 +00:00
parent 3c2b82100e
commit cec33e3aad
4 changed files with 46 additions and 2 deletions

View File

@@ -190,6 +190,10 @@ void output_ports_to_machine_parseable_output(struct scan_lists *ports,
int tcpscan, int udpscan,
int sctpscan, int protscan);
/* Return a std::string containing all n strings separated by whitespace, and
individually quoted if needed. */
std::string join_quoted(const char * const strings[], unsigned int n);
/* Similar to output_ports_to_machine_parseable_output, this function
outputs the XML version, which is scaninfo records of each scan
requested and the ports which it will scan for */