Forums > lua >

[REL] Constant Dumper / Getsenv & Getgenv implementation for crappy exploits


New Reply

OpenGamerTips

aka H3x0R

Posts: 369

Threads: 39

Joined: Feb, 2020

Reputation: 5

Posted

getfenv(0).getgenv = function() return getfenv(0end
getgenv().getsenv = function(ScriptInstance)
    for i,v in pairs(debug.getregistry()) do
        if type(v) == "function" then
            if getfenv(v).script == ScriptInstance then
                return getfenv(v)
            end
        end
    end
end

 

local Environment = getsenv(game:GetService("Players").LocalPlayer.PlayerScripts.ChatScript-- getrenv for roblox env and getgenv for exploit
local Constants = {}
for Constant, Value in pairs(Environment) do
    table.insert(Constants, Constant)
    print("["..tostring(Constant).."] -> "..tostring(Value))
end

 

warn("Done! "..#Constants.." constants.")

here i wrote a crappy constant dumper bc im bored ill probably improve it
ur welcome exploit devs go and wrap that function bc idrc
here's proof it works lol: 

oh here's the decompiled script:


you see that function called SetCoreGuiChatConnections is in the logs as well in the script.

Hello, I am OpenGamerTips or H3x0R.

I code in Lua/C#

Skids will never learn.

simple_x

ゆい ひらさわ

Mention

Posts: 155

Threads: 7

Joined: Sep, 2019

Reputation: 2

Replied

vouch for contribution

probably won't use but nice

 

that lua syntax coloring tho o-o

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”

Hectique

Professional Skid

Mention

Posts: 1262

Threads: 171

Joined: Nov, 2019

Reputation: 10

Replied

vouch.

Content length must be 10-5000 chars

I am the PROFESSIONAL SKID.


New Reply