Skip to content

Instantly share code, notes, and snippets.

View ZeroLP's full-sized avatar
🎯
Focusing

ZeroLP ZeroLP

🎯
Focusing
  • Australia
  • 05:09 (UTC +10:00)
View GitHub Profile
@ZeroLP
ZeroLP / old_league_stub_packman_bypass_asm.cpp
Created May 19, 2026 13:16
Some old league stub packman game function and control hooks bypass assembly code
__declspec(naked) void Stub_LOL_Control()
{
__asm
{
pushad
add ecx, ebx
//ONPROCESS START
mov edx, OnProcessSpell_Stub
cmp ecx, edx
@ZeroLP
ZeroLP / ReturnAddress.cs
Last active August 4, 2021 09:17
Get return address (x86 & x64)
static void Main(string[] args)
{
byte[] currentFuncAddrInstructions = new byte[]
{
#if x86
0x8B, 0x04, 0x24, //mov eax, [esp]
0xC3 //ret
#endif
#if AnyCPU
0x48, 0x8B, 0x04, 0x24, //mov rax, [rsp]
@ZeroLP
ZeroLP / shit.pde
Last active March 21, 2022 02:21
A very shit code to render grass based off of region marking - Comp1000 MQ
//Constructs a new vector with given x and y coordinates relative to the display.
//Often known as a Point.
public static class Vector2
{
public Vector2(int xCoord, int yCoord)
{
this.x = xCoord;
this.y = yCoord;
}