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 


Lua Script Authentication

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Snytex
How do I cheat?
Reputation: 0

Joined: 08 Feb 2023
Posts: 1

PostPosted: Tue Feb 21, 2023 11:30 am    Post subject: Lua Script Authentication Reply with quote

Hey I was wondering how to protect a CE lua script with authentication. Now how would I do that tho? I know I have to use LuaSocket but can someone explain me how please? I'd rly appreciate it bc i dont wanna get my stuff leaked.
Back to top
View user's profile Send private message
H3IS3NB3RG
How do I cheat?
Reputation: 0

Joined: 22 Feb 2023
Posts: 3
Location: 1600 Amphitheatre Parkway in Mountain View, California, USA

PostPosted: Wed Feb 22, 2023 5:49 am    Post subject: Reply with quote

is there any new update on this?
_________________
H3IS3NB3RG
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Wed Feb 22, 2023 8:42 pm    Post subject: Reply with quote

Try to search 'lua auth' or 'Lua NGINX' on google.
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
H3IS3NB3RG
How do I cheat?
Reputation: 0

Joined: 22 Feb 2023
Posts: 3
Location: 1600 Amphitheatre Parkway in Mountain View, California, USA

PostPosted: Thu Feb 23, 2023 6:14 am    Post subject: Reply with quote

The main problem is that i've already done it and tried to implement the functionality with the
Code:
 getInternet("ce")
function and it worked but i wanna full power over my HTTPS requests and LuaSockets only support HTTP. I can't find the "LuaSec" Module for making HTTPS requests in CE :"((
_________________
H3IS3NB3RG
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Thu Feb 23, 2023 8:38 am    Post subject: Reply with quote

Code:
getInternet().getURL(link)


use;

Code:
function LoadUrl(link)
  int=getInternet()
  s=int.getURL(link)
  int.destroy()
  --print(s)
  load(s)()
end

LoadUrl("https://docs.google.com/uc?export=download&id=1e8HRmcHc0Pju3O-zt3WrNKNW4QQ-VUjQ")
--http://cheatengine.org/examplescript.lua

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Thu Feb 23, 2023 8:25 pm    Post subject: Reply with quote

H3IS3NB3RG wrote:
The main problem is that i've already done it and tried to implement the functionality with the
Code:
 getInternet("ce")
function and it worked but i wanna full power over my HTTPS requests and LuaSockets only support HTTP. I can't find the "LuaSec" Module for making HTTPS requests in CE :"((



Check this one for luasec :
https://github.com/brunoos/luasec



A more modern solution is to use lua-http: https://github.com/daurnimator/lua-http

It comes with a luasocket/luasec compatible interface.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
H3IS3NB3RG
How do I cheat?
Reputation: 0

Joined: 22 Feb 2023
Posts: 3
Location: 1600 Amphitheatre Parkway in Mountain View, California, USA

PostPosted: Fri Feb 24, 2023 9:10 am    Post subject: Reply with quote

How can I add it for the Cheat Engine?
_________________
H3IS3NB3RG
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Fri Feb 24, 2023 8:07 pm    Post subject: Reply with quote

H3IS3NB3RG wrote:
How can I add it for the Cheat Engine?



Luasec :

First :

On Windows:
- Use the Visual C++ project to compile the library.
- Copy the 'ssl.lua' file to some place in your LUA_PATH.
- Copy the 'ssl.dll' file to some place in your LUA_CPATH.
- Create a directory 'ssl' in your LUA_PATH and copy 'https.lua' to it.

On CE:
- Copy luasec.dll / luasocket files to CE Path/clibs64 or clibs32 (which one the CE version used)
- Copy the 'ssl.lua' file to some place in your CE Path or CE clibs path
- Copy the 'ssl.dll' file to some place in your CE Path or CE clibs path
- Copy or create 'ssl' in your CE Path or CE clibs path and copy 'https.lua' to it.


Second :

Add to your script.

Code:
if cheatEngineIs64Bit() then
  package.cpath=package.cpath..[[;.\clibs64\?.dll]]
else
  package.cpath=package.cpath..[[;.\clibs32\?.dll]]
end


Then continue with your script else.


You can download compiled Luasec / ssl (version 0.5) for from this site :
http://50.116.63.25/public/LuaSec-Binaries/windows/

NoteL
I don;t know if ssl should work with CE 7.5 or Lua 5.3 or above. Never test it yet.

_________________
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 Lua Scripting 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 can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites