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:
parent
1836d915cb
commit
024e99167a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user