1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-14 09:26:35 +00:00

o Added a mac_addr_next_hop member to the host tables used in NSE.

[Michael Pattrick, kx].
This commit is contained in:
david
2010-02-13 01:48:59 +00:00
parent 003cc98eab
commit 3a11dafeaa
3 changed files with 17 additions and 0 deletions

View File

@@ -2,6 +2,9 @@
[NOT YET RELEASED]
o Added a mac_addr_next_hop member to the host tables used in NSE.
[Michael Pattrick, kx].
o Removed the nmap_service.exe helper program for smb-psexec, as it
was still being flagged by malware detection even after the
bit-flipping in the next release. You can now download it from

View File

@@ -1323,6 +1323,16 @@ LUALIB_API int luaopen_openssl(lua_State *L) {
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>host.mac_addr_next_hop</option>
</term>
<listitem>
<para>MAC address<indexterm><primary>MAC address</primary></indexterm>
of the first hop in the route to the host, or
<literal>nil</literal> if not available.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>host.mac_addr_src</option>
</term>

View File

@@ -162,6 +162,10 @@ void set_hostinfo(lua_State *L, Target *currenths) {
lua_pushlstring (L, (const char*)currenths->MACAddress() , 6);
lua_setfield(L, -2, "mac_addr");
}
if(currenths->NextHopMACAddress()){ // else nil
lua_pushlstring (L, (const char*)currenths->NextHopMACAddress() , 6);
lua_setfield(L, -2, "mac_addr_next_hop");
}
if(currenths->SrcMACAddress()){ // else nil
lua_pushlstring(L, (const char*)currenths->SrcMACAddress(), 6);
lua_setfield(L, -2, "mac_addr_src");