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

support for RevertToSelf

git-svn-id: file:///home/svn/incoming/trunk@3207 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Miller 2005-12-13 03:57:20 +00:00
parent 1e18e03f3b
commit c7bdb21359
4 changed files with 19 additions and 0 deletions

View File

@ -215,6 +215,10 @@ Command customCommands[] =
{ request_sys_config_sysinfo, { 0 }, 0 },
{ EMPTY_DISPATCH_HANDLER },
},
{ "stdapi_sys_config_rev2self",
{ request_sys_config_rev2self, { 0 }, 0 },
{ EMPTY_DISPATCH_HANDLER },
},
// Net
{ "stdapi_net_config_get_routes",

View File

@ -110,3 +110,17 @@ DWORD request_sys_config_sysinfo(Remote *remote, Packet *packet)
return res;
}
/*
* sys_config_rev2self
*
* Calls RevertToSelf()
*/
DWORD request_sys_config_rev2self(Remote *remote, Packet *packet)
{
RevertToSelf();
packet_transmit_empty_response(remote, packet, GetLastError());
return ERROR_SUCCESS;
}

View File

@ -3,5 +3,6 @@
DWORD request_sys_config_getuid(Remote *remote, Packet *packet);
DWORD request_sys_config_sysinfo(Remote *remote, Packet *packet);
DWORD request_sys_config_rev2self(Remote *remote, Packet *packet);
#endif