View previous topic :: View next topic |
Author |
Message |
MrNeef Cheater
Reputation: 0
Joined: 26 Feb 2008 Posts: 44
|
Posted: Fri Feb 29, 2008 4:47 pm Post subject: C++ question! |
|
|
I am using visual c++ 2008.
How do I tick zeroflag in C++? I'm busy on a DLL, and I just can't get it to work. I'm not asking you to spoonfeed me, I'm just asking for help.
Help would be GREATLY appreciated, thanks in advance. _________________
Stop leeching, start learning.
Current Projects :
MrNeef's DLL injector + MrNeef's basic DLL [ 75% ] |
|
Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Fri Feb 29, 2008 5:08 pm Post subject: |
|
|
Edit: rofl dont listen to me, i dunno wut im talkin bout xD _________________
Last edited by lurc on Fri Feb 29, 2008 8:39 pm; edited 2 times in total |
|
Back to top |
|
 |
MrNeef Cheater
Reputation: 0
Joined: 26 Feb 2008 Posts: 44
|
Posted: Fri Feb 29, 2008 5:10 pm Post subject: |
|
|
Thanks lurc! +REP _________________
Stop leeching, start learning.
Current Projects :
MrNeef's DLL injector + MrNeef's basic DLL [ 75% ] |
|
Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Feb 29, 2008 8:31 pm Post subject: |
|
|
Don't listen to lurc, that isn't even close.
Hook, then do the following:
Code: | Clear ZF:
pushf
and byte [esp+3], 0xDF
popf
Set ZF:
pushf
or byte [esp+3], 0x20
popf |
|
|
Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Fri Feb 29, 2008 8:39 pm Post subject: |
|
|
Rofl, My Bad xD i said "i think..."
didnt no for sure. All i knew was the byte value was 6 so i took a nice wild guess xD _________________
|
|
Back to top |
|
 |
MrNeef Cheater
Reputation: 0
Joined: 26 Feb 2008 Posts: 44
|
|
Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Mar 01, 2008 9:46 am Post subject: |
|
|
#define JMP(frm, to) (int)(((int)to - (int)frm) - 5);
DWORD HookAddress = //The hook addy here
DWORD YourAddress = //The Addy/asm that jumps to the addy.
*(DWORD *)HookAddress = JMP( HookAddress, YourAddress );
i dont remember the real Hook Address... ill have to find the AOB. _________________
|
|
Back to top |
|
 |
|