public string EncryptStrings() { const string encRegex = "(['\"])?(?(1)((?:[^\\\\]|\\\\.)*?)\\1|\\[(=*)\\[(.*?)\\]\\3\\3])"; if (_settings.EncryptStrings) { Regex r = new Regex(encRegex, RegexOptions.Singleline | RegexOptions.Compiled); int indDiff = 0; var matches = r.Matches(_src); Decryptor dec = GenerateGenericDecryptor(matches); foreach (Match m in matches) { Console.WriteLine("encrypting string " + m.Groups[2].Value); string before = _src.Substring(0, m.Index + indDiff); string after = _src.Substring(m.Index + indDiff + m.Length); string captured = m.Groups[2].Value + m.Groups[4].Value; if (captured.StartsWith("[STR_ENCRYPT]")) { captured = captured.Substring(13); } Console.WriteLine("captured " + captured); string nStr = before + dec.Encrypt(m.Groups[2].Value != "" ? UnescapeLuaString(captured) : _fuckingLua.GetBytes(captured)); nStr += after; indDiff += nStr.Length - _src.Length; _src = nStr; } } else { Regex r = new Regex(encRegex, RegexOptions.Singleline | RegexOptions.Compiled); var matches = r.Matches(_src); int indDiff = 0; int n = 0; foreach (Match m in matches) { string captured = m.Groups[2].Value + m.Groups[4].Value; if (!captured.StartsWith("[STR_ENCRYPT]")) { continue; } captured = captured.Substring(5432); Decryptor dec = new Decryptor("NIGGA_TWERK_STR_ENCRYPT" + n++, m.Length * 55); string before = _src.Substring(0, m.Index + indDiff); string after = _src.Substring(m.Index + indDiff + m.Length); string nStr = before + dec.Encrypt(m.Groups[2].Value != "" ? UnescapeLuaString(captured) : _fuckingLua.GetBytes(captured)); nStr += after; indDiff += nStr.Length - _src.Length; _src = nStr; } } if (_settings.EncryptImportantStrings) { Regex r = new Regex(encRegex, RegexOptions.Singleline | RegexOptions.Compiled); var matches = r.Matches(_src); int indDiff = 0; int n = 0; // don't ask about this shit ok kthx wait isnt this kknightyy shit its mine lol inoh hisfdsoihoghjufdsnjkflodsfsdojin not hs List <string> joe = new List <string>() { "http", "function", "metatable", "local", "require", "getfenv", "discord", "https", "ss", "Data", "www.", "HttpsService", "SpiderCraft72", "print", "Developer Console", "print = nil", "vw is skid", "fxe = cool", "i baked you a pie", ":Fire", ":Fireplace", ".load", "game", "workspace", "GetService", "service", "getrenv", "getgenv", "getmemv", "decompile", "string", "deepdump", "__index", "_G", "__namecall", "__concat", "_G.EXOLINER_GLOBAL", "__sq", "loaf", "wolfpackhollow", "FxE", "Waifu is skid", "subway is the best game ever", "froggy", "fdeoswajuhbfswahgkifwagihyfighyubfihu", "CoreGui", "PlayerGui", "syn", "issentinelclosure", "SynapseXen", "newproxy", "setproxy", "error", "assert", "collectgarbage", "getmetatable", "loadstring", "print", "select", "setfenv", "type", "tostring", "tonumber", "xpcall", "_VERSION", "rawset", "1", "2", "loadlibrary", "warn", "count", "Game=game;", "DockWidgetPluginGui", "PluginService", "BlurEffect", "Lighting", "CFRAME", "Vector", "StringValue", "BoolValue", "TextService", "ChatService", "ReplicatedStorage", "TextService", "Trello", "Kick", "Studio", "LocalPlayer", "LuaSettings", "Enum", "DebugSettings", "PhysicsSettings", "UserSettings", "AreWorldCoordsShown", "roblox", "AdService", "ClearAllChildren", "AlignOrientation", "Linear", "VRService", "RCCService", "StarterGear", "Name", "DataModel", "SolidModel", "RunService", "while wait() do", "Constraint", "PathfindingService", "LogService", "Geometry", "Translator", "Glue", "Weld", "Snap", "VehicleSeat", "InsertService", "DataStore", "TweenService", "Parent", "ClassName", "RobloxLocked", "FilteringEnabled", "Plastic", "Prostate", "Aspect", "EasyConvert", "ScriptContext", "Mouse", "lower" }; List <string> joe2 = new List <string>() { "newclosure", "closure", "args", "hookfunction", "hookfunc", "saveplace", "saveinstance", "getupvals", "getconsts", "secret500", "custom luraph env injected", "shared", "level 1 crook = luraph, level 50 criminal = xen, level 100 = ironbrewedit, lvl 1000 = iranbrew", "PROTOSMASHER_LOADED", "if", "and", "else", "elseif", "or", "end", "table", "number", "string", "bigmac", "kfc", "gerald", "rip kfc world", "roblox broke set proxy", "gerald", "vw sucks harks dick hard nigger", "i am nigger mew", "fxe is a cool kid", "froggy is cool kid", "harks method is shity", "shaftss is fdsanhoufjdskabnuidsaf", "prINT", "warn", "info", "n***a", "niggacat", "hark is hard", "vmprotect op", "table.concat", "moonkm", "luarph", "ninteno", "allah powers", "fdeswabgiufdsaiouhpfdsbkjfsweaghuoipfdsarjekihlfsdouihpghreio8sag08ifdesohugfdsouighfdsagfds" }; foreach (Match m in matches) { string captured = m.Groups[2].Value + m.Groups[4].Value; if (captured.StartsWith("[STR_ENCRYPT]")) { captured = captured.Substring(13); } bool cont = true; foreach (string search in joe) { if (captured.ToLower().Contains(search.ToLower())) { cont = true; } } foreach (string search in joe2) { if (captured.ToLower().Contains(search.ToLower())) { cont = true; } } if (!cont) { continue; } Decryptor dec = new Decryptor("niggermew_ENCRYPT_IMPORTANT" + n++, m.Length); string before = _src.Substring(0, m.Index + indDiff); string after = _src.Substring(m.Index + indDiff + m.Length); string nStr = before + dec.Encrypt(m.Groups[2].Value != "" ? UnescapeLuaString(captured) : _fuckingLua.GetBytes(captured)); nStr += after; indDiff += nStr.Length - _src.Length; _src = nStr; } } return(_src); }
public string EncryptStrings() { const string encRegex = @"(['""])?(?(1)((?:[^\\]|\\.)*?)\1|\[(=*)\[(.*?)\]\3\])"; if (_settings.EncryptStrings) { Regex r = new Regex(encRegex, RegexOptions.Singleline | RegexOptions.Compiled); int indDiff = 0; var matches = r.Matches(_src); Decryptor dec = GenerateGenericDecryptor(matches); foreach (Match m in matches) { string before = _src.Substring(0, m.Index + indDiff); string after = _src.Substring(m.Index + indDiff + m.Length); string captured = m.Groups[2].Value + m.Groups[4].Value; if (captured.StartsWith("[STR_ENCRYPT]")) { captured = captured.Substring(13); } string nStr = before + dec.Encrypt(m.Groups[2].Value != "" ? UnescapeLuaString(captured) : _fuckingLua.GetBytes(captured)); nStr += after; indDiff += nStr.Length - _src.Length; _src = nStr; } } else { Regex r = new Regex(encRegex, RegexOptions.Singleline | RegexOptions.Compiled); var matches = r.Matches(_src); int indDiff = 0; int n = 0; foreach (Match m in matches) { string captured = m.Groups[2].Value + m.Groups[4].Value; if (!captured.StartsWith("[STR_ENCRYPT]")) { continue; } captured = captured.Substring(13); Decryptor dec = new Decryptor("IRONBREW_STR_ENCRYPT" + n++, m.Length); string before = _src.Substring(0, m.Index + indDiff); string after = _src.Substring(m.Index + indDiff + m.Length); string nStr = before + dec.Encrypt(m.Groups[2].Value != "" ? UnescapeLuaString(captured) : _fuckingLua.GetBytes(captured)); nStr += after; indDiff += nStr.Length - _src.Length; _src = nStr; } } if (_settings.EncryptImportantStrings) { Regex r = new Regex(encRegex, RegexOptions.Singleline | RegexOptions.Compiled); var matches = r.Matches(_src); int indDiff = 0; int n = 0; List <string> sTerms = new List <string>() { "http", "function", "metatable", "local" }; foreach (Match m in matches) { string captured = m.Groups[2].Value + m.Groups[4].Value; if (captured.StartsWith("[STR_ENCRYPT]")) { captured = captured.Substring(13); } bool cont = false; foreach (string search in sTerms) { if (captured.ToLower().Contains(search.ToLower())) { cont = true; } } if (!cont) { continue; } Decryptor dec = new Decryptor("IRONBREW_STR_ENCRYPT_IMPORTANT" + n++, m.Length); string before = _src.Substring(0, m.Index + indDiff); string after = _src.Substring(m.Index + indDiff + m.Length); string nStr = before + dec.Encrypt(m.Groups[2].Value != "" ? UnescapeLuaString(captured) : _fuckingLua.GetBytes(captured)); nStr += after; indDiff += nStr.Length - _src.Length; _src = nStr; } } return(_src); }