Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
Man page
========

Name
----

    obfu - simple file (de-)obfuscator

Synopsys
--------

    obfu [-n size] FILES...

Description
-----------

  obfu obfuscates by reversing at most the <size> first bytes of FILES.
  Call with the same arguments to deobfuscate.
  If a file is too small, reverse the whole file.

  obfu is useful on binary files where you can prevent file(1) to detect a
  type or a video player to play videos for example.

  Obviously, this is just an obfuscation, not a secure way to protect
  your files.

Options
-------

  -n size
       defines number of bytes to reverse (default 10).


Compilation
===========

Edit config.mk to fit you system and:
       
    $ make

If you want to install obfu (default in /usr/local):

    $ make install

Obviously, you may have to be root depending on the install directory.

Example
=======

# make a copy of ls
$ cp /bin/ls .

# lets see what file(1) detects...
$ file ls
ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), [...]

# we reverse the 10 first bytes
$ obfu ls

# file detects garbage and ./ls doesn't work anymore
$ file ls
ls: \0
$ ./ls
zsh: exec format error: ./ls

# we reverse it a second time, and it works again!
$ obfu ls
$ ./ls
config.mk  LICENSE  ls  Makefile  obfu  obfu.1  obfu.c  obfu.o  README


Recent activity

Aurélien Aptel

Commits by Aurélien Aptel were pushed to knarf/obfu

09de5f1 - set v0.1 in config.mk
Aurélien Aptel

Commits by Aurélien Aptel were pushed to knarf/obfu

4a1e7af - add readme and add some text in manpage.
Aurélien Aptel

Commits by Aurélien Aptel were pushed to knarf/obfu

74fe374 - add 2-clause BSD license.
Aurélien Aptel

Commits by Aurélien Aptel were pushed to knarf/obfu

8dc1655 - fix fopen mode, add distribution boiler plate.
Aurélien Aptel

Commits by Aurélien Aptel were pushed to knarf/obfu

fa01011 - add makefile.
Aurélien Aptel

Commits by Aurélien Aptel were pushed to knarf/obfu

99e7a57 - first attempt.
Aurélien Aptel

Commits by Aurélien Aptel were pushed to knarf/obfu

1463ec9 - initial commit.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.