Universal Script 📌
5.9k Views
21 Executions

Hookfunction dumper

Universal Script 📌
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Hookfunctions hookfunction to recreate the orginal hookfunction basically if you do hookfunction(request, newcclosure(function(lol) return "skibidi" end)) it will print local hf1; hf1 = hookfunction(request, newcclosure(function(arg1) -- Constants : -- C_1_ = "skibidi" return hf1(arg1) end))

View Raw
local a={}local b={}local c=0;local d,e=clonefunction(hookfunction),clonefunction(newcclosure)local f=function(g)for h,i in pairs(getmetatable(getfenv()))do for h,i in pairs(i)do if i==g then return h end end end end;local function j(k)if k==nil then k=1 end;local l={}for h=1,k do table.insert(l,"arg"..h)end;return table.concat(l,", ")end;a.newcclosure=clonefunction(newcclosure)local m;m=d(newcclosure,e(function(g)b[tostring(c)]=g;return m(g)end))a.hookfunction=clonefunction(hookfunction)local n;n=d(hookfunction,e(function(o,p)local q="hf"..tostring(c)local r=f(o)or"unknown_function"local s=iscclosure(p)local t=debug.getinfo(p)or{}local u="nil"local v=tonumber(t.nparams or t.numparams or 1)local l=j(v)if s==false then local w={}for h,i in ipairs(debug.getconstants(p))do table.insert(w,string.format("-- C_%d = %s",h,typeof(i)=="string"and string.format("%q",i)or tostring(i)))end;u=string.format([[function(%s)
      -- Constants :
      %s
      return %s(...)
    end]],l,table.concat(w,"\n      "),q)end;if s==true then local l=j(tonumber(debug.getinfo(b[tostring(c)]).numparams))local x={}for h,i in ipairs(debug.getconstants(b[tostring(c)]))do table.insert(x,string.format("-- C_%d = %s",h,typeof(i)=="string"and string.format("%q",i)or tostring(i)))end;u=string.format([[newcclosure(function(%s)
      -- Constants :
      %s
      return %s(%s)
    end)]],l,table.concat(x,"\n      "),q,l)end;print(string.format([[
    -- Dumped hookfunction
    local %s; %s = hookfunction(%s, %s)
    ]],q,q,r,u))c=c+1;return n(o,p)end))


Comments

4
Log in to join the conversation. Login
v1nnz's profile picture
v1nnz1 year ago

omg I no understand I'm just too dumb

3
UnnesscaryInventions's profile picture
UnnesscaryInventionsUploader1 year ago

no

1
itsradbruh's profile picture
itsradbruh1 year ago

uh so u hook what u already hooked?

1
zxcv's profile picture
zxcv1 year ago

hook function cool, id choose dex explorer to dump

1

Tags

More universal scripts

See all
Script hub
29.4k
92.0k
2 weeks ago
Key System

Script hub

#7 this week

Verified script badgeArcane Hub | 125+ Games & 4000+ Features

Script hub
138.0k
417.6k
9 months ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System

Script hub
3.9M
964.7k
1 year ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 20+ supported Games

Script hub
126
9
2 days ago
Key System
Paid
Script hub
3.0M
14.6M
3 years ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM - MM2, FTF, Forsaken, etc.

Script hub
391
132
2 days ago
Key System