Go Back   FileForums > Games > Game Coders
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24-03-2006, 10:34
Petrol king Petrol king is offline
Junior Member
 
Join Date: Mar 2006
Location: france
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Petrol king is on a distinguished road
How does it work ?

Hello,

First, sorry if my english isn't good it is because i' m french and i' m still at school.

If i post here it is to know how a Crack No Cd or an other crack works.

My intentions are not cracking or hacking, i don ' t want to know exactly
how it works, it should be very complicated, i just wanna know how it works globaly.

thx,


++

Petrol king,

Last edited by Petrol king; 24-03-2006 at 10:59.
Reply With Quote
Sponsored Links
  #2  
Old 24-03-2006, 23:03
DABhand DABhand is offline
Banned
 
Join Date: Nov 2004
Location: Near my PC
Posts: 5,406
Thanks: 0
Thanked 3 Times in 3 Posts
DABhand is on a distinguished road
Basically its called Reverse Engineering, where you take the game code and rewrite it so that it functions differently.
Reply With Quote
  #3  
Old 25-03-2006, 02:17
Petrol king Petrol king is offline
Junior Member
 
Join Date: Mar 2006
Location: france
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Petrol king is on a distinguished road
I thought it was something like that and i tryed to get the asm code of a exe, it is enormous, never seen something like that, nothing understandable.
It is why i asked the question, i believed there was a other way to do that.

I thought of doing a copy of the cd on the computer and make the program read on the copy .I' d like to have your opinion on it, do you think this way is easier ?

thx

++
sn00bino
Reply With Quote
  #4  
Old 25-03-2006, 05:52
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
Quote:
Originally Posted by Petrol king
I thought of doing a copy of the cd on the computer and make the program read on the copy .I' d like to have your opinion on it, do you think this way is easier ?
of course its easier (especially if you dont know asm/cant crack), but you are simply bypassing the protection checks with the image/burned backup, the protection code is NOT magically removed
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
Reply With Quote
  #5  
Old 25-03-2006, 06:57
Petrol king Petrol king is offline
Junior Member
 
Join Date: Mar 2006
Location: france
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Petrol king is on a distinguished road
It is real that my knowledge in asm is limited.But can ' t i do a transformer from exe to a language who ' s not far from c++ ?

By exemple if i do that :

1 Create a prog with nothing in it.
2 Create a other prog like the first exept i add an if instruction
3 Create a prog which compare the 2 programs and return the differences.

So the third program returns me an instruction if.

And if i do that for all the basic instruction,and if i do a fourth program wich knows all this instructions.Won' t i be able to retrieve a almost-cpp source code ?

There is a other thing, if i want to delete the need of the cd, i must know when the program need it.So, Do you have an idea of the way to do that ?

thx,
++

PS: if you can 't understand something or if i do syntax or other fault don' t hesitate to tell me.
Reply With Quote
  #6  
Old 25-03-2006, 08:13
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
c, delphi etc are all high level languages, they are compiled to assembly language by the compiler, so having experience in c can help but you really also need to know assembly so that you can change the instructions in the compiled exe.. a cdcheck can be done via various methods, the most simple being a call to GetDriveTypeA which returns 05 if the device passed in the parameters is a cdrom drive, so you then find the procedure that does the cdcheck and 'help' it so it returns 'hey there is a cd present, all is ok' back to the code, which then continues on... thats an example of a simplistic cdcheck, there are far far harder ones like on securom, starforce, safedisc etc... which most people can not 'bypass' as easily

in your examples, the 'differences' will probably be huge, and will be caused by the compiler, they will also be hex bytes which 'translate' to asm code, you won t see the 'code' you changed in a human readable form (like your c code)...
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
Reply With Quote
  #7  
Old 25-03-2006, 10:02
Petrol king Petrol king is offline
Junior Member
 
Join Date: Mar 2006
Location: france
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Petrol king is on a distinguished road
Could you tell me more about GetDriveTypeA ? Because i didn't found lots of thing on it on internet.

And how could i find the procedure ?

I' m sorry if you ' ve told that already in your message but i didn't understand it all.
Reply With Quote
  #8  
Old 25-03-2006, 10:27
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
www.msdn.com

information is also in the win32api that comes with most compilers, and can be found relatively easily with google - its size varies from 12mb upwards, and is also included in some of the microsoft sdk's etc..

Searching for 'GetDriveType' might have also helped, most win32 api's have an A at the end (signifying Ansi 'version' of the code) or a W (signifying unicode/widechar 'version' of the code)

The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.

UINT GetDriveType(

LPCTSTR lpRootPathName // address of root path
);
Parameters

lpRootPathName

Points to a null-terminated string that specifies the root directory of the disk to return information about. If lpRootPathName is NULL, the function uses the root of the current directory.

Return Values

The return value specifies the type of drive. It can be one of the following values:

Value Meaning
0 The drive type cannot be determined.
1 The root directory does not exist.
DRIVE_REMOVABLE The drive can be removed from the drive.
DRIVE_FIXED The disk cannot be removed from the drive.
DRIVE_REMOTE The drive is a remote (network) drive.
DRIVE_CDROM The drive is a CD-ROM drive.
DRIVE_RAMDISK The drive is a RAM disk.

the DRIVE_* are equates.. and its really 0,1,2,3,4,5,6 (5 being cdrom, dvd is also 'cdrom')

hope that helps, happy googling
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
Reply With Quote
  #9  
Old 25-03-2006, 12:45
Petrol king Petrol king is offline
Junior Member
 
Join Date: Mar 2006
Location: france
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Petrol king is on a distinguished road
So if i understand, this function tell me if a cd is present or not ?
Reply With Quote
  #10  
Old 25-03-2006, 14:14
caki caki is offline
Registered User
 
Join Date: Dec 2004
Location: UK
Posts: 899
Thanks: 0
Thanked 0 Times in 0 Posts
caki is on a distinguished road
Well, no.

For GetDriveTypeA, you give as input the name of a drive, and then it tells you what type of drive it is (i.e CD Drive, Hard Drive etc...)
__________________
Sanity is for the weak.
Reply With Quote
  #11  
Old 26-03-2006, 04:22
Petrol king Petrol king is offline
Junior Member
 
Join Date: Mar 2006
Location: france
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Petrol king is on a distinguished road
ok, i understood, thanks.

So now i need to know when the program call this fonction,how could i do that ?

I thought lots of thing but i didn't find something makable.
Reply With Quote
  #12  
Old 26-03-2006, 07:26
DABhand DABhand is offline
Banned
 
Join Date: Nov 2004
Location: Near my PC
Posts: 5,406
Thanks: 0
Thanked 3 Times in 3 Posts
DABhand is on a distinguished road
Any language has a way of calling API's like for example GetDriveTypeA.


If your using C/C++ look on how to include dll's into the program or how to call API's from dll files.
Reply With Quote
  #13  
Old 27-03-2006, 04:38
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,836
Thanks: 20
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
Also, see http://sta.c64.org/docs.html#win32api for a help file on the 32-bit Windows API.
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
  #14  
Old 06-04-2006, 08:42
princcce
Guest
 
Posts: n/a
Forbidden !!

Reverse Engineering is forbidden by law. I don´t know how hard it´s gonna be punished but u should know before starting.

Last edited by princcce; 06-04-2006 at 08:45.
Reply With Quote
  #15  
Old 06-04-2006, 08:50
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,836
Thanks: 20
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
Thank heavens, it isn't forbidden in all countries.
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TO SPOOKY - I think boot cd does work without modchip. NooK PSX Games 23 27-08-2001 10:18
work - doesn't work stephane PSX Games 0 20-07-2001 08:22
PLZ HELP! my cdclone-copies only work on my computer. is this NORMAL? buk PC Games 2 04-03-2001 14:23
clonecd didnt work but i have the hardware.....grrrrrrr......can anyone help me????? Smart CD/DVD Software & Utilities 3 12-01-2001 19:26
What brand cd rw's work or don't work for burning games? shawn DC Games 4 07-12-2000 00:58



All times are GMT -7. The time now is 13:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com