1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Use a proper TLV type instead of a generic one

This commit is contained in:
James Lee 2012-03-19 15:26:00 -06:00
parent 1836d915cb
commit 024e99167a
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ request_core_loadlib(Remote *remote, Packet *packet)
}
if (response) {
for (command = extension_commands; command != first; command = command->next) {
packet_add_tlv_string(response, TLV_META_TYPE_STRING, command->method);
packet_add_tlv_string(response, TLV_TYPE_METHOD, command->method);
}
}
}

View File

@ -131,7 +131,7 @@ DWORD request_core_loadlib(Remote *remote, Packet *packet)
dprintf("[SERVER] Called init()...");
if (response) {
for (command = extension_commands; command != first; command = command->next) {
packet_add_tlv_string(response, TLV_META_TYPE_STRING, command->method);
packet_add_tlv_string(response, TLV_TYPE_METHOD, command->method);
}
}
}

View File

@ -115,7 +115,7 @@ class ClientCore < Extension
response = self.client.send_packet_wait_response(request, self.client.response_timeout)
commands = []
response.each(TLV_META_TYPE_STRING) { |c|
response.each(TLV_TYPE_METHOD) { |c|
commands << c.value
}