1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-24 18:16:24 +01:00
HD Moore fa51ea5d15 Swapping in the latest patched copy of Meterpreter. See
git-svn-id: file:///home/svn/framework3/trunk@6357 4d416f70-5f16-0410-b530-b9f4589650da
2009-03-22 18:56:28 +00:00

28 lines
691 B
C

#ifndef _METERPRETER_SOURCE_COMMON_CRYPTO_H
#define _METERPRETER_SOURCE_COMMON_CRYPTO_H
struct _Remote;
struct _Packet;
typedef struct _CryptoContext
{
struct _Remote *remote;
LPVOID extension;
struct
{
DWORD (*process_negotiate_request)(struct _CryptoContext *ctx, struct _Packet *request);
DWORD (*encrypt)(struct _CryptoContext *ctx, PUCHAR inBuffer, ULONG inBufferLength,
PUCHAR *outBuffer, PULONG outBufferLength);
DWORD (*decrypt)(struct _CryptoContext *ctx, PUCHAR inBuffer, ULONG inBufferLength,
PUCHAR *outBuffer, PULONG outBufferLength);
} handlers;
} CryptoContext;
// Individual ciphers
#include "crypto/xor.h"
#endif