1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-23 14:49:02 +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:
fyodor
2008-02-04 22:10:29 +00:00
parent c22505bf5a
commit 61b976a45c
9 changed files with 63 additions and 3 deletions

View File

@@ -1526,6 +1526,16 @@ if(s) code_to_be_done_on_match end
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>host.targetname</option>
<indexterm><primary>host.targetname</primary></indexterm></term>
<listitem>
<para>Contains the name of the host as specified on the commandline.
If the target given on the commandline contains a netmask or is an IP
address the value of the field is <literal>nil</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>host.directly_connected</option>
<indexterm><primary>host.directly_connected</primary></indexterm></term>