Kodewerx
https://www.kodewerx.org/forum/

Texthacking Programm
https://www.kodewerx.org/forum/viewtopic.php?f=11&t=5912
Page 1 of 1

Author:  h2o-drache [ Sat Aug 02, 2008 7:08 pm ]
Post subject:  Texthacking Programm

Code:
/* beschreibung */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
   
  int adress;
  char string[50];
  int i,
      K = 3,
      n,
      A = 0,
      T = 3;

  printf("Please put in your adress you want to write your text here: ");
  scanf("%p",&adress);
  getchar();
  printf("\n");
 
  printf("Please put in your text you want to write to your adress here: ");
  scanf("%s",&string);   
  getchar();
           // fgets(string, 1000, stdin);
  printf("\n\n");
 
 
  n = strlen(string)+1;
 
 
 
   printf("%p ",adress);   // er schreibt einmal die adresse dazu
 
  for(i=0; i <= n; i++)   //  er geht am anfang mit i = 0 in die for schleife;
    {       
           
           
            printf("%x", string[K-A]);
           
            A++;
           
           if(T==0)  // er überprüft ob i = 3 ist, i=0 also ignoriert er die befehle in der bedingung
           {
                     printf("\n");  //neue Zeile ^^
              T=4;
              K+=4;   //konstante K = K + 4, K = 3 + 4 (in der zweiten Zeile) 
             
              A = 0; // setzt A züruck auf 0
                     
                       adress+=4;   // die adresse wird um 4 erhöht
                         printf("%p ",adress);   // er schreibt immer die addresse dazu und addiert 4 zum offset^^
                         
                       
           }
           
             
                     
             
             T--;
             
                             
    }
   
   
   
 printf("\n\n");
 
  system("PAUSE");   
  return 0;
}



I thought of making a programm that can make it a way easier to print out your ar-code when you want to change some texts in your game, but in the last adress that the program prints out is always wrong.
idk how to fix it and want to question you, how i can write the programm a way easier or better.
its only a test how good im in C-programming but yet im exhausted with it.

one example for the programm is how to hack your name in mph.
for example you want to named Kodewerx.
you have to type in the adress (of the name) and "Kodewerx" then the programm should print out the ar-code.

i hope s.o. could help to make the programm work.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/