GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
COBFUSC(1) FreeBSD General Commands Manual COBFUSC(1)

cobfusc
make a C source file unreadable but compilable

cobfusc [-AabdemntxV] [-c case] [-f suffix] [-g file] [-i idobf]
[-o file] [-p prefix] [-r file] [-s seed] [-u file] [-w cols]
[-z file] [file ...]

This document contains only a brief description of cobfusc. For a more complete documentation, please read the Info file or the Texinfo manual.

The cobfusc utility converts the input file, written in the C language, into a human unreadable one, but compilable. The main work is converting every identifier into a meaningless one, removing any comment and compacting all the white-spaces when they are not required.

The options are as follows:

Enable a heavy obfuscation for the source file. This is equivalent to the -ademt -i numeric options. The digraphize option is not enabled by default since the Amendement 1 (1994) changes to ANSI X3.159-1989 (“ANSI C89”) are supported only by few C compilers.
Garble every string with octal escapes.
Enable the digraphize mode.
no | lower | upper | screw | random
Set the identifier case obfuscation mode.
Compact the macros removing backslashes and white-spaces when they are not required.
Compact the white-spaces when they are not required.
suffix
Put the output of each processed file in a separate file with suffix appended to file name instead of standard output. This is useful when processing a package with a lot of source files.
file
Add first the identifiers contained in file to the obfuscation table. Useful when those identifiers are shared between two or more source files.
no | numeric | word | random
Set the identifier obfuscation mode.
Strip the comments.
Garble integers with expressions.
file
Set the output destination to file.
prefix
Specify the prefix to use when generating the identifiers.
file
Tell cobfusc that the identifiers contained in file must not be obfuscated.
seed
Specify the seed for generating the random numbers.
Enable the trigraphize mode.
Dump the symbol table to file.
Print version information on standard output then exit.
Set the width limit of the output.
Exclusive mode; obfuscate only the identifiers specified by the -g and -z parameters.
file
Add the identifiers pairs contained in file to the obfuscation table.

cunloop(1), indent(1)

Sandro Sigala <sandro@sigala.it>
July 1, 2001 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.