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

    Cool gmcl_external - prevent your shitty scripts from being read or stolen

    A module that uses luaL_dofile and luaL_loadbuffer. You can load files from anywhere on your computer. Obviously you don't put your shit in system32 like a retard, because I'm guessing the function needs permissions to read from the directory.

    Functions
    • includeExternal
    • runEncrypted
    • encrypt
    • encryptFile

    I added some encryption functions to prevent servers from reading your stoof. I'm guessing some people will try to crack it, but I really don't give a shit, because the selling point of this module is to load files from places where your stuff can't be file.Read'd.

    includeExternal takes two arguments, the file or directory to include. If you specify a directory for the first argument, it will include every file in that directory. If you specify a file, it will only run that file. The second argument is a boolean. If it is true, it will recursively include every file in every directory in that directory.

    runEncrypted takes one argument, the encrypted code to run. Returns false if an error occurs.

    encrypt takes one argument, the code to encrypt. It will copy the encrypted code to your clipboard. It also returns the encrypted code.

    encryptFile has the same functionality as includeExternal, except it will not run the files, it will encrypt them.

    AN IMPORTANT THING TO NOTE IS THAT YOU SHOULD NOT HAVE BACKSLASHES IN THE PATHS. You could probably escape the backslashes, but it's a lot more easier to just use forwardslashes. You should also NOT have any periods in the directory (besides the period preceding the lua extension).

    C:\penis\whatever\IDK\dick.lua = no bueno
    C:/penis/whatever/IDK/dick.lua = bueno, use it like this.

    Pictures




    Virus Scans
    <b>Downloadable Files</b> Downloadable Files
    Last edited by tdsx; 05-28-2014 at 05:03 PM.

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

    aGNO2k11 (03-12-2017),altair567 (07-24-2014),austin28785678 (08-13-2016),Badass Pikachu (07-17-2014),BakaMotion (11-15-2015),bzezeo (02-18-2024),daniel968 (05-01-2017),DrnkAssassin (06-11-2019),ecksor (06-18-2014),end360 (07-15-2014),Felix2000 (05-05-2017),flxr (06-24-2017),freeman1509 (01-10-2016),FrS (06-24-2017),GalaxyBurg (07-25-2017),gogo9211 (11-01-2018),grimreaper1 (07-19-2014),hazza72 (08-10-2015),heldexlv (06-06-2016),iatecheeze123 (01-23-2016),InFeCtedZomBie (01-27-2016),intensifz (02-09-2016),JackHansen (03-25-2017),jayriper12 (12-02-2018),Joseph:3 (05-31-2014),jross10 (11-18-2016),kaikool (07-25-2014),Keeta (04-01-2018),kitteh22689 (10-02-2014),KorkiPoo (05-30-2014),kubat164 (10-21-2017),LovableApple (07-15-2014),Lunarzz (04-20-2017),Markss (07-15-2014),maxbaden1 (10-22-2017),McNuggie (06-09-2014),MrRazer8 (06-29-2014),Mycheatsareprivate (08-28-2016),NeaZen1 (08-26-2017),Nestroz59 (08-04-2019),PasscodeX (08-07-2016),RacecarCheats (12-12-2019),rainix123456 (09-19-2014),rosevelt (05-31-2014),sirtryhardsalot (06-29-2014),Snaggle (07-13-2014),SteamyTwist (09-12-2014),taigaai (02-28-2019),TannerKhaxxx (07-11-2016),tehhkp (05-28-2014),thatfish (01-28-2015),trietvnvn (06-29-2014),Tubbs135 (01-14-2017),XviperGamingXVG (07-19-2017),zephruz (06-21-2014),zhenzhenzhen (05-30-2014)

  3. #2
    LuaHax's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    US, CA
    Posts
    284
    Reputation
    10
    Thanks
    935
    My Mood
    Amused
    Thanks! I will test as soon as it gets approved!

  4. #3
    Blue Kirby's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    181
    Reputation
    49
    Thanks
    600
    My Mood
    Psychedelic
    Good stuff. Are you using GetProcAddress or a static library built from lua_shared?

  5. #4
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,004
    Quote Originally Posted by Blue Kirby View Post
    Good stuff. Are you using GetProcAddress or a static library built from lua_shared?
    GetProcAddress.

  6. #5
    Symmetrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    m͏̺͓̲̥̪is̷t̞̖͍͚̤k̥B̸̼&#81
    Posts
    13,004
    Reputation
    2510
    Thanks
    5,635
    /Approved .

    https://virusscan.jotti.org/en/scanresult/3ce613f0cc59a8cf56d0dad1d5f90d41f17513a4
    Last edited by Symmetrical; 05-29-2014 at 11:20 AM.

    My Skype: -
    (Always ask for confirmation before and after adding me on Skype)


     



    History
    Editor 16th April 2013 ~ 27th June 2013
    Middleman 14th July 2013 ~ 4th August 2015
    Donator 30th August 2013 ~ Current
    Minion 8th October 2013 ~ 1st January 2014
    Moderator 1st January 2014 ~ 4th August 2015





  7. #6
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    You should release source code. I have a hard time understanding how to use modules what so ever because anything on the wiki is "heres how u set it up gl hf"
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  8. #7
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    562
    My Mood
    Angelic
    Quote Originally Posted by Trollaux View Post
    You should release source code. I have a hard time understanding how to use modules what so ever because anything on the wiki is "heres how u set it up gl hf"
    It's really not that hard.

  9. #8
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    Quote Originally Posted by suchisgood View Post
    It's really not that hard.
    "I have a hard time understanding how to use modules"
    It is for me
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  10. #9
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,004
    Quote Originally Posted by Trollaux View Post
    You should release source code. I have a hard time understanding how to use modules what so ever because anything on the wiki is "heres how u set it up gl hf"
    You're right. The documentation on module creation is pretty lackluster. Here you go babe.

    https://******.com/tdsx/gmcl_external

  11. #10
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    Quote Originally Posted by tdsx View Post
    You're right. The documentation on module creation is pretty lackluster. Here you go babe.

    https://******.com/tdsx/gmcl_external
    Thank you very much.
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  12. #11
    MeepDarknessMeep's Avatar
    Join Date
    Aug 2012
    Gender
    female
    Posts
    725
    Reputation
    22
    Thanks
    922
    wasn't this released on facepunch a few months ago


    nice

    print(util.Base64Decode(encryptFile("C:\\really\\r eally\\important\\file.shit")))
    Last edited by MeepDarknessMeep; 05-29-2014 at 06:03 PM.

  13. #12
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,004
    Quote Originally Posted by MeepDarknessMeep View Post
    wasn't this released on facepunch a few months ago


    nice

    print(util.Base64Decode(encryptFile("C:\\really\\r eally\\important\\file.shit")))
    Yeah, it was. I posted it.

    And what is the second part of your post? encryptFile doesn't return anything. It reads the contents of the file, encrypts it, places it in a runEncrypted call, and then saves the final string to the file. The encryption and decryption isn't just base64 - that'd be silly, and base64 is encoding. It uses an actual encryption method and then base64's it.

    EDIT: I also just remembered that luaL_dofile shows the name of the file in debug.getinfo. I'm going to update the module to read the file and run the string instead. I'll also let the function load an encrypted file path so that if they override the function they won't know what the name of the file is. I want full stealth on this shit. I'll update it tomorrow.
    Last edited by tdsx; 05-29-2014 at 10:00 PM.

  14. #13
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    562
    My Mood
    Angelic
    Quote Originally Posted by tdsx View Post
    Yeah, it was. I posted it.

    And what is the second part of your post? encryptFile doesn't return anything. It reads the contents of the file, encrypts it, places it in a runEncrypted call, and then saves the final string to the file. The encryption and decryption isn't just base64 - that'd be silly, and base64 is encoding. It uses an actual encryption method and then base64's it.

    EDIT: I also just remembered that luaL_dofile shows the name of the file in debug.getinfo. I'm going to update the module to read the file and run the string instead. I'll also let the function load an encrypted file path so that if they override the function they won't know what the name of the file is. I want full stealth on this shit. I'll update it tomorrow.
    Can you add a file::Block aka
    Code:
    local oldinclude = include
    function include( str )
    if string.find(string.lower(str),"ley") then return end
    return oldinclude(str) 
    end
    But in C++ because you seem to know alot about C++
    To stop LeyAC loading on the source code too please, Do you load it in game or in the start of gmod console, because in game it's detectable? using require for modules and include for files!
    Last edited by suchisgood; 05-30-2014 at 04:48 AM.

  15. #14
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,004
    What do you mean by loading on the source code? I can't fully understand you. I haven't ever used an injector, but can't you just inject the dll instead of requiring it?
    Last edited by tdsx; 05-30-2014 at 07:33 AM.

  16. #15
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    562
    My Mood
    Angelic
    Quote Originally Posted by tdsx View Post
    What do you mean by loading on the source code? I can't fully understand you. I haven't ever used an injector, but can't you just inject the dll instead of requiring it?
    To keep a module running on gmod load or would you need an injector / MM:S metamod plugin to do that, and then once it's injected it'll constantly block .lua files that are on the blacklist when joining a server to stop them from loading.

    https://www.sourcemm.net/ it's easy to use MM:S for auto load stuff if you want it here is the link.

    https://forums.alliedmods.net/showth...=40089?t=40089
    Last edited by suchisgood; 05-30-2014 at 12:25 PM.

Page 1 of 4 123 ... LastLast

Similar Threads

  1. How to prevent your Combat Arms from Crashing!
    By []Legend[] in forum Combat Arms Tutorials
    Replies: 2
    Last Post: 12-18-2012, 10:07 PM
  2. [Info] How to prevent your computer being hacked/keylogged
    By Ronon666 in forum Alliance of Valiant Arms (AVA) Discussions
    Replies: 4
    Last Post: 05-30-2011, 08:17 AM
  3. Prevent Your work from getting Leeched!
    By Invidus in forum Combat Arms Discussions
    Replies: 13
    Last Post: 02-22-2010, 12:32 AM
  4. [TuT]Preventing your Program from Closing
    By Iamazn in forum Visual Basic Programming
    Replies: 4
    Last Post: 09-09-2009, 06:10 PM
  5. A video from being bored...
    By Oneirish in forum General
    Replies: 5
    Last Post: 09-08-2008, 09:21 PM

Tags for this Thread