Important alert: (current site time 7/15/2013 6:37:53 PM EDT)
 

VB icon

Easy Crack / Patch template

Email
Submitted on: 10/23/2000 10:43:51 AM
By: Andrew Heinlein (Mouse)  
Level: Beginner
User Rating: By 4 Users
Compatibility: Microsoft Visual C++
Views: 35537
author picture
(About the author)
 
     This is the source to a crack/patch template i made for my team... all you have to do is fill in the "customize data" section and compile... This does not in any way promote illegal solutions to buying software;) This is basically a quick way to do offset patching and learn file i/o
 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//INCLUDE files for :Easy Crack / Patch template
//**************************************
all at the bottom
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
//**************************************
// Name: Easy Crack / Patch template
// Description:This is the source to a crack/patch template i made for my team... all you have to do is fill in the "customize data" section and compile... This does not in any way promote illegal solutions to buying software;) This is basically a quick way to do offset patching and learn file i/o
// By: Andrew Heinlein (Mouse)
//
//This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=812&lngWId=3//for details.//**************************************

/********************************\
*Crack Template for TBH crackers *
*by Mouse (andrew)*
*mouse@theblackhand.net *
*10-22-00*
\********************************/
#include <stdio.h>
#include <stdlib.h>
//CUSTOMIZE THIS DATA//////////////////////////////////////////////////
const char* APPLICATION_NAME = "JComSoft Wave Mixer OCX (Version 1,0,0,1)";
const char* AUTHOR_NAME = "Mouse";
const unsigned long TARGET_FILE_SIZE = 77824;
const char* TARGET_FILE_EXE = "WavMixer.ocx";
const char* CRACK_DESCRIP = "Registers product with incorrect info";
///////////////////////////////////////////////////////////////////////
unsigned char MousesAsciiArt[174] = {
	201,176,177,178,219,219,219,219,219,
	176,177,178,219,219,219,219,219,176,
	177,178,219,219,178,219,219,205,205,
	187, 10,186, 32, 32,176,177,178,219,
	 32, 32,176,177,178,219,219,178,219,
	219,176,177,178,219,219,178,219,219,
	 32, 32,186, 10,186, 32, 32,176,177,
	178,219, 32, 32,176,177,178,219,219,
	219,219,219,176,177,178,219,219,219,
	219,219, 32, 32,186, 10,186, 32, 32,
	176,177,178,219, 32, 32,176,177,178,
	219,219,178,219,219,176,177,178,219,
	219,178,219,219, 32, 32,186, 10,186,
	 32, 32,176,177,178,219, 32, 32,176,
	177,178,219,219,219,219,219,176,177,
	178,219,219,178,219,219, 32, 32,186,
	 10,200,205,205,205,205,205,205,205,
	205,205,205,205,205,205,205,205,205,
	205,205,205,205,205,205,205,205,205,
	205,188, 10};
void main(){
	FILE *TARGET_FILE;
	unsigned long FILE_SIZE = 0;
	int CurChar = 0;
	char FILE_GUTS[TARGET_FILE_SIZE - 1];
	while(CurChar <= 173){
		printf("%c",MousesAsciiArt[CurChar]);
		CurChar++;}
	printf("A crack by team: theblackhand\n");
	printf("http://www.theblackhand.net\n");
	printf("Author: %s\n",AUTHOR_NAME);
	printf("Application: %s\n",APPLICATION_NAME);
	printf("Target File: %s\n",TARGET_FILE_EXE);
	printf("Description: %s\n\n",CRACK_DESCRIP);
	TARGET_FILE = fopen(TARGET_FILE_EXE,"rb+");
	if(!TARGET_FILE){
		printf("\nCould not find or file is currently open: %s\n",TARGET_FILE_EXE);
		printf("Make sure this program is in the target's directory!\n");
		printf("Crack failed =(\n");
		printf("\nPress Enter To Close This Program...");
		scanf("seeya");
		return;
	}
	printf("Target found!\n");
	printf("Checking file size...\n");
	while(fgetc(TARGET_FILE)!=EOF){FILE_SIZE++;}
	fclose(TARGET_FILE);
	TARGET_FILE = fopen(TARGET_FILE_EXE,"rb+");
	
	printf("\nYour version: %i \nTarget version: %i\n",FILE_SIZE,TARGET_FILE_SIZE);
	if(FILE_SIZE != TARGET_FILE_SIZE){
		printf("\nFile is the wrong version\\size!\n");
		printf("Crack failed =(\n");
		fclose(TARGET_FILE);
		printf("\nPress Enter To Close This Program...");
		scanf("seeya");
		return;
	}
	
	printf("\nCorrect file! Installing crack...\n");
	FILE_SIZE = 0;
	
	while((CurChar=fgetc(TARGET_FILE))!=EOF){
		FILE_GUTS[FILE_SIZE] = CurChar;
		FILE_SIZE++;
	}
	fclose(TARGET_FILE);
	
	
	//PLACE OFFSET PATCHES HERE://///////////////////////////////////////
	//To change the value @ offset 00001ADB to hex 74 do the following:
	//HEX OFFSET PATCHES: FILE_GUTS[0x1ADB] = (char)0x74;
	//or:
	//DECIMAL OFFSET PATCHES: FILE_GUTS[6875] = (char)0x74;
	FILE_GUTS[0x04F48] = (char)0x85;
	FILE_GUTS[0x053E2] = (char)0x74;
	/////////////////////////////////////////////////////////////////////
	FILE_SIZE = 0;
	TARGET_FILE = fopen(TARGET_FILE_EXE,"rb+");
	while(FILE_SIZE <= TARGET_FILE_SIZE - 1){
		fputc((int)FILE_GUTS[FILE_SIZE],TARGET_FILE);
		FILE_SIZE++;
	}
	printf("\nCrack successfull!\nHave fun\n");
	printf("\nPress Enter To Close This Program...");
	scanf("seeya");
	return;
}


Other 10 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/23/2000 10:51:44 AMRax

lol. nice code.

although about 10 lnes of it can be erased but it's still pretty smart :)
(If this comment was disrespectful, please report it.)

 
10/23/2000 12:06:21 PMMouse

I have just started learning C++ so yeah, this could have been done in half the code/time by a pro i bet. This was posted for a beginner, by a beginner
(If this comment was disrespectful, please report it.)

 
10/24/2000 3:53:46 AMRax

na don't get me wrong it's good code.
Seeing as you only start VB in January '99. C is a different matter though.
Nice crack though ;)
(If this comment was disrespectful, please report it.)

 
11/14/2000 10:32:48 PMJeff_tm@hotmail.com

I am a beginner, and i don't understand what it is that you crack. Is it a hexidecimal value in the .exe?
(If this comment was disrespectful, please report it.)

 
11/19/2000 12:28:43 PMRax

Basicly you can either crack a prog in many different ways. The easiest way is to open in up in a hex editor and either hex out the part that you don't want or you one of the ore advanced ways is to use SoftIce, but I won't get into all that now. Look around for some tutorials on it or something.
(If this comment was disrespectful, please report it.)

 
6/20/2002 3:48:37 AMdi[MOV]ich

I'm glad someone actually shares his knowledges to others, and lot of people sould learn from you. We are actually a big team that coperates, and if someone is good at programming but other at math. then you can understand the result.

Best regards from di[MOV]ich. :)
(If this comment was disrespectful, please report it.)

 
12/30/2002 10:58:56 PM

Nice one dude, worked a treat for me, was wondering though, is there a generator for the ascii art which you did, cos i dont fancy typin all the chars. cheers
(If this comment was disrespectful, please report it.)

 
12/31/2002 1:03:18 AM

const unsigned long TARGET_FILE_SIZE = 1507600; (this is the size of the exe im patching, but i get a stack overflow)
(If this comment was disrespectful, please report it.)

 
2/14/2003 5:41:28 PMDustin R Davis

You can do this

char *FILE_GUTS;
FILE_GUTS = new char[1507600];

this will keep you from getting memory errors.
(If this comment was disrespectful, please report it.)

 
2/23/2003 7:41:49 AM

Nice one, learnt alot from it, is there any programs to create the char codes for asciiart?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.