You can use this form to protect any program from opening, if you follow all steps. But basicly is for protecting your server. (Thats what im gonna show)
Lets start with the things you will need to do before following my guide.
Download:Quote:
-Make sure you got C#
-That you download my form apllication

How to set it up?
Search for:
Code:
private string TextA
Code:
private string TextA = "a83d92s2"; //Key 1
private string TextB = "d2k492s2"; //Key 2
private string TextC = "b2d9rox6"; //Key 3
private string TextD = "r92k48cs"; //Key 4
private string TextE = "cs39527d"; //Key 5
private string TextF = "fos932f9"; //Key 6
private string TextG = "fcks9369"; //Key 7
private string TextH = "slg038fm"; //Key 8
private string TextI = "svei29do"; //Key 9
private string TextJ = "sclh4d94"; //Key 10
private string TextK = "mn27fj42"; //Key 11
You can edit them to what ever you want.
Now open your serverfolder.
Find the exe file for running your server.
example: runserver.exe
Leave the folder open for now.
Now anywhere on your pc (Make it a wierd place, so is hard to find).
Make a shortcut to the server runner.
Make the name of it to something that noone will know
Call it ex. hahahaha
it will be hahahaha.lnk
because lnk is the end for shortcut.
Now back to your server folder.
Right click on the server runner and choose Properties
Make the file hidden.
Now there is no possibility to run server manual.
Except, if they know where the shortcut is. (Thats why you have to make it be somewhere they cant find it.
Okay so far.
How long are we and what he we done?
What are we gonna do now?Quote:
-We have set our keys
-We have made a secret shortcut for run server
-We have made the server runner hidden
Now search for:Quote:
-Make the application run the server after enter key
-How to add more keys
-How to run it
-What can improve this application
Code:
private void button1_Click(object sender, EventArgs e)
Code:
System.Diagnostics.Process.Start("C:/");
ex.
Code:
System.Diagnostics.Process.Start("C:/Server/LOL/secret.lnk");
MAKE SURE IS .LNK
So how do you add more keys?
Search for:
Code:
private string TextK
ex.
Code:
private string TextL = "f82d9gda"; //Key 12
Code:
else if (TextK == textBox1.Text && KeyK == true)
add ex.
Code:
else if (TextL == textBox1.Text && KeyL == true)
{
//Key 3
System.Diagnostics.Process.Start("C:/");//Edit this to the shortcut of server run ex. C:/Server/server.lnk
Thread.Sleep(200);
Application.Exit();
}
find:
Code:
int Nr = K.Next(1, 11);
Code:
int Nr = K.Next(1, 12);
Then find if (Nr == 11)
under it put ex.:
Code:
if (Nr == 12)
{
Start = true;
KeyL = true;
MessageBox.Show("Please enter key 12");
}
Now how do i make it work?
Okay final thing, how can you improve this application?
If you got an externharddisk only read this.
First install c# in the externharddisk.
Now uninstall c# (After your server is full done)
Then you will only have c# on your externharddisk.
Then take your externharddisk out of pc, when you are not playing.
If you are playing, then let it be in, so you can edit server.
If you are using a VPS, then make sure you got a backup of server on your pc, so you can edit server still.
But it wont be possible to do on the VPS.
Current Protect Keys:
Code:
[SIZE="4"]a83d92s2 //Key 1 d2k492s2 //Key 2 b2d9rox6 //Key 3 r92k48cs //Key 4 cs39527d //Key 5 fos932f9 //Key 6 fcks9369 //Key 7 slg038fm //Key 8 svei29do //Key 9 sclh4d94 //Key 10 mn27fj42 //Key 11[/SIZE]
I hope this was useful.






