Files
Akebi-GC3_0/cheat-library/src/user/cheat/misc/sniffer/PacketSniffer.h
CallowBlack c3a9f2a678 minor changes
`cheat-base` add x32 build
`manual map` and `load library` injection moved to `cheat-base`
removed unnecessary packet sniffer functionality
fixed several type conversionals
`cheat-library` now is startup by default
little changes in `Logger`, `PatternScanner`, `ProtoTransfer`
updated detours
2022-06-21 22:47:24 +03:00

42 lines
1.0 KiB
C++

// ReSharper disable All
#pragma once
#include <filesystem>
#include <cheat-base/cheat/Feature.h>
#include <cheat-base/config/config.h>
#include <cheat-base/PipeTransfer.h>
#include "messages/PacketData.h"
#include "messages/ModifyData.h"
#include "MessageManager.h"
namespace cheat::feature
{
class PacketSniffer : public Feature
{
public:
config::Field<bool> f_CaptureEnabled;
config::Field<bool> f_ManipulationEnabled;
config::Field<std::string> f_PipeName;
static PacketSniffer& GetInstance();
const FeatureGUIInfo& GetGUIInfo() const override;
void DrawMain() override;
private:
PacketSniffer();
PacketData ParseRawPacketData(char* encryptedData, uint32_t length);
static char* EncryptXor(void* content, uint32_t length);
static bool KcpClient_TryDequeueEvent_Hook(void* __this, app::ClientKcpEvent* evt, MethodInfo* method);
static int32_t KcpNative_kcp_client_send_packet_Hook(void* kcp_client, app::KcpPacket_1* packet, MethodInfo* method);
bool OnPacketIO(app::KcpPacket_1* packet, PacketIOType type);
};
}