0% found this document useful (0 votes)
137 views1 page

WH Script

The document contains code snippets in Lua and AutoIt that write zeros to memory addresses related to a game called "Cabalmain.exe" between addresses 0x40814 and 0x3ffff, likely to enable wallhacks in the game. The Lua script defines a function called WallhackClick that performs the memory writes. The AutoIt script uses API functions to open the game process, find the base address, read an integer to calculate the start address, and write zeros to the memory addresses in a loop.

Uploaded by

kapode kaloka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
137 views1 page

WH Script

The document contains code snippets in Lua and AutoIt that write zeros to memory addresses related to a game called "Cabalmain.exe" between addresses 0x40814 and 0x3ffff, likely to enable wallhacks in the game. The Lua script defines a function called WallhackClick that performs the memory writes. The AutoIt script uses API functions to open the game process, find the base address, read an integer to calculate the start address, and write zeros to the memory addresses in a loop.

Uploaded by

kapode kaloka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

LUA SCRIPT

//////////////////////////////////////////////
start=readInteger("107BF80")+0x40814
for i=0,0x3ffff,4 do
writeBytes(start+i,0)
end
///////////////////////////////////////////

function WallhackClick(sender)
start=readInteger("cabalmain.exe+BB2670")+0x40814
for i=0,0x3ffff,4 do
writeBytes(start+i,0)
end
end

////////////////////////////////////////////

AUTOIT

SetPrivilege("SeDebugPrivilege", 1)
#include <NomadMemory.au3>
Global $PID = ProcessExists('Cabalmain.exe')
Global $proc=_MemoryOpen($PID)
Global $cabalmain = _MemoryModuleGetBaseAddress($PID,"Cabalmain.exe")

(...)

Func _setwallhack()
$wh=_MemoryRead($cabalmain+0xC7BF80,$proc,"DWORD")+0x40814;
$test=_MemoryRead($wh,$proc,"DWORD")
For $i=$wh to $wh+0x3ffff step 4
_MemoryWrite($i,$proc,0,"DWORD")
Next
EndFunc

You might also like