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 


[Dll] Lixus Plugin

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
_Iuri
Newbie cheater
Reputation: 0

Joined: 08 Jul 2021
Posts: 13

PostPosted: Sat Jul 10, 2021 7:05 pm    Post subject: [Dll] Lixus Plugin Reply with quote

Hi everyone, this is my first post in this forum.

Well, getting to the point. I wrote a DLL library for CheatEngine that add some utilities for Lua Programmers. This born of my need of specific functions that would they be very difficult to implement in pure CE Lua.

The library was written with FreeBasic and tested with CE 7.2, the docs are in the Zip file.

Zip Url and Password: *Attached file* (i can't submit .zip nor put url's)

Instalation guide:
1 - Download
2 - Unzip Lixus.dll at "C:\Program Files\Cheat Engine 7.2\clibs32" or C:\Program Files\Cheat Engine 7.2\clibs64"
3 - Open CE.
4 - Settings > Plugins > Add New
5 - Find and Found Lixus
6 - Click his checkbox > Ok

I will updating the library and will free the source when get bored Embarassed
I hope it helps you Wink

The next is an example of simple hooking with Lixus, this get the packets received with WSARecv.

Code:
fuckAntiDebugger() -- Just in case...

local WSABUFSize = 8
local PtrSizes = 4

function WSABUFToTable(address,count)
    local i
    local ret = {}

    for i = 0, (count - 1) do
        local wsabufitem = {}
        address = address + WSABUFSize * i
        wsabufitem.size = readInteger(address+0)
        wsabufitem.bufferptr = readInteger(address+4)
        wsabufitem.buffer = readString(wsabufitem.bufferptr,wsabufitem.size)
        table.insert(ret,wsabufitem)
    end

    return ret
end

hook("WS2_32.WSARecv",function(s,lpBuffers,dwBufferCount,lpNumberOfBytesRecvd,lpFlags,lpOverlapped,lpCompletionRoutine)
    local buffers = WSABUFToTable(lpBuffers,dwBufferCount)
    print("WS2_32.WSARecv",table.tostring(buffers))
end)



url.lua
 Description:

Download
 Filename:  url.lua
 Filesize:  85 Bytes
 Downloaded:  277 Time(s)

Back to top
View user's profile Send private message
_Iuri
Newbie cheater
Reputation: 0

Joined: 08 Jul 2021
Posts: 13

PostPosted: Wed Jul 14, 2021 9:10 pm    Post subject: New Release Reply with quote

Hi everyone, today i brought a new release of Lixus, this update fix some bugs and includes two new functions for the CE Lua programmers.

New functions:
Code:
getCurrentCT():string Return the current CT file opened by CheatEngine

include(scriptname):any Like "require" statement, but works with Scripts saved with CheatEngine



url.lua
 Description:
"include" statement img example: https://prnt.sc/1bac6wm

Download
 Filename:  url.lua
 Filesize:  213 Bytes
 Downloaded:  266 Time(s)

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 Source -> Plugin development 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