Register for your free account! | Forgot your password?

You last visited: Today at 18:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[REL] Password Protection

Discussion on [REL] Password Protection within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 46
Received Thanks: 1
[REL] Password Protection

This is for NewestCOServer.
Some people may find this useful, some may not.

This is how it works: When you start the server, it will ask for a password, if you enter it incorrectly, the console will close as you click enter, if you enter it correctly, it will resume.

Search for:
Code:
static void Main(string[] args)
Above that add:
Code:
public static string Password;
Search for:
Code:
Database.AddSkills();
Above that put:
Code:
Database.LoadPass();
Search for:
Code:
public static void LoadItems()
Above that add:
Code:
 public static void LoadPass()
        {
            Console.Write("What is the password?: ");
            Program.Password = Console.ReadLine();

            if (Program.Password != "elitepvpers")
            {
                Console.Write("Wrong password, click enter to close the console!");
                Console.ReadLine();
                Environment.Exit(0);
            }
           
        }
To change the password to what you desire, edit the following:
Code:
if (Program.Password != "[COLOR="Red"]elitepvpers[/COLOR]")

End
xElement is offline  
Old 05/20/2011, 11:22   #2
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
useless, unsafe, ****.

sorry.
|NeoX is offline  
Thanks
1 User
Old 05/20/2011, 13:08   #3
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Useless garbage + You don't need another void for it.
iStefan is offline  
Old 05/20/2011, 13:34   #4
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Oh, awesome idea! Or is it? Microsoft released a decompiling tool a couple of years ago, so you simply just decompile the exe and navigate to Program.sc (assuming that's where the startup is) and look what string it wants to continue.
_Emme_ is offline  
Old 05/20/2011, 17:36   #5
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Then pack it.

You should make it check an online database with IP's and check the Computer networking IP.
_DreadNought_ is offline  
Old 05/20/2011, 17:41   #6
 
elite*gold: 0
Join Date: Feb 2011
Posts: 185
Received Thanks: 55
I could understand it on something like Impulse's source or p4n's, but on lotf it's much rather useless..
Yup Stigs is offline  
Old 05/20/2011, 20:21   #7
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Quote:
Originally Posted by Yup Stigs View Post
I could understand it on something like Impulse's source or p4n's, but on lotf it's much rather useless..
I Could understand it on something like false rumors or bad informations. But spreading them more is much worse.
Without the Buggy Features and attack handling NewestCOServer would be an awesome Source.
Impulse's source gets laggy on 50+ Players, about p4n's I Don't know I never tested it, but Chris says it's bad (and that's the reason he released it).

Although, this can be used on any source, this can be made by a beginner (in his first day in C#), It's useless on any Source.
Console ReadLine, variables, and checks FTW!
iStefan is offline  
Old 05/22/2011, 20:41   #8
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
It would take less than 5 minutes to get the password, if you know about RE. Also if anybody is able to hack into your server (Not including BF), then they would probably know such stuff, because it's not something advanced.

This would not be useful on anything and specially not in a .NET application.

Also about server restart etc. How would this be useful? How would you make enter the password?

This is useless.

It work in one way. Disable Windows Explorer and Taskmgr. Also disable Hotkeys.
Then make an app with username and password to enable those things.

Like a 2nd authentication system after Windows authentication.
BaussHacker is offline  
Old 05/22/2011, 23:44   #9


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
This would never really be secure, at the very least you would need to store the password in the database and not in the app, and the password would need some form of crypto on it to ensure that people cant just take it from the database...

Just securing where you store the app would be alot easier and more secure than securing the app itself.
Korvacs is offline  
Old 05/23/2011, 03:41   #10
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Just because you're learning how to code finally doesn't mean you should release everything you learn =|
Spirited42 is offline  
Old 05/23/2011, 04:25   #11
 
elite*gold: 0
Join Date: Feb 2011
Posts: 46
Received Thanks: 1
Quote:
Originally Posted by Spirited View Post
Just because you're learning how to code finally doesn't mean you should release everything you learn =|
Hi,

This is my first release, so.."everything" I learned I haven't made something to release, just 1 thing.
xElement is offline  
Old 05/23/2011, 06:42   #12
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by xElement View Post
Hi,

This is my first release, so.."everything" I learned I haven't made something to release, just 1 thing.
I guess it's hard to explain what i mean, but what I should say is that I know you want to learn more about C#, but some things aren't really worth your time releasing. Like this should be common sense to everyone here. It's not... which is bad... but it should be. You should focus on bigger things than uploading everything you learn.
Spirited42 is offline  
Reply


Similar Threads Similar Threads
Homepage mit Regi,Rangliste,Password ändern,Password vergessen
04/06/2010 - Metin2 Private Server - 2 Replies
Hallo kann mir jemand diese Homepage http://www.elitepvpers.com/forum/metin2-pserver-gui des-strategies/451847-homepage-release-exklusiv-de sign-ranking-etc-etc.html ändern damit dort nurnoch Regiseite,Rangliste,Password ändern,Password vergesen machen kann wäre sehr nett thx ist klar



All times are GMT +2. The time now is 18:47.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.