View previous topic :: View next topic |
Author |
Message |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Aug 20, 2007 10:13 am Post subject: Creating a CRC? |
|
|
Is there any windows APIs that tell you what the Opcode is at a certain point?
|
|
Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Mon Aug 20, 2007 11:23 am Post subject: |
|
|
Why don't you just load the program in a decompiler, and find the opcode at that point
_________________
8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Mon Aug 20, 2007 11:36 am Post subject: |
|
|
Because, oib, I'm assuming, seeing as we are in the programming section, that he wants to program his own CRC, either for a useful program, or a crackme.
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
Back to top |
|
 |
atlantis Advanced Cheater
Reputation: 0
Joined: 16 Jun 2007 Posts: 69
|
Posted: Mon Aug 20, 2007 11:49 am Post subject: |
|
|
I think you usually take crc with help of a dll or take crc of other file
cause it is hard to know what crc is before it is computed..
|
|
Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Mon Aug 20, 2007 1:14 pm Post subject: |
|
|
You do it in raw memory (if of your own program) or with ReadProcessMemory.
In C, of the current process, you can read individual program bytes like this:
Code: | char* address;
address = 0x400000;
char nextbyte() { return (address++)* } |
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Aug 22, 2007 7:01 am Post subject: |
|
|
nog, you forgot the casting:
Code: |
void* address = (void*)0x400000;
BYTE nextByte()
{
address = (void*)((BYTE)address + 1);
return (*(BYTE*)address);
}
|
Looks like u used to ASM
|
|
Back to top |
|
 |
|