Skip to content

Commit

Permalink
Added the original print function to the client table
Browse files Browse the repository at this point in the history
Used to print messages without :: Adonis :: such as the new log bypass stuff
  • Loading branch information
Sceleratis committed Aug 6, 2021
1 parent e87442e commit 5dde6ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion MainModule/Client/Client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,19 @@ local function isModule(module)
end
end
end

local function logError(...)
warn("ERROR: ", ...)

if client and client.Remote then
client.Remote.Send("LogError", table.concat({...}, " "))
end
end
local oldPrint = print;
local print = function(...)
print(":: Adonis ::", ...)
oldPrint(":: Adonis ::", ...)
end

--[[
local warn = function(...)
warn(...)
Expand All @@ -117,6 +120,7 @@ local cPcall = function(func, ...)

return ran, err
end

local Pcall = function(func, ...)
local ran, err = pcall(func, ...)

Expand All @@ -126,9 +130,11 @@ local Pcall = function(func, ...)

return ran, err
end

local Routine = function(func, ...)
return coroutine.resume(coroutine.create(func), ...)
end

local Immutable = function(...)
local mut = coroutine.wrap(function(...)
while true do
Expand All @@ -138,6 +144,7 @@ local Immutable = function(...)
mut(...)
return mut
end

local player = game:GetService("Players").LocalPlayer
local Fire, Detected
local wrap = coroutine.wrap
Expand Down Expand Up @@ -229,6 +236,7 @@ client = setmetatable({
Pcall = Pcall;
cPcall = cPcall;
Routine = Routine;
OldPrint = oldPrint;
LogError = logError;
TestEvent = Instance.new("RemoteEvent");

Expand Down
6 changes: 3 additions & 3 deletions MainModule/Client/Core/Anti.lua
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ return function()
local Logs = service.LogService:GetLogHistory()
local First = Logs[1]
if not First then
print(" ")
print(" ")
client.OldPrint(" ")
client.OldPrint(" ")
Logs = service.LogService:GetLogHistory()
First = Logs[1]
end
Expand All @@ -468,7 +468,7 @@ return function()
Detected("crash", "Bypass detected 5435345")
elseif #Logs <= 1 then
Detected("log", "Suspicious log amount detected 5435345")
print(" ") -- // To prevent the log amount check from firing every 10 seconds (Just to be safe)
client.OldPrint(" ") -- // To prevent the log amount check from firing every 10 seconds (Just to be safe)
end

for _, v in ipairs(Logs) do
Expand Down

0 comments on commit 5dde6ba

Please sign in to comment.