[REL] Password Protection

05/20/2011 06:04 xElement#1
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
05/20/2011 11:22 |NeoX#2
useless, unsafe, crap.

sorry.
05/20/2011 13:08 iStefan#3
Useless garbage + You don't need another void for it.
05/20/2011 13:34 _Emme_#4
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.
05/20/2011 17:36 _DreadNought_#5
Then pack it.

You should make it check an online database with IP's and check the Computer networking IP.
05/20/2011 17:41 Yup Stigs#6
I could understand it on something like Impulse's source or p4n's, but on lotf it's much rather useless..
05/20/2011 20:21 iStefan#7
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!
05/22/2011 20:41 BaussHacker#8
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.
05/22/2011 23:44 Korvacs#9
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.
05/23/2011 03:41 Spirited42#10
Just because you're learning how to code finally doesn't mean you should release everything you learn =|
05/23/2011 04:25 xElement#11
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.
05/23/2011 06:42 Spirited42#12
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.