mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-04-06 01:16:37 +02:00
Remove last of the warnings/errors after merging
This commit is contained in:
parent
1c09ac08d5
commit
70d958b729
c/meterpreter/source
extensions
espia
incognito
lanattacks
mimikatz
sniffer
stdapi/server
server
@ -33,8 +33,6 @@ Command customCommands[] =
|
|||||||
*/
|
*/
|
||||||
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
hMetSrv = remote->hMetSrv;
|
hMetSrv = remote->hMetSrv;
|
||||||
|
|
||||||
command_register_all( customCommands );
|
command_register_all( customCommands );
|
||||||
|
@ -195,8 +195,6 @@ Command customCommands[] =
|
|||||||
*/
|
*/
|
||||||
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
hMetSrv = remote->hMetSrv;
|
hMetSrv = remote->hMetSrv;
|
||||||
|
|
||||||
command_register_all( customCommands );
|
command_register_all( customCommands );
|
||||||
|
@ -157,9 +157,7 @@ Command customCommands[] =
|
|||||||
/*
|
/*
|
||||||
* Initialize the server extension
|
* Initialize the server extension
|
||||||
*/
|
*/
|
||||||
DWORD __declspec(dllexport) InitServerExtension(Remote *remote){
|
DWORD __declspec(dllexport) InitServerExtension(Remote *remote) {
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
hMetSrv = remote->hMetSrv;
|
hMetSrv = remote->hMetSrv;
|
||||||
|
|
||||||
command_register_all( customCommands );
|
command_register_all( customCommands );
|
||||||
@ -167,9 +165,10 @@ DWORD __declspec(dllexport) InitServerExtension(Remote *remote){
|
|||||||
dhcpserver = createDHCPServer();
|
dhcpserver = createDHCPServer();
|
||||||
tftpserver = createTFTPServer();
|
tftpserver = createTFTPServer();
|
||||||
|
|
||||||
if(tftpserver)
|
if (tftpserver) {
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
else
|
}
|
||||||
|
|
||||||
return ERROR_NOT_ENOUGH_MEMORY;
|
return ERROR_NOT_ENOUGH_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,8 +177,6 @@ DWORD __declspec(dllexport) InitServerExtension(Remote *remote){
|
|||||||
*/
|
*/
|
||||||
DWORD __declspec(dllexport) DeinitServerExtension(Remote *remote)
|
DWORD __declspec(dllexport) DeinitServerExtension(Remote *remote)
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
destroyTFTPServer(tftpserver);
|
destroyTFTPServer(tftpserver);
|
||||||
tftpserver = NULL;
|
tftpserver = NULL;
|
||||||
|
|
||||||
|
@ -97,8 +97,6 @@ Command customCommands[] =
|
|||||||
*/
|
*/
|
||||||
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
hMetSrv = remote->hMetSrv;
|
hMetSrv = remote->hMetSrv;
|
||||||
|
|
||||||
command_register_all( customCommands );
|
command_register_all( customCommands );
|
||||||
|
@ -1114,8 +1114,6 @@ Command customCommands[] =
|
|||||||
*/
|
*/
|
||||||
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// This handle has to be set before calls to command_register
|
// This handle has to be set before calls to command_register
|
||||||
// otherwise we get obscure crashes!
|
// otherwise we get obscure crashes!
|
||||||
|
@ -179,7 +179,6 @@ DWORD __declspec(dllexport) InitServerExtension(Remote *remote)
|
|||||||
DWORD InitServerExtension(Remote *remote)
|
DWORD InitServerExtension(Remote *remote)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
hMetSrv = remote->hMetSrv;
|
hMetSrv = remote->hMetSrv;
|
||||||
#endif
|
#endif
|
||||||
|
@ -116,8 +116,8 @@ private:
|
|||||||
/*! @brief Valid actions that can be invoked on the webcam control thread. */
|
/*! @brief Valid actions that can be invoked on the webcam control thread. */
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
Stop = 1, ///< Tell the webcam control thread to terminate.
|
StopCamera = 1, ///< Tell the webcam control thread to terminate.
|
||||||
GetFrame = 2 ///< Tell the webcam control thread to capture a frame.
|
GetCameraFrame = 2 ///< Tell the webcam control thread to capture a frame.
|
||||||
} WebcamAction;
|
} WebcamAction;
|
||||||
|
|
||||||
/*! @brief State structure which is used for C&C of the webcam control thread. */
|
/*! @brief State structure which is used for C&C of the webcam control thread. */
|
||||||
@ -486,13 +486,13 @@ DWORD THREADCALL webcam_control_thread(THREAD * thread)
|
|||||||
|
|
||||||
switch (state->controlAction)
|
switch (state->controlAction)
|
||||||
{
|
{
|
||||||
case Stop:
|
case StopCamera:
|
||||||
dprintf("[WEBCAM] ACTION_STOP called.");
|
dprintf("[WEBCAM] StopCamera called.");
|
||||||
dwResult = ERROR_SUCCESS;
|
dwResult = ERROR_SUCCESS;
|
||||||
state->bRunning = FALSE;
|
state->bRunning = FALSE;
|
||||||
break;
|
break;
|
||||||
case GetFrame:
|
case GetCameraFrame:
|
||||||
dprintf("[WEBCAM] ACTION_GETFRAME called.");
|
dprintf("[WEBCAM] GetCameraFrame called.");
|
||||||
dwResult = webcam_get_frame(state);
|
dwResult = webcam_get_frame(state);
|
||||||
event_signal(state->pResultEvent);
|
event_signal(state->pResultEvent);
|
||||||
break;
|
break;
|
||||||
@ -744,7 +744,7 @@ DWORD request_webcam_get_frame(Remote *remote, Packet *packet)
|
|||||||
// set up the thread call
|
// set up the thread call
|
||||||
g_pThreadState->pResponse = response;
|
g_pThreadState->pResponse = response;
|
||||||
g_pThreadState->frameQuality = quality;
|
g_pThreadState->frameQuality = quality;
|
||||||
g_pThreadState->controlAction = GetFrame;
|
g_pThreadState->controlAction = GetCameraFrame;
|
||||||
|
|
||||||
// invoke and wait
|
// invoke and wait
|
||||||
event_signal(g_pThreadState->pCallEvent);
|
event_signal(g_pThreadState->pCallEvent);
|
||||||
@ -785,7 +785,7 @@ DWORD request_webcam_stop(Remote *remote, Packet *packet) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set up the thread call
|
// set up the thread call
|
||||||
g_pThreadState->controlAction = Stop;
|
g_pThreadState->controlAction = StopCamera;
|
||||||
|
|
||||||
// invoke and wait
|
// invoke and wait
|
||||||
event_signal(g_pThreadState->pCallEvent);
|
event_signal(g_pThreadState->pCallEvent);
|
||||||
|
@ -23,8 +23,6 @@ Command customCommands[] =
|
|||||||
*/
|
*/
|
||||||
VOID register_dispatch_routines()
|
VOID register_dispatch_routines()
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
extension_list = list_create();
|
extension_list = list_create();
|
||||||
|
|
||||||
command_register_all( customCommands );
|
command_register_all( customCommands );
|
||||||
@ -35,8 +33,6 @@ VOID register_dispatch_routines()
|
|||||||
*/
|
*/
|
||||||
VOID deregister_dispatch_routines( Remote * remote )
|
VOID deregister_dispatch_routines( Remote * remote )
|
||||||
{
|
{
|
||||||
DWORD index;
|
|
||||||
|
|
||||||
while( TRUE )
|
while( TRUE )
|
||||||
{
|
{
|
||||||
EXTENSION * extension = list_pop( extension_list );
|
EXTENSION * extension = list_pop( extension_list );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user