mirror of
https://github.com/360NENZ/Taiga74164-Akebi-GC.git
synced 2025-07-18 17:38:18 +08:00

`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
42 lines
1.0 KiB
C++
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);
|
|
};
|
|
}
|
|
|