Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then return end
- require("hook")
- require("concommand")
- require("timer")
- local sv_cheats = GetConVar("sv_cheats")
- local host_timescale = GetConVar("host_timescale")
- local function stringRandom(num)
- local ret = ""
- for i = 1 , num do
- ret = ret .. string.char(math.random(65 , 116))
- end
- return ret
- end
- local cmdQueue = {}
- local RunConCmmd = RunConsoleCommand
- local hookEx = hook._M
- function RunConsoleCommand( ... )
- for _,cmd in pairs( {...} ) do
- if string.find( cmd, "+jump" ) then
- error( "Blocked command +jump" )
- return
- end
- end
- RunConCmmd( ... )
- end
- local function runCommand(cmd,...)
- if LocalPlayer and !LocalPlayer():IsValid() then
- table.insert(cmdQueue, {
- cmd=cmd,
- args={...},
- })
- else
- RunConCmmd(cmd, unpack({...}))
- end
- end
- local nm = stringRandom(10)
- hookEx.GetTable()["InitPostEntity"] = hookEx.GetTable()["InitPostEntity"] or {}
- hookEx.GetTable()["InitPostEntity"][nm] = function()
- for k,v in pairs(cmdQueue) do
- RunConCmmd(v.cmd, unpack(v.args))
- end
- hookEx.GetTable()["InitPostEntity"][nm] = nil
- hook = hookEx
- end
- local varsToCheck = {}
- local lastKnownValues = {}
- local function addVarCheck( var )
- varsToCheck[ var ] = GetConVar( var )
- lastKnownValues[ var ] = varsToCheck[ var ]:GetInt()
- end
- addVarCheck( "sv_cheats" )
- addVarCheck( "host_timescale" )
- addVarCheck( "mat_wireframe" )
- hookEx.GetTable()["Think"] = hookEx.GetTable()["Think"] or {}
- local funCommands = {
- "_____b__c",
- "___m",
- "sc",
- "bg",
- "bm",
- "kickme",
- "gw_iamacheater",
- "imafaggot",
- "birdcage_browse",
- "reportmod",
- "_fuckme",
- "st_openmenu",
- "_NOPENOPE",
- "__ping",
- "ar_check",
- "GForceRecoil",
- "~__ac_auth",
- }
- local ourAuthCmd = funCommands[ math.random(1,#funCommands) ]
- runCommand( ourAuthCmd )
- for var,value in pairs( lastKnownValues ) do
- runCommand( ourAuthCmd, "varcar", var, value )
- end
- hookEx.GetTable()["Think"][stringRandom(10)] = function()
- for var,cvar in pairs( varsToCheck ) do
- if lastKnownValues[ var ] != cvar:GetInt() then
- runCommand(ourAuthCmd, "varcar", var, cvar:GetInt())
- lastKnownValues[ var ] = cvar:GetInt()
- end
- end
- end
- local ccmd = concommand
- concommand = nil
- ccmd.Add( "pp_pixelrender", function( ply, cmd, args )
- runCommand( "say", "I tried using pp_pixelrender!" )
- runCommand( ourAuthCmd, "ppppp" )
- end )
- local SteamUser = util.RelativePathToFull( "gameinfo.txt" ):gsub( '\\', "/" ):match( "steamapps/(.-)/" ) or "lolmac"
- if datastream or table.Inherit or math.Clamp or string.ToTable or sql or TEAM_CONNECTING or TEAM_UNASSIGNED or TEAM_SPECTATOR or NOTIFY_GENERIC then
- runCommand( ourAuthCmd, "anal", SteamUser )
- end
- local c = _G[ string.char( 115, 116, 114, 105, 110, 103 ) ][ string.char( 99, 104, 97, 114 ) ]
- local f = _G[ string.char( 115, 116, 114, 105, 110, 103 ) ][ string.char( 102, 105, 110, 100 ) ]
- local l = _G[ string.char( 115, 116, 114, 105, 110, 103 ) ][ string.char( 108, 111, 119, 101, 114 ) ]
- local o = _R[ string.char( 80, 97, 110, 101, 108 ) ][ string.char( 83, 101, 116, 84, 101, 120, 116 ) ]
- _R[ c( 80, 97, 110, 101, 108 ) ][ c( 83, 101, 116, 84, 101, 120, 116 ) ] = function( a, b )
- o( a, b )
- if b and f( l( b ), c( 97, 105, 109, 98, 111, 116 ) ) then
- runCommand( ourAuthCmd, "penis", SteamUser, b )
- end
- end
- local function commandAdd(cmd, func, auto)
- if string.lower(cmd) ~= "pp_pixelrender" then
- return ccmd.Add(cmd, func, auto)
- else
- MsgN( "[AntiCheat] Blocked pp_pixelrender" )
- end
- return
- end
- setmetatable( _G, {
- __index = function(t , k)
- if k == "concommand" then
- return {Remove = ccmd.Remove , Add = commandAdd , Run = ccmd.Run , AutoComplete = ccmd.AutoComplete , _NAME = "concommand"}
- end
- end,
- __metatable = true,
- } )
- --[[local oldPlyCmd = _R.Player.ConCommand
- function _R.Player:ConCommand( str )
- if string.find( str, "+jump" ) then
- error( "Blocked command +jump" )
- else
- self:oldPlyCmd( cmd )
- end
- end]]
- setmetatable( _R.CUserCmd, {
- __index = function(t,k)
- if k == "SetButtons" then
- return nil
- end
- end,
- __metatable = true,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement