Git Product home page Git Product logo

obfuscation's Introduction

obfuscation

Installation:

Use make for compiling all files.

  • make: Compile all.
  • make clean: Delete temporary files.
  • make fclean: Delete executable ./obf file & libft.a library.
  • make re: It's rules - make fclean & make in one.

Usage:

./obf [flags] [files]

Flags:

  • -w: Delete whitespaces and commentary from files.
  • -o: Obfuscate all lines in file(concatenate lines to one if result line length less than this value).
  • -r: Rename all variables in files using Caesar Cipher with this value.
  • -f: Generate fake commands in End of Lines if concated line lenght less than 510 sumbols.
Note: Minimum arguments for program is 2. Flags in first argument and minimum 1 file for correct work.

Examples:

Example #1:
$ ./obf -wro file1.cfg file2.cfg
        file1.cfg:
Source file reading: OK.
Cuting whitespaces: OK.
Encrypting: OK.
Obfuscating: OK.
Saving to file 'obf_file1.cfg': OK.
        file2.cfg:
Source file reading: OK.
Cuting whitespaces: OK.
Encrypting: OK.
Obfuscating: OK.
Saving to file 'obf_file2.cfg': OK.

Program will create 2 obfuscated files(obf_file1.cfg & obf_file2.cfg) where will be deleted whitespaces from all files, renamed all variables and obfuscated lines.

Example #2:
$ ./obf -wr file1.cfg file2.cfg file3.cfg file4.cfg
        file1.cfg:
Source file reading: OK.
Cuting whitespaces: OK.
Encrypting: OK.
Saving to file 'obf_file1.cfg': OK.
        file2.cfg:
Source file reading: OK.
Cuting whitespaces: OK.
Encrypting: OK.
Saving to file 'obf_file2.cfg': OK.
        file3.cfg:
Source file reading: OK.
Cuting whitespaces: OK.
Encrypting: OK.
Saving to file 'obf_file3.cfg': OK.
        file4.cfg:
Source file reading: OK.
Cuting whitespaces: OK.
Encrypting: OK.
Saving to file 'obf_file4.cfg': OK.

Program will create 4 obfuscated files(the same files like in example above), but if obf_file1.cfg (or the same program outputed files from program) already exist its will re-writed with new data where will be deleted whitespaces and renaming variables in all files.

obfuscation's People

Contributors

iipal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.