1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00

remove TLV_TYPE_TOKEN_UPDATE_RESULT and unnecessary code

This commit is contained in:
saim1z 2023-05-24 16:18:43 +02:00
parent 4913a7f783
commit bdd2885571
2 changed files with 1 additions and 4 deletions

View File

@ -285,7 +285,6 @@ DWORD request_sys_config_update_token(Remote* pRemote, Packet* pPacket)
Packet* pResponse = met_api->packet.create_response(pPacket);
DWORD dwResult = ERROR_SUCCESS;
HANDLE hToken = NULL;
HANDLE hDupToken = NULL;
// Get token handle from the client
hToken = (HANDLE)met_api->packet.get_tlv_value_qword(pPacket, TLV_TYPE_HANDLE);
@ -302,8 +301,7 @@ DWORD request_sys_config_update_token(Remote* pRemote, Packet* pPacket)
// Store the token handle for future tasks
met_api->thread.update_token(pRemote, hToken);
// Transmit the response
met_api->packet.add_tlv_string(pResponse, TLV_TYPE_TOKEN_UPDATE_RESULT, "Token updated and impersonated succesfully.");
// Empty response means success
met_api->packet.transmit_response(dwResult, pRemote, pResponse);
return dwResult;

View File

@ -120,7 +120,6 @@
#define TLV_TYPE_DOMAIN MAKE_CUSTOM_TLV( TLV_META_TYPE_STRING, TLV_TYPE_EXTENSION_STDAPI, 1046 )
#define TLV_TYPE_LOGGED_ON_USER_COUNT MAKE_CUSTOM_TLV( TLV_META_TYPE_UINT, TLV_TYPE_EXTENSION_STDAPI, 1047 )
#define TLV_TYPE_LOCAL_DATETIME MAKE_CUSTOM_TLV( TLV_META_TYPE_STRING, TLV_TYPE_EXTENSION_STDAPI, 1048 )
#define TLV_TYPE_TOKEN_UPDATE_RESULT MAKE_CUSTOM_TLV( TLV_META_TYPE_STRING, TLV_TYPE_EXTENSION_STDAPI, 1050 )
// Environment stuff
#define TLV_TYPE_ENV_VARIABLE MAKE_CUSTOM_TLV( TLV_META_TYPE_STRING, TLV_TYPE_EXTENSION_STDAPI, 1100 )