Skip to content

Commit 222c735

Browse files
author
xGladius
authored
Update wiz_packet.h
1 parent 8891990 commit 222c735

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

wiz_packet.h

+1-27
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,6 @@ inline uintptr_t rebase(const uintptr_t adr)
99
return reinterpret_cast<uintptr_t>(GetModuleHandleA(nullptr)) + adr - 0x400000;
1010
}
1111

12-
typedef void(__fastcall* o_setkey)(uintptr_t _this, int extra, byte* key, unsigned int length, uintptr_t params);
13-
o_setkey orig_setkey;
14-
15-
void __fastcall setkey_hook(uintptr_t _this, int extra, byte* key, unsigned int length, uintptr_t params)
16-
{
17-
printf("key:\n");
18-
for (auto i = 0; i < length; i++)
19-
printf("%02x ", key[i]);
20-
printf("\n");
21-
system("pause");
22-
return orig_setkey(_this, extra, key, length, params);
23-
}
24-
25-
typedef void(__fastcall* o_setiv)(uintptr_t _this, int extra, byte* iv, unsigned int length);
26-
o_setiv orig_setiv;
27-
28-
void __fastcall setiv_hook(uintptr_t _this, int extra, byte* iv, unsigned int length)
29-
{
30-
printf("iv:\n");
31-
for (auto i = 0; i < length; i++)
32-
printf("%02x ", iv[i]);
33-
printf("\n");
34-
system("pause");
35-
return orig_setiv(_this, extra, iv, length);
36-
}
37-
3812
enum class packet_mode
3913
{
4014
none,
@@ -267,4 +241,4 @@ void __fastcall ProcessData_hook(uintptr_t _this, int extra, byte* outString, by
267241
handle_packet(set_iv.first, set_iv.second);
268242
set_iv.first.clear();
269243
set_iv.second = packet_mode::none;
270-
}
244+
}

0 commit comments

Comments
 (0)