Skip to content

Better Antitamper, EncStrings & Wrapinfunction#225

Open
Solarauser123 wants to merge 3 commits intoprometheus-lua:masterfrom
Solarauser123:master
Open

Better Antitamper, EncStrings & Wrapinfunction#225
Solarauser123 wants to merge 3 commits intoprometheus-lua:masterfrom
Solarauser123:master

Conversation

@Solarauser123
Copy link
Copy Markdown

a couple more checks, cleaner code, and better performance

local containerFuncCheck = pcall(function()
local testFunc = function() end;
if debug and debug.getinfo then
local info = debug.getinfo(testFunc);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be guarded by self.UseDebug. Then it should be made to fail, if debug is not available

end
valid = valid and c >= 2;

local elapsedTime = (os.clock and os.clock() or os.time()) - startTime;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure, whether checking elapsed time is a good idea. If the obfuscated script runs, while the computer is doing other heavy calculations (e.g. a Game), the script might overflow the threshold, even though there was no tamper

}, scope)

else
return Ast.Block({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as mode 1. I like the Idea of having multiple modes, but the third one should be removed

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can edit it a bit if you want, for me this just worked better so yea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants