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:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user