Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 21:35

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

Advertisement



How to connect to an online database?

Discussion on How to connect to an online database? within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2019
Posts: 10
Received Thanks: 1
How to connect to an online database?

Hi,
I'm developing a tool in c++ and I'm starting to develop the frontend in c# because I think it's easier and faster.
I would like to know how you create a login form that connect to an online database in which I put (id, password and expiring date) so I can sell my tool.
Or If there is an other method that you are using to solve this problem. I think in this forum there are some people who sell their hacks..
Thanks
Nickk98 is offline  
Old 09/09/2019, 23:14   #2
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,465
You'll need some kind of server-side backend to perform the authentication. A simple PHP script on a HTTP server can be enough; for example returning a simple 1 when valid, or a 0 when invalid.
Keep in mind that this simple example is easily bypassable.
But in theory, this is how authentication works.

I guess your question was aiming for actual implementation examples. I can't recommend any libraries for networking. I only know libcurl and boost asio (which is completely overkill for this task, if you're not using it already).

There are some things to consider when you're attempting to create an authentication mechanism that is not defeatable by any 5 y.o. fartnite kid.
Creating a hard-to-bypass authentication is pretty much kind of an art. Since the code runs on the users machine, there is (as current state of computer architecture) no way to create a 100% secure solution. Even creating a half-decent one can be time consuming.

There are several "ideas" I've came across in the past:

"Security" by obscurity:
Actually not secure at all
Theory: Create an secret algorithm to make sure the user can not easily emulate the server. Will only be pseudo-secure of a limited amount of time. Can range, depending on your popularity, from minutes to even years.

Always online:
Theory: Mandatory data (e. g. offsets, pattern, code) is retrieved from the server. Emulating will require more work.

Watermark:
Theory: Every customer gets a watermarked version of your hack. If someone shares his version of the hack, you can at least comprehend where the leak is.

BTW: If you are creating the authentication code in C# aswell, you can pretty much ignore everything I wrote before and just accept that anyone can bypass your protection by just throwing de4dot and a random decompiler on it.
florian0 is offline  
Reply


Similar Threads Similar Threads
Connect: Connect refused?
04/19/2011 - Metin2 Private Server - 9 Replies
Hallo com, Habe die SuFu benutz und auch einiges gefunden, doch dort steht immer nur: Du musst server neu machen, server down, nein server nicht down, du musst einfach neu sysinstall machen... Ich bin jetzt verwirtt also dieses Connect: Connect refused ist eine Fehlermeldung beim VPC. Also was kann ich jetzt genau machen? Danke :)
(TEST CONNECT) Traut sich das jemand zu (TEST CONNECT )
04/06/2010 - Metin2 Private Server - 9 Replies
Hey ´liebe´ Com .:rolleyes: Habe seit mehreren Wochen schon nen Pserver:D Und wollte mal sehen ob auch jemand anderes ´CONNECTEN´ kann.;) Traut sich das jemand zu ? :rolleyes: schreibt mich dann an :cool:
proplem (connect: connect refused)
02/20/2010 - Metin2 Private Server - 5 Replies
hi ich habe ein porplem wenn ich mein server starte steht als erstes 8 felher meldungen udn dan ungefähr 11 mal connect: connect refused dan dauert es aufeinmal voll lange bis ich mich einlogge
Connect: Connect Refused
11/14/2009 - Metin2 Private Server - 2 Replies
hey. habe gesehen das ein ehnliches tread gibt aber es passt nicht zu mir. Also wenn ich ./start mache (.-start) dan kommt bei mir ca 1000 mal dieses Connect: Connect Refused wenn ich dan z.B reboot schreiben will gehtz auch ned weil bevor ich das schnell eingetippt habe is wieder ein neues da und schreib es bei den Connect: Connect Refused dazu. Könnte mir jemand helfen? es bringt nichts den immer auszuschalten und dan wieder ein :(



All times are GMT +2. The time now is 21:35.


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.