Think I found an easy fix for check 3.
Code:
for n in pairs(getfenv()) do ToList(n) end
1) Log before loading any hacks/bots
2) run again when warden calls Execute or GetText
3) diff both lists and search new values (really slow? dumped over 23100 values)
4) if found replace with junk string
5) run diff again, see if they created any new entries with that script, if so add to list 1
Improvements or any better idea?
Code:
local function IsDetected(text)
local _isDetected = false;
for n in pairs(getfenv()) do
if(n == text) then
_isDetected = true;
break;
end
end
if (_isDetected) then
ToConsole("DETECTED: YES")
else
ToConsole("DETECTED: NO")
end
end
IsDetected("script_grind"); --YES
IsDetected("youknownothings"); --NO
IsDetected("IsDetected"); --NO
way too slow... cant do in lua I guess
Code:
if gBaseTable == nil then
gBaseTable = {};
local tIndex = 0;
for n in pairs(getfenv()) do
gBaseTable[tIndex] = n;
tIndex = tIndex + 1;
end
ToConsole("SETUP DONE " .. tIndex);
else
for n in pairs(getfenv()) do
local _found = false;
for _index, _text in pairs(gBaseTable) do
if(n == _text) then
_found = true;
break;
end
end
if _found == false then
ToConsole("NEW " .. n);
end
end
end