o Nmap now saves the target name (if any) specified on the command

line, since this can differ from the reverse DNS results.  It can be
  particularly important when doing HTTP tests against virtual hosts.
  The data can be accessed from target->HostName() from Nmap proper
  and host.targetname from NSE scripts.  The NSE HTTP library now uses
  this for the Host header.  Thanks to Sven Klemm for adding this
  useful feature.
This commit is contained in:
fyodor 2008-02-04 22:10:29 +00:00
parent c22505bf5a
commit 61b976a45c
9 changed files with 63 additions and 3 deletions

View file

@ -168,7 +168,7 @@ int TargetGroup::parse_expr(const char * const target_expr, int af) {
char *hostexp = strdup(target_expr);
struct hostent *target;
unsigned long longtmp;
int namedhost = 0;
namedhost = 0;
if (targets_type != TYPE_NONE)
Initialize();