View previous topic :: View next topic |
Author |
Message |
Starter_But Advanced Cheater Reputation: 0
Joined: 26 Oct 2021 Posts: 53
|
Posted: Sun Apr 10, 2022 3:53 am Post subject: cheat control |
|
|
I have a coach and I need to do it.to check the version of the cheat engine, the type of operating system and the name of the computer (please explain what needs to be done, I don't understand much about it)
and I would also like to know how to do this so that if all the conditions were correct, the password was changed after a day (that is, a day passed and the password was changed to another one)
|
|
Back to top |
|
|
HexaG0n Advanced Cheater Reputation: 0
Joined: 29 Mar 2021 Posts: 64
|
Posted: Sun Apr 10, 2022 4:08 am Post subject: |
|
|
getCEVersion = get cheat engines version
os.getenv('USERNAME') = get computer name
os.getenv('OS') = get the current operating system type
|
|
Back to top |
|
|
Starter_But Advanced Cheater Reputation: 0
Joined: 26 Oct 2021 Posts: 53
|
Posted: Sun Apr 10, 2022 4:34 am Post subject: |
|
|
thanks
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1251
|
Posted: Sun Apr 10, 2022 4:36 am Post subject: |
|
|
( Some queries may differ depending on PC status. )
Code: | version = getCEVersion()
--print(version)
RequiredCEVersion=7.4
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
local answer = messageDialog("You are using an old version!\nWould you like to download the current version\nfrom the Cheat Engine site?", mtWarning, mbYes, mbNo)
if answer == mrYes then
shellExecute("https://www.cheatengine.org/")
closeCE()
return caFree()
else
closeCE()
return caFree()
end
end |
--------------------------------------------
Code: | local usrID
function UserID()
local function all_trim(s)
return s:match"^%s*(.*)":match"(.-)%s*$"
end
local fh = assert(io.popen'wmic csproduct get uuid')
result = fh:read'*a'
fh:close()
result = string.gsub(result,'UUID',"")
result = all_trim(result)
rst = result:gsub('%a',''):gsub('%p','')
return rst
end
usrID=UserID()
print(usrID) |
------------------------------------------
Code: | function systemTarget()
local arch
local res=""
if (os.getenv"os" or ""):match"^Windows" then
res=res.."Windows"
arch = os.getenv"PROCESSOR_ARCHITECTURE"
else
res=res.."Linux"
arch = io.popen"uname -m":read"*a"
end
if (arch or ""):match"64" then
res=res.." 64-bit"
else
res=res.." 32-bit"
end
return res
end
sys=systemTarget()
print(sys) |
Or check the link in my signature to test similar steps.
_________________
|
|
Back to top |
|
|
Starter_But Advanced Cheater Reputation: 0
Joined: 26 Oct 2021 Posts: 53
|
Posted: Sun Apr 10, 2022 4:43 am Post subject: |
|
|
AylinCE wrote: | ( Some queries may differ depending on PC status. )
Code: | version = getCEVersion()
--print(version)
RequiredCEVersion=7.4
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
local answer = messageDialog("You are using an old version!\nWould you like to download the current version\nfrom the Cheat Engine site?", mtWarning, mbYes, mbNo)
if answer == mrYes then
shellExecute("https://www.cheatengine.org/")
closeCE()
return caFree()
else
closeCE()
return caFree()
end
end |
--------------------------------------------
Code: | local usrID
function UserID()
local function all_trim(s)
return s:match"^%s*(.*)":match"(.-)%s*$"
end
local fh = assert(io.popen'wmic csproduct get uuid')
result = fh:read'*a'
fh:close()
result = string.gsub(result,'UUID',"")
result = all_trim(result)
rst = result:gsub('%a',''):gsub('%p','')
return rst
end
usrID=UserID()
print(usrID) |
------------------------------------------
Code: | function systemTarget()
local arch
local res=""
if (os.getenv"os" or ""):match"^Windows" then
res=res.."Windows"
arch = os.getenv"PROCESSOR_ARCHITECTURE"
else
res=res.."Linux"
arch = io.popen"uname -m":read"*a"
end
if (arch or ""):match"64" then
res=res.." 64-bit"
else
res=res.." 32-bit"
end
return res
end
sys=systemTarget()
print(sys) |
Or check the link in my signature to test similar steps. |
Thank you for the answer, but please explain what it means
--------------------------------------------
Code: | local usrID
function UserID()
local function all_trim(s)
return s:match"^%s*(.*)":match"(.-)%s*$"
end
local fh = assert(io.popen'wmic csproduct get uuid')
result = fh:read'*a'
fh:close()
result = string.gsub(result,'UUID',"")
result = all_trim(result)
rst = result:gsub('%a',''):gsub('%p','')
return rst
end
usrID=UserID()
print(usrID) |
------------------------------------------
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1251
|
Posted: Sun Apr 10, 2022 5:15 am Post subject: |
|
|
Starter_But wrote: |
Thank you for the answer, but please explain what it means
--------------------------------------------
Code: | local usrID
function UserID()
local function all_trim(s)
return s:match"^%s*(.*)":match"(.-)%s*$"
end
local fh = assert(io.popen'wmic csproduct get uuid')
result = fh:read'*a'
fh:close()
result = string.gsub(result,'UUID',"")
result = all_trim(result)
rst = result:gsub('%a',''):gsub('%p','')
return rst
end
usrID=UserID()
print(usrID) |
------------------------------------------ |
AylinCE wrote: |
Or check the link in my signature to test similar steps. |
_________________
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Sun Apr 10, 2022 5:29 am Post subject: |
|
|
Code: |
function UserID()
-- Internal function to trim whitespace
local function all_trim(s)
return s:match"^%s*(.*)":match"(.-)%s*$"
end
-- Use powershell/terminal to find the UUID via the command
-- wmic csproduct get
local fh = assert(io.popen'wmic csproduct get uuid')
-- Open the result handle as read with the flag *a which means all
result = fh:read'*a'
-- Close the file handle
fh:close()
-- Remove the text 'UUID' from the result
result = string.gsub(result, 'UUID', "")
-- Trim all whitespace from the result
result = all_trim(result)
-- Some other text manipulation
rst = result:gsub('%a',''):gsub('%p','')
return rst
end
print(UserID())
|
Just explains what Aylin's code does. Also removed some redundancies .
|
|
Back to top |
|
|
|