Page 1 of 8 123 ... LastLast
Results 1 to 15 of 111
  1. #1
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,007

    scripthook module

    So I threw this together today. A module that saves all clientside/shared scripts and adds a hook that lets you prevent scripts from loading.


    It isn't a traditional GMod hook. It loads a file and raw sets some global variables. _SCRIPT is the script itself. _SOURCE is the source of it (a file, RunString, SendLua, etc). This is what my 'hook' file looks like.

    Code:
    if (_SOURCE == "lua/autorun/client/msg.lua" or _SOURCE == "LuaCmd") then
    	return false
    end
    The global variables are destroyed after they're used. In the right hands, you could theoretically bypass any and every anti-cheat. Probably the most trouble you'll run into are anti-cheats that use net messages or concommands to communicate, in which case, you'll have to fool the server into thinking everything is A-ok by using the same concommands and net messages. If you don't communicate with the server as if the anti-cheat would, the server will know somethings fucky.

    Pictures!







    Every thing that is attempted to be ran is saved to a folder that is named after the server you are connected to!

    Thoughts? Suggestions? Insults from @D3M0L1T10N? They're all welcome! This is going to be released soon
    Last edited by tdsx; 01-19-2015 at 10:48 PM.

  2. The Following 7 Users Say Thank You to tdsx For This Useful Post:

    BriizCool (11-03-2022),Haxo24 (10-27-2018),Kairosu (02-16-2018),Kona-chan (01-20-2015),max1612 (01-29-2015),p100 body shot (06-30-2015),TheyCallMeDaz (01-21-2015)

  3. #2
    TheyCallMeDaz's Avatar
    Join Date
    May 2013
    Gender
    female
    Location
    Ukraine
    Posts
    367
    Reputation
    58
    Thanks
    279
    My Mood
    Yeehaw
    Wow this is the first thing I've seen released here that I can actually say impresses me, this looks pretty fucking awesome.
    This is really cool and something I never even thought about doing (shows how original I am.)

  4. #3
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    584
    My Mood
    Angelic
    Sound really useful to use, Nothing like some extra protection!
    Last edited by suchisgood; 01-20-2015 at 09:44 AM.

  5. #4
    Kona-chan's Avatar
    Join Date
    Oct 2014
    Gender
    female
    Posts
    380
    Reputation
    22
    Thanks
    685
    I wanted to find anything bad to say againaist this but instread I found the idea of using gLua to interact with RunString actually better than doing your 'blacklist' in C++, since you can just modify it on-the-fly without having to recompile everytime.

    +rep

  6. #5
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,007
    Thank you all for kind words. I can't wait to progress this

  7. #6
    ehex's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    150
    Reputation
    22
    Thanks
    555
    Looks good dude.

    It's been a while since i saw someone do a blacklist like that. I also finished my filestealer a few days ago and have a blacklist too ( mine just reads from a txt file and stops files from loading, so its not as cool ).
    Last edited by ehex; 01-20-2015 at 05:04 PM.

  8. The Following User Says Thank You to ehex For This Useful Post:

    tdsx (01-20-2015)

  9. #7
    TheLegenderyCat's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    52
    Reputation
    80
    Thanks
    136
    Quote Originally Posted by tdsx View Post
    So I threw this together today. A module that saves all clientside/shared scripts and adds a hook that lets you prevent scripts from loading.


    It isn't a traditional GMod hook. It loads a file and raw sets some global variables. _SCRIPT is the script itself. _SOURCE is the source of it (a file, RunString, SendLua, etc). This is what my 'hook' file looks like.

    Code:
    if (_SOURCE == "lua/autorun/client/msg.lua" or _SOURCE == "LuaCmd") then
    	return false
    end
    The global variables are destroyed after they're used. In the right hands, you could theoretically bypass any and every anti-cheat. Probably the most trouble you'll run into are anti-cheats that use net messages or concommands to communicate, in which case, you'll have to fool the server into thinking everything is A-ok by using the same concommands and net messages. If you don't communicate with the server as if the anti-cheat would, the server will know somethings fucky.

    Pictures!







    Every thing that is attempted to be ran is saved to a folder that is named after the server you are connected to!

    Thoughts? Suggestions? Insults from @D3M0L1T10N? They're all welcome! This is going to be released soon
    Kinda reminds of nanohack that Function gave me :/ it got lua dumps the same thing as yours. But this time it blocks stuff from running I guess that pretty new and awesome c:
    Last edited by TheLegenderyCat; 01-20-2015 at 05:21 PM.

  10. The Following User Says Thank You to TheLegenderyCat For This Useful Post:

    tdsx (01-20-2015)

  11. #8
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,007
    Worked something up to bypass LeyAC.

    Code:
    if (_SOURCE == "LuaCmd" and string.find(_SCRIPT, "if not hellohellohelloimcool")) then
    	net.Start("ijustwannahaveyourightbymyside")
    		net.WriteString(" ")
    	net.SendToServer()
    
    	return false
    end
    
    if (_SOURCE != "addons/leyac/lua/_ley_imp.lua") then return end
    
    net.Receive("ijustwannahaveyourightbymyside", function()
    	net.Start("ijustwannahaveyourightbymyside")
    		net.WriteString(" ")
    	net.SendToServer()
    end)
    
    hook.Add("InitPostEntity", "LeyAC", function()
    	net.Start("ijustwannahaveyourightbymyside")
    		net.WriteString("in")
    		net.WriteString("hellohellohelloimcool")
    	net.SendToServer()
    
    	hook.Remove("InitPostEntity", "LeyAC")
    end)
    
    return false
    It doesn't completely emulate the actual clientside AC, but that's only because I only did this as a proof of concept. The server can request different things, which I didn't bother to put in. From what I see, though, everything seems normal.



    And a TAC bypass just cause it's that fucking easy.

    Code:
    if (_SOURCE:lower() != "addons/tac/lua/autorun/client/cl_blunderbuss.lua") then return end
    
    timer.Create("TACTimer", math.random(60, 120), 0, function()
    	net.Start("ttt_scoreboard")
    		net.WriteString("gotit")
    	net.SendToServer()
    end)
    
    return false
    Last edited by tdsx; 01-20-2015 at 06:45 PM.

  12. #9
    TheLegenderyCat's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    52
    Reputation
    80
    Thanks
    136
    Quote Originally Posted by tdsx View Post
    Worked something up to bypass LeyAC.

    Code:
    if (_SOURCE == "LuaCmd" and string.find(_SCRIPT, "if not hellohellohelloimcool")) then
    	net.Start("ijustwannahaveyourightbymyside")
    		net.WriteString(" ")
    	net.SendToServer()
    
    	return false
    end
    
    if (_SOURCE != "addons/leyac/lua/_ley_imp.lua") then return end
    
    net.Receive("ijustwannahaveyourightbymyside", function()
    	net.Start("ijustwannahaveyourightbymyside")
    		net.WriteString(" ")
    	net.SendToServer()
    end)
    
    hook.Add("InitPostEntity", "LeyAC", function()
    	net.Start("ijustwannahaveyourightbymyside")
    		net.WriteString("in")
    		net.WriteString("hellohellohelloimcool")
    	net.SendToServer()
    
    	hook.Remove("InitPostEntity", "LeyAC")
    end)
    
    return false
    It doesn't completely emulate the actual clientside AC, but that's only because I only did this as a proof of concept. The server can request different things, which I didn't bother to put in. From what I see, though, everything seems normal.



    And a TAC bypass just cause it's that fucking easy.

    Code:
    if (_SOURCE:lower() != "addons/tac/lua/autorun/client/cl_blunderbuss.lua") then return end
    
    timer.Create("TACTimer", math.random(60, 120), 0, function()
    	net.Start("ttt_scoreboard")
    		net.WriteString("gotit")
    	net.SendToServer()
    end)
    
    return false
    When are you gonna release this?

  13. #10
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,007
    Quote Originally Posted by TheLegenderyCat View Post
    When are you gonna release this?
    Today or tomorrow. Probably today. I just want to make sure it's in perfect condition.

  14. #11
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    u must be high if you are going to release a runstring hook to the public

    - - - Updated - - -

    The global variables are destroyed after they're used. In the right hands, you could theoretically bypass any and every anti-cheat.

    not if the anti cheat is good

  15. #12
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,007
    Quote Originally Posted by D3M0L1T10N View Post
    not if the anti cheat is good
    if you emulate the AC clientside the server has no way to tell anything is wrong

  16. The Following User Says Thank You to tdsx For This Useful Post:

    TeslaEngineerCoder (01-20-2015)

  17. #13
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    Quote Originally Posted by tdsx View Post
    if you emulate the AC clientside the server has no way to tell anything is wrong
    id show you why this wont work on some acs, but then you would fix it so nahhhhh

  18. #14
    Kona-chan's Avatar
    Join Date
    Oct 2014
    Gender
    female
    Posts
    380
    Reputation
    22
    Thanks
    685
    Quote Originally Posted by D3M0L1T10N View Post
    id show you why this wont work on some acs, but then you would fix it so nahhhhh
    crc checks

  19. The Following User Says Thank You to Kona-chan For This Useful Post:

    Leystryku (02-14-2015)

  20. #15
    TheyCallMeDaz's Avatar
    Join Date
    May 2013
    Gender
    female
    Location
    Ukraine
    Posts
    367
    Reputation
    58
    Thanks
    279
    My Mood
    Yeehaw
    Quote Originally Posted by D3M0L1T10N View Post
    u must be high if you are going to release a runstring hook to the public

    - - - Updated - - -

    The global variables are destroyed after they're used. In the right hands, you could theoretically bypass any and every anti-cheat.

    not if the anti cheat is good
    ^This.

    If you're planning to release this, someone will find a way to detect it in just a few moments, I'd recommend that if you plan to release something like this then you should get rid of some amount of security.

Page 1 of 8 123 ... LastLast

Similar Threads

  1. [VB6 Module edit]
    By leiva1 in forum Visual Basic Programming
    Replies: 8
    Last Post: 09-24-2007, 11:19 AM
  2. [request]New Module
    By killer2334 in forum Hack Requests
    Replies: 0
    Last Post: 07-21-2007, 06:42 AM
  3. [request] Module
    By Elliwood in forum WarRock - International Hacks
    Replies: 6
    Last Post: 07-16-2007, 01:11 PM
  4. Module for Warrock
    By condor01 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 07-07-2007, 03:15 AM
  5. module vb6
    By ZeaS in forum WarRock - International Hacks
    Replies: 12
    Last Post: 07-02-2007, 07:47 PM

Tags for this Thread