Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Script obfuscated with strong preset is always failing to execute inside Roblox environment! #163

Open
Infraction7 opened this issue Feb 24, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Infraction7
Copy link

So the bug is pretty weird so when trying to run obfuscated with strong preset script in roblox env it fails with error: attempt to call a nil value

Steps to reproduce:

  1. Obfuscate anything to run in roblox using strong preset (i used CLI)
  2. Place obtained script to a script in roblox studio and publish place then go to roblox serer
  3. Open console and you shall see an error

Screenshot: [Host]

Source script that is being obfuscated: (don't mind im obfuscating random things that shouldn't be obfuscated im just playing around)

local Scripts = game:GetService("ServerScriptService")["Server"]

for _, module in pairs(Scripts:GetChildren()) do
	if module:IsA("ModuleScript") then
		task.spawn(require(module))
	end
end
@Infraction7 Infraction7 added the bug Something isn't working label Feb 24, 2024
@SpinnySpiwal
Copy link
Contributor

me when vm antitamper

@9382
Copy link
Contributor

9382 commented Apr 22, 2024

To be specific, the AntiTamper step (this has nothing to do with the VM) relies on debug.getinfo, which doesn't exist in the LuaU library. LuaU does have debug.info, which works slightly differently. I might make a PR soon to support this difference

@9382
Copy link
Contributor

9382 commented Apr 22, 2024

Turns out fixing this is harder than I thought, since AntiTamper will avoid hard erroring if debug.sethook doesn't exist, but requires it to exist so that we don't become invalid anwyays. We should probably either just not try specific anti tamper logic if missing the functions it depends on or check beforehand and give a clear error message if missing stuff to avoid future issues like these

@SpinnySpiwal
Copy link
Contributor

SpinnySpiwal commented Jul 29, 2024

no because that opens a loophole to bypass it

@levno-710
Copy link
Member

Adding the --LuaU command line option should in theory disable the parts of anti-tamper, that are not compatible with Roblox LuaU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants