mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
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:
parent
c22505bf5a
commit
61b976a45c
9 changed files with 63 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue