inapt
|
  |
| Joined: 04 Oct 2008 |
| Total Posts: 11666 |
|
|
| 02 Nov 2014 11:08 PM |
I just spent an hour on this
This is called 'obfuscated code', basically making code impossible to read and very hard to decode
this script i made can add three numbers between 1 - 100 and print the output
http://pastebin.com/BkJQ2Ubr |
|
|
| Report Abuse |
|
|
jonscarf
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 1430 |
|
| |
|
inapt
|
  |
| Joined: 04 Oct 2008 |
| Total Posts: 11666 |
|
|
| 02 Nov 2014 11:09 PM |
my head hurts from all that math i had to do
|
|
|
| Report Abuse |
|
|
emporerj
|
  |
| Joined: 23 Nov 2010 |
| Total Posts: 39351 |
|
| |
|
inapt
|
  |
| Joined: 04 Oct 2008 |
| Total Posts: 11666 |
|
| |
|
emporerj
|
  |
| Joined: 23 Nov 2010 |
| Total Posts: 39351 |
|
|
| 02 Nov 2014 11:18 PM |
Can you explain the process?
How does the script decode itself? |
|
|
| Report Abuse |
|
|
inapt
|
  |
| Joined: 04 Oct 2008 |
| Total Posts: 11666 |
|
|
| 02 Nov 2014 11:23 PM |
ok well, there's a reason it can only be numbers 1 - 100
(6*(10^3))%(50*(10^2)) math.cos(((1%10^70)^0)-1)*(((6*(10^3))%(50*(10^2)))/10^((48*9)^0)) math.ceil(math.huge^((math.cos(0))-1)*math.log(10^43))
the above are just fancy ways of saying 100. the first line basically says: _i__d = getfenv().getfenv, so that we can use _i__d instead of getfenv
three for loops are used:
for x = 1, 100 do getfenv()[x] = {} for y = 1, 100 do getfenv()[x][y] = {} for z = 1, 100 do getfenv()[x][y][z] = x+y+z end end end
the function is used like this:
function add(n1, n2, n3) return getfenv()[n1][n2][n3] end |
|
|
| Report Abuse |
|
|
emporerj
|
  |
| Joined: 23 Nov 2010 |
| Total Posts: 39351 |
|
|
| 02 Nov 2014 11:25 PM |
2 much math 4 me
this is y i turned away from a career in programming |
|
|
| Report Abuse |
|
|
Mixernxer
|
  |
| Joined: 06 Sep 2008 |
| Total Posts: 14112 |
|
| |
|