| View previous topic :: View next topic |
| Author |
Message |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Fri Feb 29, 2008 10:50 pm Post subject: [HELP]C++ |
|
|
*(WORD*)0x342A16FC = 0x2500; // Wolfteam WP HACK
I need help with this, instead of changing the value to 2500, it changes to 9472,
and i also need a dll injector source in c++,
thanks in advance to all who help |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
|
| Back to top |
|
 |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Fri Feb 29, 2008 11:34 pm Post subject: |
|
|
thanks for help
do u mind telling me the diff between those 2?
+rep |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Feb 29, 2008 11:36 pm Post subject: |
|
|
| You just had a 0x in front of the number, making the compiler believe it was a hexadecimal number. No big deal. |
|
| Back to top |
|
 |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Fri Feb 29, 2008 11:52 pm Post subject: |
|
|
ohh,didnt realize that, thanks for the injector too!
btw is it possible to freeze a value?
and how do i add process watch in the injector? it will be much easier |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Mar 01, 2008 12:28 am Post subject: |
|
|
All you do when you "freeze" a value, is you constantly write to it in a loop:
| Code: | | for(;; Sleep(1)) *((unsigned short*)0x342A16FC) = 2500; |
Would "freeze" the value.
Process watch is actually quite simple also, just keep calling GetProcessID() (included in the injector) in a loop. If it equals -1, check again.
| Code: | | while((pId = GetProcessID("process.exe")) == -1) Sleep(10); |
|
|
| Back to top |
|
 |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Sat Mar 01, 2008 1:20 am Post subject: |
|
|
| Flyte wrote: | All you do when you "freeze" a value, is you constantly write to it in a loop:
| Code: | | for(;; Sleep(1)) *((unsigned short*)0x342A16FC) = 2500; |
Would "freeze" the value.
Process watch is actually quite simple also, just keep calling GetProcessID() (included in the injector) in a loop. If it equals -1, check again.
| Code: | | while((pId = GetProcessID("process.exe")) == -1) Sleep(10); |
|
Is the freeze the same as ce's? im afraid that it may lag me too much if the sleep is too short |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Mar 01, 2008 1:26 am Post subject: |
|
|
CE uses the same idea, infact, in the settings you can set the Sleep() time:
Sleep(1) should be fine, but if you really feel like you need more, you can try CE's default value, which is 250. I would definitely recommend it to be as small as possible though. |
|
| Back to top |
|
 |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Mon Mar 03, 2008 1:21 am Post subject: |
|
|
| Flyte wrote: | CE uses the same idea, infact, in the settings you can set the Sleep() time:
Sleep(1) should be fine, but if you really feel like you need more, you can try CE's default value, which is 250. I would definitely recommend it to be as small as possible though. |
haha okay, thanks i thought it was different from ce's so i put mine at 5000ms lol xP
Last edited by Xoujiro on Tue Mar 04, 2008 12:35 am; edited 1 time in total |
|
| Back to top |
|
 |
DebugMe Newbie cheater
Reputation: 0
Joined: 29 May 2007 Posts: 20
|
Posted: Mon Mar 03, 2008 11:01 am Post subject: |
|
|
Thanks for the open source unicode injector. Although it doesn't want to inject my dll into any process. It says that the dll wasn't found, but it's in the folder. >_> |
|
| Back to top |
|
 |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Tue Mar 04, 2008 12:34 am Post subject: |
|
|
[quote="Xoujiro"] | Flyte wrote: | CE uses the same idea, infact, in the settings you can set the Sleep() time:
Sleep(1) should be fine, but if you really feel like you need more, you can try CE's default value, which is 250. I would definitely recommend it to be as small as possible though. |
haha okay, thanks i thought it was different from ce's so i put mine at 5000ms lol xP
EDIT: ok i need another help, how do you change the input for process to auto wolfteam.bin
Change
_tscanf_s(_T("%s"), lpTarget, sizeof(lpTarget)/sizeof(_TCHAR)); |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Mar 04, 2008 5:14 pm Post subject: |
|
|
| Code: | | while((pId = GetProcessID("wolfteam.bin")) == -1) Sleep(10); |
|
|
| Back to top |
|
 |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Wed Mar 05, 2008 12:53 am Post subject: |
|
|
error C2664: 'GetProcessID' : cannot convert parameter 1 from 'const char [13]' to 'LPTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
fatal error C1903: unable to recover from previous error(s); stopping compilation |
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Mar 05, 2008 9:29 am Post subject: |
|
|
| Xoujiro wrote: | error C2664: 'GetProcessID' : cannot convert parameter 1 from 'const char [13]' to 'LPTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
fatal error C1903: unable to recover from previous error(s); stopping compilation |
| Code: | | while((pId = GetProcessID( L"wolfteam.bin" )) == -1) Sleep(10); |
Your using UNICODE so you have to add an L before open strings. You can also use _T("string") or TEXT("string") _________________
|
|
| Back to top |
|
 |
Xoujiro Advanced Cheater
Reputation: 0
Joined: 20 Mar 2006 Posts: 86
|
Posted: Thu Mar 06, 2008 12:39 am Post subject: |
|
|
| thanks alot |
|
| Back to top |
|
 |
|