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:
4
output.h
4
output.h
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user