COBFUSC(1)
β¨ NAME β¨
bestie, this is cobfusc β make a C source file unreadable but compilable. the header vibes are UNTITLED(), LOCAL, UNTITLED(), so the manual name is folded in right here, periodt. π
πΈ SYNOPSIS πΈ
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 ...]
π DESCRIPTION π
okay so real talk: this doc is only a brief description of cobfusc. for the full lore, please read the Info file or the Texinfo manual, bestie. π
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. itβs giving chaos but make it compile. πβ¨
the options are as follows:
-Aβ Enable a heavy obfuscation for the source file. This is equivalent to the-ademt -i numericoptions. 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.
ngl, that Amendement spelling is exactly what the page says. also, digraphize is not on by default because only a few C compilers support those changes. π
-aβ Garble every string with octal escapes.-bβ Enable the digraphize mode.-cβ Set the identifier case obfuscation mode. values:no | lower | upper | screw | random.-dβ Compact the macros removing backslashes and white-spaces when they are not required.-eβ Compact the white-spaces when they are not required.-fsuffixβ Put the output of each processed file in a separate file withsuffixappended to file name instead of standard output. This is useful when processing a package with a lot of source files.-gfileβ Add first the identifiers contained infileto the obfuscation table. Useful when those identifiers are shared between two or more source files.-iβ Set the identifier obfuscation mode. values:no | numeric | word | random.-mβ Strip the comments.-nβ Garble integers with expressions.-ofileβ Set the output destination tofile.-pprefixβ Specify theprefixto use when generating the identifiers.-rfileβ Tellcobfuscthat the identifiers contained infilemust not be obfuscated.-sseedβ Specify theseedfor generating the random numbers.-tβ Enable the trigraphize mode.-uβ Dump the symbol table to file. (synopsis shows-u file, iykyk.)-Vβ Print version information on standard output then exit.-wβ Set the width limit of the output. (synopsis calls the argumentcols.)-xβ Exclusive mode; obfuscate only the identifiers specified by the-gand-zparameters.-zfileβ Add the identifiers pairs contained infileto the obfuscation table.
π SEE ALSO π
π AUTHORS π
Sandro Sigala <sandro@sigala.it> π
kisses bestie, this page is from Debian, dated July 1, 2001, and itβs COBFUSC(1). bye! π«Άβ¨
π¦ where this page comes from
- debian bookworm: cutils 1.6-6+b1 Β· BSD-2-Clause
- debian trixie: cutils 1.6-7 Β· BSD-2-Clause
- ubuntu jammy: cutils 1.6-5 Β· BSD-2-Clause
- ubuntu noble: cutils 1.6-6 Β· BSD-2-Clause
- ubuntu questing: cutils 1.6-7
- ubuntu resolute: cutils 1.6-7build1 Β· BSD-2-Clause
- ubuntu stonking: cutils 1.6-7build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms