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.
./obf [flags] [files]
-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.
$ ./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.
$ ./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.