Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 8:27 PM - YVL: you cant even fucking steal my source code
- 8:27 PM - YVL: because its not even on your client
- MONTHS AND MONTHS OF CAREFUL PLANNING FINALLY PAID OFF
- I PRESENT TO YOU THE "UNSTEALABLE" ANTICHEAT CREATED BY THE ONE AND ONLY YVL
- COUSTOM CODED FOR AFTERMATH GAMING TDM
- cobalt: tell him i dont care anymore
- cobalt: i was done with gmod a while ago
- cobalt: if he still has that grudge on me thats his problem
- cobalt: lmao i wish there was a date timestamp on those messages
- cobalt: that had to be like 4 or more months ago when i said that
- cobalt: long ago that i dont even remember it
- cobalt: thats the new source too, i remember updating one small thing like a couple weeks ago
- cobalt: so if it took him months to finally figure out how to get it (?) i guess thats a win on my part
- cobalt: even though it was a shitty anticheat and its very easy to steal the code for
- cobalt: holy shit the more i think about this the more im laughing at it
- cobalt: tell frost that made my day
- local _R = debug.getregistry()
- local _N = table.Copy( _G )
- function hook.Exists( type, value )
- local tab = hook.GetTable()
- for k, v in next, tab[ type ] do
- if k == value then
- return true
- end
- end
- return false
- end
- function concommand.Exists( type, value )
- local tab = concommand.GetTable()
- for k, v in next, tab do
- if k == value then
- return true
- end
- end
- return false
- end
- local function SendBan( message )
- net.Start( "SendBan" )
- net.WriteString( message )
- net.SendToServer()
- end
- local a_cheating = false
- local c_cheating = false
- local f_cheating = false
- hook.Add( "Think", "CheckConVars", function()
- local gcv_banned = false
- if debug.getinfo( GetConVar ).short_src ~= "[C]" then
- if gcv_banned then
- return
- end
- gcv_banned = true
- SendBan( "Overwriting GetConVar" )
- end
- local ggb_banned = false
- if debug.getinfo( GetGlobalBool ).short_src ~= "[C]" then
- if ggb_banned then
- return
- end
- ggb_banned = true
- SendBan( "Overwriting GetGlobalBool" )
- end
- local ascl = GetConVar( "sv_allowcslua" ):GetInt()
- if ascl and ascl ~= 0 then
- if a_cheating then
- return
- end
- if GetGlobalBool( "allowcslua" ) == false then
- a_cheating = true
- timer.Simple( 0.5, function()
- if GetGlobalBool( "allowcslua" ) == false then
- SendBan( "Forcing sv_allowcslua" )
- else
- a_cheating = false
- end
- end )
- end
- end
- local cheats = GetConVar( "sv_cheats" ):GetInt()
- if cheats and cheats ~= 0 then
- if c_cheating then
- return
- end
- if GetGlobalBool( "cheats" ) == false then
- c_cheating = true
- timer.Simple( 0.5, function()
- if GetGlobalBool( "cheats" ) == false then
- SendBan( "Forcing sv_cheats" )
- else
- c_cheating = false
- end
- end )
- end
- end
- local fr = GetConVar( "host_framerate" ):GetInt()
- if fr and fr ~= 0 then
- if f_cheating then
- return
- end
- f_cheating = true
- SendBan( "Forcing host_framerate" )
- end
- end )
- usermessage.Hook( "CheckHooks", function()
- if not hook.Exists( "Think", "CheckConVars" ) then
- SendBan( "Removing Clientside Hooks" )
- end
- end )
- usermessage.Hook( "CheckCookies", function()
- local c = cookie.GetString( "tdm_banned", "" )
- if c == "true" then
- SendBan( "Ban Evasion" )
- end
- end )
- local function isvalidfile( str )
- if string.find( str, "mad" ) or string.find( str, "fas2" ) or string.find( str, "wac" ) then
- return false
- end
- return true
- end
- local v_banned = false
- _R[ "CUserCmd" ][ "SetViewAngles" ] = function( ... )
- if v_banned then
- return
- end
- v_banned = true
- local fi = debug.getinfo( 2 ).short_src
- if isvalidfile( fi ) then
- SendBan( "Forbidden function call [SetViewAngles]" )
- end
- return _G[ "CUserCmd" ][ "SetViewAngles" ]( ... )
- end
- local sfm_banned = false
- _R[ "CUserCmd" ][ "SetForwardMove" ] = function( speed )
- if sfm_banned then
- return
- end
- sfm_banned = true
- local fi = debug.getinfo( 2 ).short_src
- if isvalidfile( fi ) then
- SendBan( "Forbidden function call [SetForwardMove]" )
- end
- return _G[ "CUserCmd" ][ "SetForwardMove" ]( speed )
- end
- local ssm_banned = false
- _R[ "CUserCmd" ][ "SetSideMove" ] = function( speed )
- if ssm_banned then
- return
- end
- ssm_banned = true
- local fi = debug.getinfo( 2 ).short_src
- if isvalidfile( fi ) then
- SendBan( "Forbidden function call [SetSideMove]" )
- end
- return _G[ "CUserCmd" ][ "SetSideMove" ]( speed )
- end
- local sum_banned = false
- _R[ "CUserCmd" ][ "SetUpMove" ] = function( speed )
- if sum_banned then
- return
- end
- sum_banned = true
- local fi = debug.getinfo( 2 ).short_src
- if isvalidfile( fi ) then
- SendBan( "Forbidden function call [SetUpMove]" )
- end
- return _G[ "CUserCmd" ][ "SetUpMove" ]( speed )
- end
- _G[ "RunString" ] = function( str )
- local fi = debug.getinfo( 2 ).short_src
- if isvalidfile( fi ) then
- SendBan( "Forbidden function call [RunString]" )
- end
- return _N.RunString( str )
- end
- _G[ "RunStringEx" ] = function( str, val )
- local fi = debug.getinfo( 2 ).short_src
- if isvalidfile( fi ) then
- SendBan( "Forbidden function call [RunStringEx]" )
- end
- return _N.RunStringEx( str, val )
- end
- _G[ "CompileString" ] = function( code, id, err )
- local fi = debug.getinfo( 2 ).short_src
- if isvalidfile( fi ) then
- SendBan( "Forbidden function call [CompileString]" )
- end
- SendBan( "Forbidden function call [CompileString]" )
- return _N.CompileString( code, id, err )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement