0tuandz commited on
Commit
d0d5b38
·
verified ·
1 Parent(s): 34fed82

Add others/1749188256732_obf_m6U2VxX484JdTGFq08j286O2gH49R8G3kWFr7VVl5584T2lmwv2sC9naVD2SyF67.lua

Browse files
others/1749188256732_obf_m6U2VxX484JdTGFq08j286O2gH49R8G3kWFr7VVl5584T2lmwv2sC9naVD2SyF67.lua ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --[[
2
+ .____ ________ ___. _____ __
3
+ | | __ _______ \_____ \\_ |___/ ____\_ __ ______ ____ _____ _/ |_ ___________
4
+ | | | | \__ \ / | \| __ \ __\ | \/ ___// ___\\__ \\ __\/ _ \_ __ \
5
+ | |___| | // __ \_/ | \ \_\ \ | | | /\___ \\ \___ / __ \| | ( <_> ) | \/
6
+ |_______ \____/(____ /\_______ /___ /__| |____//____ >\___ >____ /__| \____/|__|
7
+ \/ \/ \/ \/ \/ \/ \/
8
+ \_Welcome to LuaObfuscator.com (Alpha 0.10.8) ~ Much Love, Ferib
9
+
10
+ ]]--
11
+
12
+ -- Example Code:
13
+ local a = ((16164 + (((3864 + 364101) - 274396) - 67600)) + (190952 - 110638))
14
+ a = a + ((113 - (26 + 67)) + (1219 - (119 + 997))) -- Example obfuscation
15
+
16
+ -- To hide your precious values, try obfuscating them!
17
+ -- Click the [Literals] button in the upper-right corner
18
+ local b = 1203456
19
+ local c = 1230471
20
+ local d = 8023481
21
+
22
+ -- The below if-statement is opque and can be predicted as
23
+ -- all conditions are staticly defined
24
+ if c > b then
25
+ print("true")
26
+ end
27
+
28
+ -- You may want to obfuscate such if-statements by using
29
+ -- the [Junk-If] button in the upper right corner
30
+ if 1 + d > c then
31
+ print("obfuscate the conditions!")
32
+ end
33
+
34
+ -- Next is [Strings], which will encrypt all strings but adds
35
+ -- extra code to decrypt them at runtime.
36
+ print("Clicking [Strings] will completely hide this string!")
37
+
38
+ -- Another important thing is to hide the order of things that get executed
39
+ -- to confuse an attacker using Control Flow Flattening. With [CFF v1] we can hide
40
+ -- the control flow of the following blocks.
41
+ do
42
+ function sieve_of_eratosthenes(n)
43
+ local is_prime = { }
44
+ for i = 1, n do
45
+ is_prime[i] = 1 ~= i
46
+ end
47
+ for i = 2, math.floor(math.sqrt(n)) do
48
+ if is_prime[i] then
49
+ for j = i* i, n, i do
50
+ is_prime[j] = false
51
+ end
52
+ end
53
+ end
54
+ return is_prime
55
+ end
56
+ local primes = sieve_of_eratosthenes(420)
57
+ for key, value in pairs(primes) do
58
+ if (value) then
59
+ print("Prime found: " .. key)
60
+ end
61
+ end
62
+ end
63
+
64
+ -- You might be satisfied with your result, but before sharing your work you should
65
+ -- use [Minify] (under Miscellaneous) to destroy all local variables and comments.
66
+ -- Please note that some pre-configured obfuscate buttons already do this for you ;)
67
+ print("How to obfuscate best?")
68
+
69
+ -- The highest level of obfuscation is done through virtualization,
70
+ -- in our case this means we will be running Lua inside Lua using the
71
+ -- Ironbrew2 virtulization tool. Ready? click [Demo VM] and see what happens!