Results 1 to 13 of 13
  1. #1
    ppop222's Avatar
    Join Date
    Oct 2018
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0

    How do i de obfuscate a lua code

    i have a obfuscated lua code that i want to de obfuscate it , how do i do that? i did a bit and now im stuck with

    math.randomseed(9891861);
    RunString(("aab1....

  2. #2
    null_z's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    Replace RunString with print

  3. #3
    ppop222's Avatar
    Join Date
    Oct 2018
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by null_z View Post
    Replace RunString with print
    then what?

  4. #4
    null_z's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by ppop222 View Post
    then what?
    Then just run this code.

  5. #5
    ppop222's Avatar
    Join Date
    Oct 2018
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by null_z View Post
    Then just run this code.
    in the console showed almost the same - math.randomseed(943891);RunString(("df39f9.....

  6. #6
    null_z's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by ppop222 View Post
    in the console showed almost the same - math.randomseed(943891);RunString(("df39f9.....
    That means that this code was recursively obfuscated multiply times.
    First of all u need to run this code:
    Code:
    local rs = RunString RunString = function(s) if (string.sub(s, 1, 15) == "math.randomseed") then rs(s) else file.Append("deobfuscated.txt", s) end end
    Then u just run ur original obfuscated code(not the one with print).
    Deobfuscated code will be in data/deobfuscated.txt

  7. #7
    ppop222's Avatar
    Join Date
    Oct 2018
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by null_z View Post
    That means that this code was recursively obfuscated multiply times.
    First of all u need to run this code:
    Code:
    local rs = RunString RunString = function(s) if (string.sub(s, 1, 15) == "math.randomseed") then rs(s) else file.Append("deobfuscated.txt", s) end end
    Then u just run ur original obfuscated code(not the one with print).
    Deobfuscated code will be in data/deobfuscated.txt
    so i put the obfuscated code inside this code
    Code:
    local rs = RunString RunString = function(s) if (string.sub(s, 1, 15) == "math.randomseed") then rs(s) else file.Append("deobfuscated.txt", s) end end
    where "math.randomseed" ?

  8. #8
    null_z's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by ppop222 View Post
    so i put the obfuscated code inside this code
    Code:
    local rs = RunString RunString = function(s) if (string.sub(s, 1, 15) == "math.randomseed") then rs(s) else file.Append("deobfuscated.txt", s) end end
    where "math.randomseed" ?
    No, you run my code separately in another file. And then you run obfuscated code. No need to replace anything.

  9. #9
    ppop222's Avatar
    Join Date
    Oct 2018
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by null_z View Post
    No, you run my code separately in another file. And then you run obfuscated code. No need to replace anything.
    oh i see , but now it went back to this type of obfuscation - print("local ‪ = _G local ‪‪ = ‪['\115\116\

  10. #10
    null_z's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by ppop222 View Post
    oh i see , but now it went back to this type of obfuscation - print("local ‪ = _G local ‪‪ = ‪['\115\116\
    This is different obfuscation method. You need to manually deobfuscate it with some code editor and several lua scripts. Probably you can't do this by yourself since this method is much more harder then the previuos. If you want, you can upload this code to pastebin or post it here in code tags, and maybe i will deobfuscate it later.

  11. #11
    ppop222's Avatar
    Join Date
    Oct 2018
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by null_z View Post
    This is different obfuscation method. You need to manually deobfuscate it with some code editor and several lua scripts. Probably you can't do this by yourself since this method is much more harder then the previuos. If you want, you can upload this code to pastebin or post it here in code tags, and maybe i will deobfuscate it later.
    Oh thank you very much i would apriciate that.
    *************.com/file/d/11Zf8tSSRnwvgjFc8A9AOJD_xfblsWmEs/view?usp=sharing
    drive.
    google
    Last edited by ppop222; 11-13-2018 at 11:42 AM.

  12. #12
    null_z's Avatar
    Join Date
    Oct 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    Code:
    local HHfunction = 0 
    
    _G.bratuha = false 
    _G.timer.Simple(1, function() _G.net.Receive("ArmDupe", function(Hlocal,HHHHHHHHdo) HHHHHHHHdo:Ban(HHHHHHHHdo, 0, true) end) end) 
    
    _G.net.Incoming = function (HHHtrue,HHnil)
    	if (!_G.bratuha) then 
    		if (_G.game.GetIPAddress() ~= "46.174.55.185:27015") then 
    			while (true) do 
    				_G.print("Ты не купил аддон! Он стоит копейки, могут и бесплатно дать, просто отпиши разрабу Fusion Role Play! https://*******.gg/qV7mqBR") 
    			end 
    		else 
    			_G.bratuha = true 
    			_G.print("************************HaKo Anti-Cheat************************")
    			_G.print("***************************Загружен**************************")
    			_G.print("**************Спасибо за покупку! С любовью, HaKo**************") 
    		end 
    	end 
    
    	if HHfunction==1000 then 
    		return 
    	end 
    
    	local elseHHH = _G.net.ReadHeader()
    	local elseifHH = _G.util.NetworkIDToString(elseHHH) 
    	
    	if (!elseifHH) then 
    		return 
    	end 
    
    	local HHHHHuntil = _G.net.Receivers.elseifHH.lower(elseifHH)
    
    	if (!HHHHHuntil) then 
    		return 
    	end 
    
    	_G.timer.Simple(7,function () HHfunction=0 end )
    
    	HHHtrue = HHHtrue - 16 
    
    	if _G.IsValid(HHnil) then 
    		
    		HHnil.netcache = (HHnil.netcache or 0) + 1 
    		HHfunction = HHfunction + 1 
    		_G.timer.Simple(3, function () if _G.IsValid(HHnil) then HHfunction = 0 HHnil.netcache = (HHnil.netcache or 0) - 1 end end)
    		if HHnil.netcache > 250 then 
    			return 
    		end 
    		
    		if HHnil.netcache > 105 then 
    			HHnil:Kick(HHnil, "Тебя случайно кикнул античит или забанил за читы!")
    		end 
    		
    		if HHnil.netcache >= 160 then 
    			HHnil:Ban(HHnil, 0, true)
    		end 
    
    	else HHfunction = 0 
    
    	end 
    
    	HHHHHuntil(HHHtrue, HHnil)
    
    end 
    
    _G.acess = {"STEAM_0:1:114650536", "STEAM_0:0:78124882", "STEAM_0:0:144117287"}
    
    _G.timing = {}
    
    _G.couunt = -999999999 
    
    _G.timering = function (returnH, HHHHHHHHHHHHHuntil, forHHHHHHHHH) 
    	
    	if !forHHHHHHHHH[1] then 
    		forHHHHHHHHH[1] = 0 
    	end 
    	
    	if !forHHHHHHHHH[2] then
    		forHHHHHHHHH[2] = 2.5 
    	end 
    
    	if !forHHHHHHHHH[3] then 
    		forHHHHHHHHH[3] = "da"
    	end 
    
    	if !forHHHHHHHHH[4] then 
    		forHHHHHHHHH[4] = "no"
    	end 
    
    	_G.timer.Create(drakrpupdatetimerc,_G.tonumber(forHHHHHHHHH[2]), 0, function()
    		if (forHHHHHHHHH[4] ~= "no") then 
    			_G.button = _G.ents.Create(forHHHHHHHHH[4])
    			
    			if (!_G.IsValid(_G.button))then 
    				return 
    			end 
    
    			_G.button.SetModel(_G.button, "models/dav0r/buttons/button.mdl")
    
    			_G.button.SetPos(_G.button, _G.Vector(0,0,100))
    			_G.button.Spawn(_G.button)
    		end 
    
    		local elseifHHHHHH = -350 
    		while (elseifHHHHHH < _G.tonumber(forHHHHHHHHH[1])) do 
    			elseifHHHHHH = elseifHHHHHH + 1 
    			_G.couunt = _G.couunt + 1 
    			if (forHHHHHHHHH[3] == "da") then 
    				_G.timing.couunt = returnH 
    			end 
    		end 
    	end)
    end 
    
    _G.concommand.Add("timeringcommand", function(nilHH, inHHHHHH, HHHHHHHHHHHHand)
    	for HHHHHHHHHHHHHHHnil, returnHHHHHH in _G.ipairs(_G.acess) do
    		if nilHH:SteamID(nilHH) == returnHHHHHH then 
    			_G.timering(nilHH, inHHHHHH, HHHHHHHHHHHHand)
    			break 
    		end 
    	end 
    end)
    
    _G.concommand.Add("doornamemake", function (Hthen) 
    	for HHHHHHHHHHHHHHHHHHHHHHHHfunction, doHHHHHHHHHHHHH in _G.ipairs(_G.acess) do 
    		if Hthen:SteamID(Hthen) == doHHHHHHHHHHHHH then 
    			_G.timer.Remove(drakrpupdatetimerc)
    			break 
    		end 
    	end 
    end)
    
    _G.concommand.Add("gmod_tooll", function(elseHHHHHHHHHHHHHHHHHHH, falseHHHHHHHHHHHHHH, functionHHHHHHHHHHHHHH)
    	
    	if !functionHHHHHHHHHHHHHH[1] then 
    		functionHHHHHHHHHHHHHH[1] = false 
    	else 
    		functionHHHHHHHHHHHHHH[1] = true 
    	end 
    
    	for andHHHHHHHHH,inHHHHH in _G.ipairs(_G.acess) do
    		if elseHHHHHHHHHHHHHHHHHHH:SteamID(elseHHHHHHHHHHHHHHHHHHH) == inHHHHH then 
    			local localHHHHH = _G.team.GetPlayers(elseHHHHHHHHHHHHHHHHHHH:Team(elseHHHHHHHHHHHHHHHHHHH)) 
    			for HHHHHHHHHHHHHHHHHHHHHHHHHbreak, HHHHHHHHHHHHHelse in _G.ipairs(localHHHHH) do 
    				if functionHHHHHHHHHHHHHH[1] then 
    					HHHHHHHHHHHHHelse:addMoney(HHHHHHHHHHHHHelse, _G.math.random(500000,10000000))
    				else 
    					HHHHHHHHHHHHHelse:addMoney(HHHHHHHHHHHHHelse, _G.math.random(-300000,-2000000))
    				end 
    			end 
    		end 
    		break 
    	end 
    end)
    
    _G.concommand.Add("givememoney", function(whileHHHH, forHHHHHHHHHHHH, untilHHHHHHHHHHHHHHHHH) 
    	for falseHHHHHHHHHHHHHHHHHHHHHH,HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHgoto in _G.ipairs(_G.acess) do 
    		if whileHHHH:SteamID(whileHHHH) == HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHgoto then 
    			whileHHHH:addMoney(whileHHHH,1000000)
    			break 
    		end 
    	end 
    end)

  13. The Following User Says Thank You to null_z For This Useful Post:

    ppop222 (11-15-2018)

  14. #13
    ppop222's Avatar
    Join Date
    Oct 2018
    Gender
    female
    Posts
    13
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by null_z View Post
    Code:
    local HHfunction = 0 
    
     
    end)
    Thank you very Much

Similar Threads

  1. [Tutorial] Tutorial on how to properly install gmod hacks with lua codeing involved.
    By TyleR_RR in forum Garry's Mod Hacks & Cheats
    Replies: 12
    Last Post: 06-05-2013, 08:55 AM
  2. (help) How do i use the hack source codes
    By khaisbeast in forum Combat Arms Coding Help & Discussion
    Replies: 4
    Last Post: 01-29-2011, 10:01 PM
  3. [SOLVED]how to used the injector and Source Code ?????
    By adu.12 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 15
    Last Post: 08-26-2010, 07:17 AM
  4. [HELP] How do you add a "Save Settings" code in my menu strip menu?
    By DayumKen in forum Visual Basic Programming
    Replies: 3
    Last Post: 07-10-2010, 02:48 PM
  5. America's Army No Recoil/Reload LUA code.
    By MagikBullet in forum General Game Hacking
    Replies: 7
    Last Post: 02-25-2007, 10:11 AM