GithubHelp home page GithubHelp logo

kara-4search / artfuscator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juliapoo/artfuscator

1.0 0.0 0.0 8.82 MB

A C compiler targeting an artistically pleasing nightmare for reverse engineers

License: MIT License

Python 35.62% C 55.85% Makefile 8.53%

artfuscator's Introduction

Artfuscator

A better approach towards psychological warfare against reverse engineers.

Overview

Artfuscator is a cursed C compiler built on the work of ELVM. It translates C code into a single controlflow graph that takes the form of any image of choice:

Wait a minute, didn't REPsych already do this?

Yes and no.

REPsych generates a controlflow graph that looks like an image and personally I've deemed such a sight traumatic to behold. However, there is a critical flaw in REPsych's approach: The controlflow graph has no functionality! This means that once an engineer takes a closer look, they'll realise that their fear was a bluff: They don't have to actually reverse it after all!

Building on the ideas pioneered by REPsych, Artfuscator gives credence to such a fear: The artistic controlflow graph implements the functionality of the program. Not only that, the graph is THE ONLY GRAPH that implements the entire function of the program! The only way to reverse the program is to dive deep into the individual pixels making up the image, ensuring maximum trauma inflicted.

Usage

So a fair bit of warning, I didn't bother to package this project properly. The MIT License does not hold me liable to any damage caused from using this project.

Setting up

# Clone this repo
git clone https://github.com/JuliaPoo/Artfuscator
# Clone all the submodules
cd Artfuscator
git submodule update --recursive --init --remote

# Build elvm with my bespoke backend
cd elvm
make art
cd ..

You would also need Python3 and nasm installed.

Building

Create your C source file in the project's root directory (e.g. hewwo.c), and in the same directory, run make <target> IMG=<filename> (e.g. make hewwo IMG=etc/niko-grey.png). The final binary is compiled in the dist folder.

Note that IMG must point to a single-channel greyscale image (mode L).

Examples

hewwo

lisp

How it works

TODO

Credits

artfuscator's People

Contributors

juliapoo avatar wimglenn avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.