anti-reversing: a cake full of onions by richard wartell

42
7/20/2016 Language Agnostic Code Obfuscation: Now With More Cakes and Onions! ShakaCon 2016

Upload: shakacon

Post on 21-Jan-2018

113 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Anti-Reversing: A Cake Full of Onions by Richard Wartell

7/20/2016

Language Agnostic Code Obfuscation:

Now With More Cakes and Onions!

ShakaCon 2016

Page 2: Anti-Reversing: A Cake Full of Onions by Richard Wartell

@wartortell

[email protected]

https://github.com/wartortell/red_fishy_realness

http://labyrenth.com

Page 3: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 4: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 5: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 6: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 7: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 8: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 9: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 10: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 11: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 12: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 13: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 14: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 15: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 16: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 17: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 18: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 19: Anti-Reversing: A Cake Full of Onions by Richard Wartell

//IMPORTS

#include <string.h>

//GLOBALS

char glob1[] = "\x96\xe6\xe9\x96\x96\x96\x96”;

//CODE

char k618516 = '\x40'; for(int i=0; i<6; i++) {

glob11[i] = glob1[i] ^ k618516; }

sleep(12345);

//END

Page 20: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 21: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 22: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 23: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 24: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 25: Anti-Reversing: A Cake Full of Onions by Richard Wartell

Syntax

The order in which words or

phrases are placed on a computer.

You have a syntax error dumbfuck.

Page 26: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 27: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 28: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 29: Anti-Reversing: A Cake Full of Onions by Richard Wartell

if X:

Do a thing;

else:

Do another thing;

x = a + b

For x in range(crap):

print some crap

crap = ”sure”

a = 1

b = 3

Page 30: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 31: Anti-Reversing: A Cake Full of Onions by Richard Wartell

crap = ”sure”

crap = 9001

crap = 9001.1

crap = ‘a’

char* crap = ”sure”;

int crap = 9001;

float crap = 9001.1;

char crap = ‘a’;

`name` = `value`

`type` `name` = `value`;

Page 32: Anti-Reversing: A Cake Full of Onions by Richard Wartell

if X:

<code block>

else:

<code block>

if (X) {

<code block> }

else {

<code block>

if `false conditionals`:

<fake code block>

else:

<real code block>

if (`false conditional`) {

<fake code block> }

else {

<real code block>

Page 33: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 34: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 35: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 36: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 37: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 38: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 39: Anti-Reversing: A Cake Full of Onions by Richard Wartell

import sys

sys.exit()

Page 40: Anti-Reversing: A Cake Full of Onions by Richard Wartell
Page 41: Anti-Reversing: A Cake Full of Onions by Richard Wartell

https://github.com/wartortell/red_fishy_realness

Page 42: Anti-Reversing: A Cake Full of Onions by Richard Wartell

Questions?

@wartortell

[email protected]