Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 02:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Gamehacking Dll C++

Discussion on Gamehacking Dll C++ within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Gamehacking Dll C++

Hey epvpers.I have a problem.Well i know a bit C++ so i deside to make a dll for a game...well i would like to know to can i write a string hack from CE to the dll because i got some bugs...i mean i change adress from string to 4bytes or float and in inject i have bugs.

Eh a example


*(float*) Hard = 1.106904516E24; <- float value but bug...normal adress is a string.I tried some *(char[31]*) but error :/

I have you can help me.

Mfg
xCeManx
Krasti is offline  
Thanks
1 User
Old 08/24/2011, 16:39   #2


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
char* pSZ = uraddress;
pSZ[i] = x;

or strcpy / memcpy
buFFy! is offline  
Thanks
1 User
Old 08/24/2011, 16:52   #3
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by buFFy! View Post
char* pSZ = uraddress;
pSZ[i] = x;

or strcpy / memcpy
#define Hard 0xadress ;o
also i got some erros....
but thank for your answer
Krasti is offline  
Thanks
1 User
Old 08/25/2011, 16:16   #4
 
elite*gold: 0
Join Date: Jun 2011
Posts: 183
Received Thanks: 262
:)

Quote:
Originally Posted by xCeManx View Post
#define Hard 0xadress ;o
also i got some erros....
but thank for your answer
Try That .....
char* pSZ = unddress;
pSZ[i] = x;


or strycopy / memcopy
maysson is offline  
Old 08/25/2011, 17:11   #5
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by maysson View Post
Try That .....
char* pSZ = unddress;
pSZ[i] = x;


or strycopy / memcopy
Report ....

Anyway can someone help me? D:
Krasti is offline  
Thanks
1 User
Old 08/25/2011, 17:12   #6
 
elite*gold: 0
Join Date: Jun 2011
Posts: 183
Received Thanks: 262
reported for ?
maysson is offline  
Thanks
1 User
Old 08/25/2011, 18:41   #7
 
PŠPplą’ər's Avatar
 
elite*gold: 11
Join Date: Jul 2011
Posts: 1,332
Received Thanks: 434
Quote:
Originally Posted by buFFy! View Post
char* pSZ = uraddress;
pSZ[i] = x;

or strcpy / memcpy




Quote:
Originally Posted by maysson View Post
Try That .....
char* pSZ = unddress;
pSZ[i] = x;


or strycopy / memcopy
U got reported because its the shame thing.
PŠPplą’ər is offline  
Old 08/25/2011, 19:38   #8
 
elite*gold: 0
Join Date: Jun 2011
Posts: 350
Received Thanks: 295
Quote:
Originally Posted by PŠPplą’ər View Post
U got reported because its the shame thing.
shame?

do u mean same? xD
[P]]I[N[B[4]L]L is offline  
Old 08/25/2011, 19:57   #9
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Please be in topic D:
Krasti is offline  
Thanks
1 User
Old 08/25/2011, 20:03   #10
 
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
Be more specific about what your code should do and what it actually does, otherwise we can't help you.
ms​ is offline  
Old 08/25/2011, 20:49   #11
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by Metin2Spieler97 View Post
Be more specific about what your code should do and what it actually does, otherwise we can't help you.
It's a dll which inject with PerX and it's changed values from adress.Like CE.
But i don't know how to write the string adress....it's gamehacking
Krasti is offline  
Thanks
1 User
Old 08/25/2011, 22:01   #12
 
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
In that case buFFy has already given you an answer.

For 8-bit-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE "test"

strcpy((char *)STR_ADDR, STR_VALUE);
For Unicode-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE L"test"
#define STR_LEN   5            /* STR_VALUE has 4 characters + 1 terminating-character */

memcpy((void *)STR_ADDR, STR_VALUE, sizeof (wchar_t) * STR_LEN);
ms​ is offline  
Thanks
1 User
Old 08/25/2011, 22:03   #13
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by Metin2Spieler97 View Post
In that case buFFy has already given you an answer.

For 8-bit-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE "test"

strcpy((char *)STR_ADDR, STR_VALUE);
For Unicode-characters:
Code:
#define STR_ADDR  0x12569ADE
#define STR_VALUE L"test"
#define STR_LEN   5

memcpy((char *)STR_ADDR, STR_VALUE, sizeof (wchar_t) * STR_LEN);
Eh STR_LEN is the char?
Also i need make +1?
Thank you and sorry for that :/
Krasti is offline  
Thanks
1 User
Old 08/25/2011, 22:08   #14
 
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
Quote:
Originally Posted by Metin2Spieler97 View Post
Code:
#define STR_LEN   5            /* STR_VALUE has 4 characters + 1 terminating-character */
I've edited that part for clarification.
STR_VALUE consists of "t" + "e" + "s" + "t" + "\0".
ms​ is offline  
Thanks
1 User
Old 08/25/2011, 22:18   #15
 
Krasti's Avatar
 
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by Metin2Spieler97 View Post
I've edited that part for clarification.
STR_VALUE consists of "t" + "e" + "s" + "t" + "\0".

So i write value in ""??
Krasti is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 02:20.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.