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:
parent
4913a7f783
commit
bdd2885571
@ -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;
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user