var Onehit_Hook : Array[0..1] of DWORD;
Procedure OnehitHook;
var Index : Integer;
begin
for Index := 0 to 1 do begin
Onehit_Hook[Index] := DWORD(VirtualAllocEx(hProcess, Nil, $1, MEM_COMMIT, PAGE_EXECUTE_READWRITE));
end;
WriteProcessMemory(hProcess, Pointer(Onehit_Hook[0]), @OnehitAsm, $1E, Nativeuint(nil^));
WPM4Byte(Onehit_Hook[0] + $02, Onehit_Hook[1]);
JmpHookEx(Onehit_Hook[0] + $1A, Offset_Onehit + $07, 0);
JmpHookEx(Offset_Onehit, Onehit_Hook[0], 2);
end;
Procedure Onehit(Toggle: Boolean);
Const Value : Array[0..6] of byte = ($0F, $2F, $82, $B0, $04, $00, $00);
if Toggle then begin
WPM1Byte(Onehit_Hook[1], 1);
end else begin
WriteProcessMemory(hProcess, Pointer(Offset_Onehit), @Value, sizeof(Value), Nativeuint(nil^));
WPM1Byte(Onehit_Hook[1], 0);
end;
Offset_OneHit: DWORD = $014C1F3A;
OnehitAsm :
3keU2H2+IXfxc0wR3t3/2zHrCIv7FCej+l5d1pjN3WY3aHyx3xR7vUft2Or3QR596wp5ewgBvy3ZBK3M6uuvdxVU+jFJEb9KOJCKtfcKhE4eyncIgg7qcmdzPSBD61Yj6oj9QNfICU9irHAQ5UtzC8qouIUQabx2nIeAmy8KxiZt5zxrjdxAeiilv5Zhj+cYrljU5SPylCXBvHxb8r/gSA==
알아서 복호화하고 재밌게 쓰세요 ^ㅜ^
제목 | 작성자 | 작성일 | 조회 | |
---|---|---|---|---|
공지 | 10-20 | 2909 | ||
3429 | 14:09 | 19 | ||
3428 | 02:03 | 102 | ||
3427 | 11-25 | 32 | ||
3426 | 11-25 | 26 | ||
3425 | 11-24 | 50 | ||
3424 | 11-24 | 41 | ||
3423 | 11-24 | 36 | ||
3422 | 11-24 | 32 | ||
3421 | 11-23 | 38 | ||
3420 | 11-23 | 34 | ||
3419 | 11-23 | 48 | ||
3418 | 11-22 | 197 | ||
3417 | 11-22 | 71 | ||
3416 | 11-21 | 127 | ||
3415 | 11-21 | 75 | ||
3414 | 11-20 | 81 | ||
3413 | 11-20 | 67 | ||
3412 | 11-19 | 75 | ||
3411 | 11-19 | 147 |
댓글4
Offset_OneHit: DWORD = $014C1F3A; = f3 0f 11 80 34 08 00 00 8b e5
OnehitAsm 요거 어딨어?
와 개잘됨
ㄱㅅ