Make a patch for CrackMe

Saturday, December 17, 2011






Wanna Learn how to make a simple and easy Patch ?


To do this u must have
  • W32Dasm                     if you dont have W32Dasm Download it here
  • C++ Compiler               if you dont have a C++ compiler download it here
  • Crkme4                         Download
Thats all we need right now .......... Lets go Cracking


 Open Crkme4 and Enter Some values and get a Error Message


*Remember :- Enter a numerical value to Serial Number because this Crkme4 only accepts Numerical value


Ok It Shows "Bad Name or Serial Number .... "


ok now fire up W32Dasm and open Crkme4 and search for "bad name"


Ok i found it in the Address 0042DCCF


Scroll up untill u find

Referenced by a (U)nconditional or (C)onditional jump at address :
|:0042DCC2


Now Goto -> Goto Code Location
and type in the address 0042DCC2 and hit Enter


oh yea I found it. there u can see

:0042DCC2  7517             jne 0042DCDB
  
There as you can see there is jne(jump if not equal) jump so we have to change it to je(jump if equal)


to do this click on that and see the status bar there you will see


Line :- BLAHBLAH.....Code Data @ 0042DCC2@ offset 0002D0C2h (niglect the h and front 0's) and write down
the hex address


2D0C2


open the calculator in Programmer mode and select hex option and paste that value and get the Dec value of it
I got this value

184514  as there are two bytes we want two numbers(the number next to it)
184515

je value for hex is 74 convert it to decimal we get 116
we need two 116's to replace that place

116
116

ok thats all the information we need ...... lets make a patch for it


Open the C++ compiler and paste this code

 #include"iostream"

int main()
{
    int i;
    FILE *fp;
    char ex;
  
    int offset[2] = {184514,184515};       
    char data[2] = {116,116};             
  
    fp = fopen("Crkme4.exe","r+");
    if(fp == NULL)
    {
          printf("Oops! Unable to Read the File crkme4"); 
    }
    else
    {
              for(int j = 0;j<2;j++)
              {
                      fseek(fp,offset[j],SEEK_SET); 

                      fprintf(fp,"%c",data[j]);            
              }
       
        printf("Patched Successfully!");
    }
    scanf("%c",&ex);                       
  
  
  
return 0;  
}
 


Compile it now and paste the executing file in the same folder as Crkme4 located
and now run it 
download the patch created by me


It Works!!!!!!!!!

~ 0 comments: ~

GuaBlog!

OhBelog!

Qoute from A's desk

Who walks the path of heaven will rule over everything... Bring the Peace, Keep the Peace, Walk in Peace then Rest in Peace...

Total Tayangan Laman

Followers

About Me

Recent Posts


ShoutMix chat widget

Link

Blogger Widgets
Related Posts Plugin for WordPress, Blogger...

Please help pay cup of coffee for us~

abrapism almawalker. Theme images by sndr. Powered by Blogger.

Popular Posts