Skip to content

Instantly share code, notes, and snippets.

View J1327's full-sized avatar

J1327

View GitHub Profile
@J1327
J1327 / QuickAssemblysearch.lua
Created September 19, 2025 19:58
Opencheattables.com
anonymous_Function = function(t, bool) -- local_convertByteTable_DecToHex -- x1327.Function[25](table,ToStringBoolean);
-- user lua table input , check if output to string
-- was posted in BIN OCT/F
if not t then
return
end
local output = {}
for i = 1, #t do
table.insert(output, string.format("%02X", t[i])) --- ...
end
@J1327
J1327 / isAddressAligned.lua
Last active September 20, 2025 13:34
moves up few times from address and moves back to origin address to check if address instruction will remain same.
function isAddressAligned( address )
local disassembledAdrStr = disassemble( address )
local PrimaryPreviousAddress = getPreviousOpcode( address )
local SecondaryPreviousAddress = getPreviousOpcode( PrimaryPreviousAddress )
-- should be enough for now.
local PrimaryBufferAddress = SecondaryPreviousAddress + getInstructionSize( SecondaryPreviousAddress )
local SecondaryBufferAddress = PrimaryBufferAddress + getInstructionSize( PrimaryBufferAddress )
Strings_v3W = registerCustomTypeLua("Wide-String", 0x1, function(...)
local h = {...}
return readString(h[#h], 255, true)
end, function()
end, false, true)
Strings_v3 = registerCustomTypeLua("String", 0x1, function(...)
local h = {...}
return readString(h[#h])
end, function(...)
end, false, true)
@J1327
J1327 / CallCommand.Lua
Last active May 18, 2025 19:17
cheat engine lua function that outputs better command line output
local function CallCommand(a)
local c = createStringlist()
local d = io.popen("2>&1 " .. a)
for e in d:lines() do
c.add(e)
end
return c.Text
end
@J1327
J1327 / TEdit_structures.lua
Created January 26, 2025 03:39
TEdit_structures.lua
for a = 1, #enumStructureForms() do
local b = enumStructureForms()[a]
for c = 0, b.getComponentCount() - 1 do
local d = b.getComponent(c)
if tostring(d.getClassName()) == "TEdit" then
d.setWidth(300)
end
end
end
@J1327
J1327 / Movable_bsnone.lua
Last active February 11, 2025 14:13
Cheat engine --> 🖤 --> opencheattables.com
local a = createForm()
a.setWidth(600)
a.setHeight(800)
a.Position = "poScreenCenter"
a.setBorderStyle(0)
local b = 0;
local c = 0;
local d = false;
function f_dragNow(e, f, g)
if d then
@J1327
J1327 / CET_Translator.lua
Created November 29, 2024 23:14
opencheattables.com
local function url_encode(str)
if str then
str = str:gsub("\n", "\r\n")
str = str:gsub("([^%w _%%%-%.~])", function(c)
return string.format("%%%02X", string.byte(c))
end)
str = str:gsub(" ", "+")
end
return str
@J1327
J1327 / heaplist.lua
Created October 22, 2024 09:46
heaplist celua
heapform = createForm()
heapform.setCaption("Heaplist v20241022124237") -- prev. was v20241021074232
heapform.setBorderStyle(2)
heapform.setSize(800, 600)
heapform.setPosition(getScreenHeight() / 2, getScreenHeight() / 2)
heaplist = createListView(heapform)
heaplist.RowSelect = true
heaplist.HideSelection = true
heaplist.ReadOnly = true
@J1327
J1327 / CheckProcess.lua
Created July 16, 2024 00:07
With CE built-in auto-attacher there was case there celua returns on already exited process from readInteger(process) as true While actually process is already quitted. No threads running or process exe exist in task manager.
function CheckProcess()
if readInteger(process) then
local u = createStringlist()
getThreadlist(u)
if u.Count > 1 then
return true, u.Count
else
return false
end
else
@J1327
J1327 / Win11PreviewVBox.txt
Last active December 30, 2024 14:35
Win11PreviewVBox
Even with HDD space, RAM, graphics and cores allocations still doesn't allow
install windows 11 on virtual box 7 + (with Secure boot / special OS checked)
In order to install preview, you need edit --> add to regedit following:
(SHIFT + F10 to display CMD during installation)
+--> .../System/Setup/Labconfig
(default)
ByPassSecureBootCheck 1 (DWORD)
ByPassRAMCheck 1 (DWORD)
ByPassTPMCheck 1 (DWORD)