Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Encrypting programs?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
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?

PostPosted: Sun Aug 19, 2007 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Sun Aug 19, 2007 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Aug 19, 2007 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Aug 19, 2007 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Aug 19, 2007 7:30 pm    Post subject: Reply with quote

so encrypt it as much as u can Very Happy
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Aug 19, 2007 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Ksbunker
Advanced Cheater
Reputation: 0

Joined: 18 Oct 2006
Posts: 88

PostPosted: Mon Aug 20, 2007 12:11 am    Post subject: re: Reply with quote

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
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Mon Aug 20, 2007 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Mon Aug 20, 2007 8:37 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites