|
-
Aug 26th, 2005, 04:26 AM
#1
Thread Starter
Fanatic Member
how to protect exe?
hello, how to protect a exe file?
let say the exe contains
Text1.Text = "YOUR NAME"
you compiled it in .exe
and then open the .exe into Hex Workshop
u will see the YOUR NAME in the Hex workshop
how to prevent this? i don't want to show the YOUR NAME in hex
thanks..
-
Aug 26th, 2005, 04:34 AM
#2
Frenzied Member
Re: how to protect exe?
There are lots of (illegal) ways to reverse engineer other people's software.
If you want to stop simple hex editing, then you'll have to encrypt the string.
Possibly stick it in a res file, and decrypt as and when you need it (or at program start up)
Depending on what you're storing a Caeser Cipher might even be enough.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 26th, 2005, 04:36 AM
#3
Re: how to protect exe?
Is this in IDE mode, or at runtime?
-
Aug 26th, 2005, 04:38 AM
#4
Thread Starter
Fanatic Member
Re: how to protect exe?
@I_Love_My_Vans
it is a runtime apps... (standalone)
thanks...
-
Aug 26th, 2005, 04:38 AM
#5
Hyperactive Member
Re: how to protect exe?
yes. but then you just defer the problem as to where to store the encryption key! If decryption is to be done automatically, at least!
-
Aug 26th, 2005, 04:39 AM
#6
Re: how to protect exe?
I jjust tested this when the text is loaded on runtim, and it cannot see what is going in at all.
Try loading the text on runtime.
ILMV
-
Aug 26th, 2005, 05:03 AM
#7
Thread Starter
Fanatic Member
Re: how to protect exe?
@I_Love_My_Vans
how to do that?
thanks...
-
Aug 26th, 2005, 05:05 AM
#8
Frenzied Member
Re: how to protect exe?
 Originally Posted by divined
yes. but then you just defer the problem as to where to store the encryption key! If decryption is to be done automatically, at least!
Using a caesar cipher only requires a LONG. So the fact that this key is a number wouldn't be immediately obvious inside a hex editor.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 26th, 2005, 05:30 AM
#9
Re: how to protect exe?
 Originally Posted by nokmaster
. . . and then open the .exe into Hex Workshop . . .
Thanks, I was looking for a good Hex Editor and here is the link for all others that are interested: http://www.bpsoft.com/
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Aug 26th, 2005, 06:24 AM
#10
Thread Starter
Fanatic Member
Re: how to protect exe?
@all
i find this code it works.......
how to create this into opening a file like CommonDialog
VB Code:
Private Sub Command1_Click()
A = "."
Open Text1.Text For Binary As #1
Seek #1, 25
Put #1, , A
Close #1
MsgBox "The File, ''" & Text1 & "'', Was Protected from being decompiled!", vbOKOnly, "Decompile Protection Attempt Successful!"
End Sub
Private Sub Dir1_Change()
File1 = Dir1
Text1 = Drive1 & "/" & Dir1
End Sub
Private Sub Drive1_Change()
Drive1 = Dir1
End Sub
Private Sub File1_Click()
Text1 = Dir1 & "\" & File1
End Sub
Private Sub File1_DblClick()
Command1_Click
End Sub
-
Aug 26th, 2005, 06:54 AM
#11
Re: how to protect exe?
Is this what you mean?
VB Code:
Private Sub Command1_Click()
With CommonDialog1
.CancelError = True
' Set filters
.Filter = "Text Files (*.txt)|*.txt|"
' Display the Open dialog box
.ShowOpen
End With
A = "."
Open CommonDialog1.FileName For Binary As #1
Seek #1, 25
Put #1, , A
Close #1
MsgBox "The File, ''" & CommonDialog1.FileName & "'', Was Protected from being decompiled!", vbOKOnly, "Decompile Protection Attempt Successful!"
End Sub
-
Aug 26th, 2005, 06:58 AM
#12
Fanatic Member
Re: how to protect exe?
what you are intending to do remains quite vague to me.
if you only want to avoid other people reading directly from your compiled .exe you have to pack it.
i use ASPack for various reasons i won't detail here. just know that this is the only packer that does not have an automated 'unpacker' out there.
cheers,
wc.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|