Skip to content
New issue

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

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

Already on GitHub? # to your account

Optimise logcheck #1386

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions MainModule/Client/Plugins/Anti_Cheat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ return function(Vargs)
local findService = service.DataModel.FindService
local lastLogOutput = os.clock()
local spoofedHumanoidCheck = Instance.new("Humanoid")
local lastLogIndex = 0

local lookFor = {
"current identity is [0789]";
Expand Down Expand Up @@ -668,8 +669,6 @@ return function(Vargs)
end

--// Check Log History
--// TEMP DISABLED WHILE INVESTIGATING LAG SOURCE
--[[
local Logs = service.LogService.GetLogHistory(service.LogService)
local rawLogService = service.UnWrap(service.LogService)
local First = Logs[1]
Expand Down Expand Up @@ -707,12 +706,13 @@ return function(Vargs)
then
Detected("kick", "Bypass detected 0x48248")
else
for _, v in ipairs(Logs) do
for _, v in ipairs(Logs), Logs, lastLogIndex do
if check(v.message) then
Detected("crash", "Exploit detected; "..v.message)
end
end
end--]]
lastLogIndex = #Logs
end

--// Check Loadstring
local ran, _ = pcall(function()
Expand Down
Loading