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:
parent
1e18e03f3b
commit
c7bdb21359
Binary file not shown.
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user