Skip to content

Commit

Permalink
Fall back to MIB method if we can't get netmasks
Browse files Browse the repository at this point in the history
Misses IPv6 addresses, but at least doesn't break everything.

[Fixes #6525]
  • Loading branch information
egypt committed Apr 5, 2012
1 parent a9a3023 commit ccb830b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified data/meterpreter/ext_server_stdapi.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ DWORD get_interfaces_windows(Remote *remote, Packet *response) {
// return IPv6 addresses. Older versions (e.g. NT4, 2k)
// don't have GetAdapterAddresses, so they will have fallen
// through earlier to the MIB implementation.
free(entries);
free(pAdapters);
return get_interfaces_windows_mib(remote, response);
}

if (prefixes[prefixes_cnt]) {
Expand Down

0 comments on commit ccb830b

Please sign in to comment.