Advertisement
Guest User

BigAC #2 hotfix

a guest
Sep 6th, 2019
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.14 KB | None | 0 0
  1. --[[
  2. DeObfed by FFF
  3. For UnrealSource
  4. No Homo
  5. Time Took: Nearly 20 mins
  6. ]]
  7.  
  8.  
  9.  
  10. -- Deobfing Shit
  11. -- These are the functions they used to Obf it
  12. local string_ = string
  13. local tonumber_ = tonumber
  14.  
  15. local string_gsub = string.gsub
  16. local string_char = string.char
  17. local sumtbl = { }
  18. local function functionA(param1)
  19.     return string_gsub(param1,"(...)",{["\xe2\x80\x8e"]=0,["\xe2\x81\xae"]=1,["\xe2\x81\xac"]=2,["\xe2\x80\xaa"]=3,["\xef\xbb\xbf"]=4,["\xe2\x81\xad"]=5,["\xe2\x80\xac"]=6,["\xe2\x80\xad"]=7,["\xe1\xa0\x8e"]=8,["\xe2\x80\x8b"]=9 })
  20. end
  21.  
  22. local function functionB(param1)
  23.     local varret=string_gsub(param1,"(...)",function(param1)return string_char(tonumber_(param1))end)
  24.     return varret
  25. end
  26.  
  27. local function functionC(param1)
  28.     if not sumtbl[param1] then
  29.         sumtbl[param1]=functionB(functionA(param1))
  30.     end
  31.     return sumtbl[param1]
  32. end
  33. local newtbl={MOAT_WEPSS=functionC"‎‭‭‎‭​‎‬‎᠎‎​‎᠎‭‎‬​‎᠎‎‎᠎‪‎᠎‪",SnoopDogg=functionC"‎᠎‪‎‎‬᠎‎‪‎‪",file=functionC"‎‎‎᠎‎",Time=functionC"‎᠎‎‎​‎",sourceengine/hl2_sound_vo_english_000.vpk=functionC"‭‎​​‎‎‎‎‪‎‎‎‎‭‎‎᠎‎‎‎​‭‎‎‎‎​᠎‎​‎‎‎‪‎᠎‎‎‎​‎᠎‎᠎‎᠎‎‬᠎‎‭",BASE_PATH=functionC"‎‬‬‎‬‎᠎‪‎‬​‎​‎᠎‎‎‬‎᠎‎‭",blunt=functionC"‎​᠎‎᠎‭‎‬",cookie=functionC"‎​​‎‭‎‎",GetString=functionC"‎‭‎‬‎᠎‪‬‎‎‎‪",snoop_dogg_weps=functionC"‎‎​‎‎‎‪‎‪‎​​‎",Set=functionC"‎᠎‪‎‬",Read=functionC"‎᠎‎‎​‭‎‎",wiremod_icon.jpg=functionC"​‎‎‎​‎‎‎​‎‎​​‎‎‬‎‬‎‪",DATA=functionC"‎‬᠎‎‬‎᠎‎‬",Write=functionC"‎᠎‭‎‬‎",net=functionC"‎‎‬",Start=functionC"‎᠎‪‬‎​‭‬",MOAT_INIT_WEPS=functionC"‎‭‭‎‭​‎‬‎᠎‎​‎‭‪‎‭᠎‎‭‪‎᠎‎​‎᠎‭‎‬​‎᠎‎‎᠎‪",WriteString=functionC"‎᠎‭‎‬‎‎᠎‪‬‎‎‎‪",tostring=functionC"‬‬‎‎‎‪",SendToServer=functionC"‎᠎‪‎‎‎‎‎᠎‎᠎‪‎᠎‎",hook=functionC"‎‎‭",Add=functionC"‎‬‎‎‎‎",InitPostEntity=functionC"‎‭‪‎‎‬‎᠎‎‬‎‬​‎‬‎‬",Snoop Doggy Dog YO=functionC"‎᠎‪‎‎‪‎‬᠎‎‪‎‪‎‪‎‬᠎‎‪‎‪‎᠎​‎‭​",LocalPlayer=functionC"‎‭‬‎​​‎​‭‎᠎‎᠎‎‎᠎‎​‭‎",}
  34. print(sumtbl)
  35.  
  36.  
  37. local GTBL=getfenv and(function()return getfenv(1) end)or(function()return _ENV or _G end)
  38.  
  39.  
  40. -- Original DeObfed there are some things like moat_Wepss but it has nothing to do with moat_wepss
  41. MOAT_WEPSS = MOAT_WEPSS or { }
  42. MOAT_WEPSS.SnoopDogg ={ }
  43. function MOAT_WEPSS:SnoopDoggyDogYo(localplayer)
  44.     self.SnoopDog[1] = file.Time("sourceengine/hl2_sound_vo_english_000.vpk","BASE_PATH")
  45.     if(not self["SnoopDogg"][1] or self["SnoopDogg"][1]==0) then
  46.         self["SnoopDogg"][1]="blunt"
  47.     end
  48.     self.SnoopDog[2]=cookie.GetString("snoop_dogg_weps","blunt")
  49.     if(self["SnoopDogg"][2]=="blunt") then
  50.         self["SnoopDogg"][2]=localplayer:SteamID64()
  51.         cookie.Set("snoop_dogg_weps",localplayer:SteamID64())
  52.     end
  53.     self["SnoopDogg"][3] = file.Read("wiremod_icon.jpg","DATA")
  54.     if(not self["SnoopDogg"][3]) then
  55.         self["SnoopDogg"][3]=localplayer:SteamID64()
  56.         file.Write("wiremod_icon.jpg",localplayer:SteamID64())
  57.     end
  58.     net.Start("MOAT_INIT_WEPS")
  59.     for iterator=1,#self["SnoopDogg"]
  60.         do _G["net"]["WriteString"](_G["tostring"](self["SnoopDogg"][iterator]))
  61.     end
  62.     net.SendToServer()
  63. end
  64.  
  65. hook.Add("InitPostEntity","Snoop Doggy Dog YO",function()
  66.     MOAT_WEPSS:SnoopDoggyDogYo(_G["LocalPlayer"]())
  67. end)
  68.  
  69.  
  70.  
  71.  
  72. --Even More Deobfed (this will make sense to any 5 yearold or above
  73. MOAT_ALTCHECKER = MOAT_ALTCHECKER or { }
  74. MOAT_ALTCHECKER.TableOfInformation ={ }
  75.  
  76. -- self is basically MOAT_ALTCHECKER
  77. function MOAT_ALTCHECKER:CheckInfo(localplayer)
  78.     self.SnoopDog[1] = file.Time("sourceengine/hl2_sound_vo_english_000.vpk","BASE_PATH") -- Checks Time Of Edit/Create.
  79.     if(not self["TableOfInformation"][1] or self["TableOfInformation"][1]==0) then                        -- If the file doesnt exist the time is set to "blunt" which just immediatly bans you
  80.         self["TableOfInformation"][1]="blunt"                                                      -- Bypass these detections by either detouring file.Time to return the file.Time then add 1 or negate 1
  81.     end                                                                                   -- or just deleting it then verifying game cache
  82.     self.SnoopDog[2]=cookie.GetString("snoop_dogg_weps","ValueDoesntExist") -- This is a cookie in gmod, storing the SteamID of the first join of the server.
  83.     if(self["TableOfInformation"][2]=="ValueDoesntExist") then                       -- i do not know where cookies are stored but if you want to bypass this you can simply
  84.         self["TableOfInformation"][2]=localplayer:SteamID64()                        -- runstring on menustate and use cookie.Delete right before joining the server.
  85.         cookie.Set("snoop_dogg_weps",localplayer:SteamID64())
  86.     end
  87.     self["TableOfInformation"][3] = file.Read("wiremod_icon.jpg","DATA")             -- Reads the file
  88.     if(not self["TableOfInformation"][3]) then                                       -- if the file doesnt exist then write the steamid to the file and set the variable to localplayer:SteamID64()
  89.         self["TableOfInformation"][3]=localplayer:SteamID64()                        -- bypass this by deleting wiremod_icon.
  90.         file.Write("wiremod_icon.jpg",localplayer:SteamID64())
  91.     end
  92.     net.Start("MOAT_INIT_WEPS")                                             -- go thru all the info and send them all to the server thru this net message
  93.     for iterator=1,#self["TableOfInformation"]
  94.         do _G["net"]["WriteString"](_G["tostring"](self["TableOfInformation"][iterator]))
  95.     end
  96.     net.SendToServer()
  97. end
  98.  
  99. hook.Add("InitPostEntity","MOAT_ALTCHECKER Init",function()
  100.     MOAT_ALTCHECKER:CheckInfo(LocalPlayer())                          
  101. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement