Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


User Authectication System Using CE Lua, VBNet and MySQL

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 33

Joined: 10 Apr 2015
Posts: 1280

PostPosted: Fri Feb 21, 2020 12:17 am    Post subject: User Authectication System Using CE Lua, VBNet and MySQL Reply with quote

Since some peoples really want to protect their hack trainer game scripts, on my principles the best way to protect the hack trainer game scripts is never shared it. Very simple. Laughing

Anyhow, if you must protect your hack trainer game scripts, this is an example from my project which call 'User Authentication System'.

What you need?. At least for this sample project.

- Visual Studio 2010 or later version
- NET Framework 4.5.2
- XAMPP Version PHP 7.4.2
Download: https://www.apachefriends.org/index.html
- MySQL Connector 8.0.19
Download: https://dev.mysql.com/downloads/connector/net/
- MySQL Connector ODBC 8.0.19 (optional)
Download : https://dev.mysql.com/downloads/connector/odbc/

Install all apps above on your computer and the first thing you must to do us to configure your XAMPP (SQL) connection. Learn how to installing XAMPP:

https://www.ionos.com/digitalguide/server/tools/xampp-tutorial-create-your-own-local-test-server/

And create your database using phpmyadmin:

http://webvaultwiki.com.au/Default.aspx?Page=Create-Mysql-Database-User-Phpmyadmin&NS=&AspxAutoDetectCookieSupport=1

https://skillforge.com/how-to-create-a-database-using-phpmyadmin-xampp/

Next, you can start a new visual basic windows app project on your visual studio and build your:

1. User Login Form
2. User Register Form
3. You Game Hack Trainer (made using CE Lua Script)

IMPORTANT:
You need to add a library 'MySQL.Data.dll' to your visual studio project by:
- On your project solution name, right-click and choose -> Add -> Reference
- Input 'MySQL.Data' on 'Search Box'
- And choose 'MySQL.Data' and click OK
(Remember these steps doing after you installed all apps needed as shown above)

For your game hack trainer when you made it you need considering to encoding your hack scripts, save it as CETrainer (suggested as an executable file) and in case the game hack trainer has embedded as a resource file, then you need to delete it when user closes the game hack trainer by adding this CE Lua script on your script.

Code:
UDF1.OnClose = function()      -- your trainer form name here
 p_path = TrainerOrigin or getMainForm()
 os.execute("taskkill /F /IM VCL-LoginSystem.exe")   --- your project name here
 os.execute("taskkill /F /IM TestVBCall.EXE")  --- your game hack trainer name here
 os.remove(p_path.."\\TestVBCall.EXE")  --- your game hack trainer name here
 closeCE()
 return caFree
end



What needs to consider?.
- You need to decide for your game hack trainer should as an embedded file or store in cloud storage (URL) which will call by the project.
- You need search for better free host/server that will use as your database storage
- Consider making your own website that use to store your apps and launch your users authentication system, which can build by PHP script and MySQL


Here is download link for example project:

https://mega.nz/#!GkNBxaJS!Kr1tG-BY-TE1qBHmNXGK-CKO35AHZGx5IVTliPiTXzc

(copy paste the link above to oyur browser)

And this is demo video:

https://youtu.be/hrRtY1Oub0c

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Aylin
Grandmaster Cheater
Reputation: 8

Joined: 16 Feb 2017
Posts: 554

PostPosted: Sat Feb 22, 2020 12:06 am    Post subject: Reply with quote

Thanks for the project, my friend.
But this project eliminates CE.
Dealing with all these; It designs the current Trainer not with CE, but with C # or C ++.
I tried before, starting with C # and Login panel.
However, CE is not required if C # or C ++ (or VB).
(The next step is to create Traineri with VB)
Also, your level looks high with this project,
It seems difficult to jump from CE to VB, even if you share the ready-made project.
NOTE: This method does not protect the Trainer. Anyone can log in with the same UserName and Password. Wink
Thanks for sharing.

_________________
Hi Hitler Take control of your trainer
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 33

Joined: 10 Apr 2015
Posts: 1280

PostPosted: Sat Feb 22, 2020 6:08 am    Post subject: Reply with quote

Aylin wrote:

NOTE: This method does not protect the Trainer. Anyone can log in with the same UserName and Password. Wink


This project doesn't mean to protect the game trainers. It's an example of how to managing the user database. Of course, we can set some keys to check user authentication before they are able to access the main application. Besides, this example project usually made using PHP, CSS, and SQL for a website.

I wrote on the first post:

"What needs to consider?.
- You need to decide for your game hack trainer should as an embedded file or store in cloud storage (URL) which will call by the project...."

Of course, before you put your app/game trainer as an embedded resource file or in cloud storage somewhere, you need to encrypt your app/game trainer script, just if you don't want people to see your scripts.
If you plan to hard protect your script, then you don't really need a user authentication system, much better if you focus to reverse engineering system field.

You can make your game trainer with many programming languages. Before doing that the first thing you need to know is 'whether the programming language you use has the ability to do memory editing'.

Thanks and good luck

EDIT:
Try run the attached Lua script and also try to reverse it to the original script (example encrypting)

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites