1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-21 14:39:32 +08:00
Files
Alas/blcrack/cracker/Dobby/source/InterceptRouting/Routing/InstructionInstrument/InstructionInstrumentRouting.h
2025-11-01 00:23:46 +08:00

31 lines
781 B
C++

#pragma once
#include "dobby/dobby_internal.h"
#include "InterceptRouting/InterceptRouting.h"
#include "TrampolineBridge/ClosureTrampolineBridge/ClosureTrampoline.h"
class InstructionInstrumentRouting : public InterceptRouting {
public:
InstructionInstrumentRouting(InterceptEntry *entry, dobby_instrument_callback_t pre_handler,
dobby_instrument_callback_t post_handler)
: InterceptRouting(entry) {
this->prologue_dispatch_bridge = nullptr;
this->pre_handler = pre_handler;
this->post_handler = post_handler;
}
void DispatchRouting() override;
private:
void BuildRouting();
public:
dobby_instrument_callback_t pre_handler;
dobby_instrument_callback_t post_handler;
private:
void *prologue_dispatch_bridge;
};