| View previous topic :: View next topic |
| Author |
Message |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Aug 19, 2007 5:59 pm Post subject: |
|
|
kaspersky get the fuck out my topic
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Sun Aug 19, 2007 6:16 pm Post subject: |
|
|
oib111, NOP is one byte. 0x90. 0x90 0x90 0x90 is NOP NOP NOP.
As for what you want to do, any type of integrity check can be defeated - integrity checks rely on themselves/their users being trustworthy.
What I would do:
1)Remove an important part of the code (some core function, perhaps all but the protective code), set it aside.
2)Take the MD5 hash of the rest of the code.
3)Encrypt the set-aside code with Rijndael encryption (AES), using the MD5 hash from earlier as the encryption key. Store this encrypted code as data
4)Have the stub protective code create a thread to
*MD5 the code section.
*Decrypt the data into another section.
*Do this repeatedly.
*Start the main thread.
5) Perhaps also have a check in the encrypted code of the MD5 routine, to make sure it hasn't been changed to always return the correct MD5.
This, as always, is beatable. But it will be vastly harder to beat than any other option.
~nog_lorp
_________________
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Aug 19, 2007 7:01 pm Post subject: |
|
|
it would be easy to crack it if u know that he did it this way but it should be good enough to block most ppl... it looks like a hard crackme xD
btw what are u trying to do?
there are easier ways to encrypt good enough unless ur making a crackme so not every noob can crack it O_o
if ur not making a crack me then encrypt it in an easier way :O
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Aug 19, 2007 7:21 pm Post subject: |
|
|
I am making a crackme. I want to encrypt the password.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Aug 19, 2007 7:30 pm Post subject: |
|
|
so encrypt it as much as u can
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Aug 19, 2007 9:28 pm Post subject: |
|
|
I don't know how. I mean I could use an encryption algorithm to encrypt the text. But then the password is still a string and the password
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Ksbunker Advanced Cheater
Reputation: 0
Joined: 18 Oct 2006 Posts: 88
|
Posted: Mon Aug 20, 2007 12:11 am Post subject: re: |
|
|
Absolute most basic of encryption functions. Harded Coded string is 'ltcvoles'... starts a loop, decreases each char by 1, prints word.
I made a crackme the other day that has a quite a good hardcoded encryption routine, I think x0r has a copy of it. PM if you wan't it.
| Code: | .data
string db 'k'+1, 's'+1, 'b'+1, 'u'+1, 'n'+1, 'k'+1, 'e'+1, 'r'+1, 0
.code
start:
CALL _decrypt
_return:
Invoke MessageBox, 0, ADDR string, ADDR string, 0
Invoke ExitProcess, 0
_decrypt:
lea eax, offset string
push eax
@@:
xor byte ptr [eax], 0
je @end
mov dl, byte ptr [eax]
dec dl
mov byte ptr [eax], dl
inc eax
jmp @B
@end:
pop eax
JMP _return
end start |
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Mon Aug 20, 2007 7:29 am Post subject: |
|
|
oib: Stay focused with your question man.
To encrypt the password, you can:
store only the MD5 hash of the password in your program.
when the user enters a password, MD5 hash IT, then compare the two hashes.
~nog_lorp
_________________
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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Mon Aug 20, 2007 8:37 am Post subject: |
|
|
ksbunker. I'm doing this in C++, nost asm, but thx for the code. You just made me realize something I could do.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
|