Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Update 2 (stackframe changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
plusgiant5 committed Mar 30, 2023
1 parent 84f4c74 commit e74a468
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions TaaprWare V3/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <stdio.h>
#include <iostream>

#include <Luau\BytecodeBuilder.h>
#include <Luau\Compiler.h>
#include "include\Luau\BytecodeBuilder.h"
#include "include\Luau\Compiler.h"

#include "roblox.h"
#include "luavm_load_hook.h"
Expand Down
16 changes: 8 additions & 8 deletions TaaprWare V3/roblox.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ const std::string dummy_bytecode = "\x1B\x7B\x56\x24\xA3\xCC\xB8\xB9\xB9\xC5\x73
const uintptr_t base = reinterpret_cast<uintptr_t>(GetModuleHandle(NULL));

namespace addresses {
const uintptr_t getscheduler = base + 0x73E970;
const uintptr_t task_defer = base + 0x3ED4E0; // This could be any function that pops a function from the Luau stack and calls it. Defer is one of them. Also note that task.defer silently logs suspicious calls
const uintptr_t luavm_load = base + 0x3743E0;
const uintptr_t luavm_load_bytecode_hook = base + 0x377540;
const uintptr_t luavm_load_hashcheck_hook = base + 0x377514;
const uintptr_t getscheduler = base + 0x730C90;
const uintptr_t task_defer = base + 0x3D6410; // This could be any function that pops a function from the Luau stack and calls it. Defer is one of them. Also note that task.defer silently logs suspicious calls
const uintptr_t luavm_load = base + 0x35B900;
const uintptr_t luavm_load_bytecode_hook = base + 0x35EAE0;
const uintptr_t luavm_load_hashcheck_hook = base + 0x35EAB4;
}

namespace offsets {
namespace scriptcontext {
constexpr uintptr_t get_scriptstate(uintptr_t scriptcontext) {
return scriptcontext + 0xEC - *(uintptr_t *)(scriptcontext + 0xEC); // Every encryption changes every week
return *(uintptr_t*)(scriptcontext + 0xEC) - (scriptcontext + 0xEC); // Every encryption changes every week
}
}
namespace state {
constexpr int top = 0x14; // Luau offsets change every week
constexpr int top = 0x8; // Luau offsets change every week
}
// These only change when roblox makes changes to luavm_load
// Find them using your disassembler
namespace luavm_load_stackframe {
// Because I can't type the whole namespace paths in inline assembly
#define offsets__luavm_load_stackframe__bytecode -0x15C
#define offsets__luavm_load_stackframe__bytecode -0x164
#define offsets__luavm_load_stackframe__bytecode_len -0x78
}
}
Expand Down

0 comments on commit e74a468

Please sign in to comment.