mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
fix posix build, remove dos EOLs
This commit is contained in:
parent
4d145d78a7
commit
e5f695fde7
@ -153,19 +153,19 @@ DWORD request_core_machine_id(Remote* remote, Packet* packet)
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
DWORD request_core_set_uuid(Remote* remote, Packet* packet)
|
||||
{
|
||||
Packet* response = packet_create_response(packet);
|
||||
PBYTE newUuid = packet_get_tlv_value_raw(packet, TLV_TYPE_UUID);
|
||||
|
||||
if (newUuid != NULL) {
|
||||
memcpy(remote->orig_config->session.uuid, newUuid, UUID_SIZE);
|
||||
}
|
||||
|
||||
if (response) {
|
||||
packet_transmit_response(ERROR_SUCCESS, remote, response);
|
||||
}
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
DWORD request_core_set_uuid(Remote* remote, Packet* packet)
|
||||
{
|
||||
Packet* response = packet_create_response(packet);
|
||||
BYTE *newUuid = packet_get_tlv_value_raw(packet, TLV_TYPE_UUID);
|
||||
|
||||
if (newUuid != NULL) {
|
||||
memcpy(remote->orig_config->session.uuid, newUuid, UUID_SIZE);
|
||||
}
|
||||
|
||||
if (response) {
|
||||
packet_transmit_response(ERROR_SUCCESS, remote, response);
|
||||
}
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user