Original post · 2y ago#1
70% method for finding out if an obfuscated script has a grabber.
How to use:
Just add it to the first line of any .lua file.
How it works:
Basically, it disables some functions and prints the parameters of these functions.
These specific functions may or may not call malicious code hosted somewhere, or hidden within the script folder.
However, as mentioned, it is 70% effective as there are several other ways.
Note:
To add more functions, just follow the same pattern.
[ATTACH type="full" alt="image.jpg"]15069[/ATTACH]
-------------------------------------------------------------------------------------------------------------
How to use:
Just add it to the first line of any .lua file.
How it works:
Basically, it disables some functions and prints the parameters of these functions.
These specific functions may or may not call malicious code hosted somewhere, or hidden within the script folder.
However, as mentioned, it is 70% effective as there are several other ways.
Note:
To add more functions, just follow the same pattern.
[ATTACH type="full" alt="image.jpg"]15069[/ATTACH]
-------------------------------------------------------------------------------------------------------------
function PerformHttpRequest(url, callback, method, data, headers)
print("PerformHttpRequest:")
print("URL:", url)
print("Callback:", callback)
print("Method:", method)
print("Data:", data)
print("Headers:", headers)
end
function SendWebhookMessage(webhook, message)
print("SendWebhookMessage:")
print("Webhook:", webhook)
print("Message:", message)
end
function CreateDui(link, x, y)
print("CreateDui:")
print("Link:", link)
print("X Coordinate:", x)
print("Y Coordinate:", y)
end
function loadstring(str, chunkname)
print("loadstring:")
print("String:", str)
print("Chunk Name:", chunkname)
end
function dofile(filename)
print("dofile:")
print("Filename:", filename)
end
function require(modname)
print("require:")
print("Module Name:", modname)
end
function loadfile(filename, mode, env)
print("loadfile:")
print("Filename:", filename)
print("Mode:", mode)
print("Environment:", env)
end
8 replies
[/JUSTIFY]
so i find it in VMS Spawn Selector in server/server.lua
in my opinion, replacing functions can interfere with the execution of the encrypted script, but its effectiveness depends on how the encrypted script was written and whether it makes use of the replaced functions.
I wouldn't risk trusting your home host like that, you have to use a VPS to test this.