CoolOutdatedexternal2 - because it turned out to be even shittier than your scripts

Posts 115 of 155 · Page 1 of 11
external2 - because it turned out to be even shittier than your scripts
So this is a complete remake of gmcl_external. It is no longer a module that needs to be loaded by Lua. Instead, you can now inject it into hl2.exe and load Lua through console commands. This is a module to prevent servers from stealing your scripts, and to offer a bit of stealth while doing so.

What's New

As I've said earlier, instead of loading it via require, you may now simply inject it into hl2.exe and load scripts through console commands. There are no more encryption features, mainly because they were shitty anyways. This time around I wanted to focus on becoming a stealthbomber. I've also added a console command to load external binary modules (gmcl_*****_win32.dll files). All files are relative to My Documents\external, so create a file called "external" in your documents folder and put all your files there. One thing to note is that there is no more functionality to load an entire folder of scripts.

You may load external files regardless of the value of sv_allowcslua, which means you do not need a bypasser of any kind.

Console Commands


  • external
  • require

external takes two arguments, the second one being optional. The first argument is the name of the external script you want to run, and the second one is a fake source file. Some anti-cheats use the debug library to check where a script is being ran from, and if they detect that it's from an unknown file, they may ban you. You can fake them out with this second argument. If you do not include a second argument, the fake source file will simply be "external". In some cases, you may want to not fake the source file. In this case, if you specify "!" as the second argument, the source file will not be hidden at all, which means it will show the true name of your file in the debug information. Useful for tracking down errors with many external files being loaded.



Every time you use the external console command, a raw global function called external is created. When your script is done running, the function is destroyed. This is for added stealth. Ideally, you should create an external loader.lua that will load other external scripts of yours.
Code:
--[[
	Save a copy of the external function because it's going to be destroyed.
	This only really needs to be done if the script isn't instantaneous, but 
	I do it anyways just for uniformity.
--]]

local external = external

-- It works just like the console command.
external("someotherfile.lua")
external("piss_out_my_ass.lua", "lua/includes/init.lua")
external("yummygummybears.lua", "!")
require takes one argument: the binary module to load. Keep in mind that this is also relative to My Documents\external, so put your module there along with your scripts. It does NOT need to be in the gmcl_*****_win32 format. It can be named whatever you want. Every time you want to join a new server, you should go to the main menu, type the command in again with the name of your module, connect to a new server, and then load the module with the command again. Not doing this procedure can cause Garry's Mod to crash, depending on the module.



Upon injection you should see what's in the picture below.



Virus Scans



Thanks to @MeepDarknessMeep for dealing with my autism. Use Extreme Injector to inject the .dll into hl2.exe.

love, peace, and bacon grease.
external_mpgh.net.zip93 KB · 10,805 downloads Scanning…
And what does this do again?
Quote Originally Posted by bojicha View Post
And what does this do again?
what is reading first 4 sentences.
looks good, you could also add a concommand similar to lua_run_cl
can you may release the source of this module so i can edit this or make one that targets C://Lua
Quote Originally Posted by Kona-chan View Post
looks good, you could also add a concommand similar to lua_run_cl
Thanks, and yeah, I should have done that. I rushed it since I've been wanting to do this for a while.

Quote Originally Posted by max1612 View Post
can you may release the source of this module so i can edit this or make one that targets C://Lua
that's what I was going to do originally, but ":" fucked with it and I just decided to use My Documents. Releasing the source is something I want to do, and probably will, but it's likely going to be a trimmed down version that is still usable, at least for the most part. For now I'll just describe what it does.

The console commands check to see if you're in-game by using IVEngineClient->IsInGame(), and react accordingly. In the case of external, it just doesn't run the script. In the case of require, it loads/unloads/reloads the module, depending on if you're in a server and if the module is already loaded.

require works by using GetProcAddress on the module and targeting gmod13_open and gmod13_close, which are exported by Garry's Mod binary modules (GMOD_MODULE_OPEN/CLOSE). That's pretty much the jist of it. The rest is just reading the file and then using luaL_loadbuffer and lua_pcall.
Thank u very much and can i get VAC banned for this?
Quote Originally Posted by lashuna1999 View Post
Nice , thanks.

- - - Updated - - -

Will i get banned for just running old lua scripts?

- - - Updated - - -

And one more thing , Is it possible to get VAC banned for this ?

- - - Updated - - -

And one more thing , Is it possible to get VAC banned for this ?

- - - Updated - - -

And one more thing , Is it possible to get VAC banned for this ?
1. you're so very welcome kind stranger
2. you might get banned from a server if they detect your scripts.
3. no
4. no
5. no
I am sorry for "spam" my net is really very slow at the moment ,and i pressed reply too many times.
Appears safe, approved.
even more detected than the module
Quote Originally Posted by D3M0L1T10N View Post
even more detected than the module
oh nose gac is gunna ban u
can we get a require("external") version..?
Quote Originally Posted by polivilas View Post
can we get a require("external") version..?
ya thats the first one he made

its on the forum somewhere
Thanks for this!
Posts 115 of 155 · Page 1 of 11

Post a Reply

Similar Threads

Tags for this Thread

Need help?