WCC(1)

πŸ“¦
version 0.0.7 Β· 2 versions
, in debian trixie, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

okay so bestie, say hi to wcc β€” the Witchcraft Core Compiler, and it is literally living in section 1 of the manual (User Commands). The vibe? Recompiling binary files. The energy? Immaculate. πŸ’…


πŸŽ€ NAME πŸŽ€

wcc β€” recompile binary files ✨

πŸ“œ SYNOPSIS πŸ“œ

wcc [options] file

πŸ¦‹ DESCRIPTION πŸ¦‹

The Witchcraft Core Compiler is part of the Witchcraft Compiler Collection. (yes, the whole collection, and yes it's iconic 🫢)

The wcc compiler takes binaries (ELF, PE, ...) as an input and creates valid ELF binaries as an output. It can be used to create relocatable object files from executables or shared libraries. πŸ”₯

✨ Options ✨

ngl bestie, the og page just drops these flags with no explanation attached, and I am not about to make stuff up. So here is every single one, exactly as written, no cap. πŸ“
  • -o, --output β€” <output file> πŸ’–
  • -m, --march β€” <architecture> πŸ¦‹
  • -e, --entrypoint β€” <0xaddress> 🎯
  • -i, --interpreter β€” <interpreter> 🌸
  • -p, --poison β€” <poison> πŸ’€
  • -s, --shared β€” 🌈
  • -c, --compile β€” ✨
  • -S, --static β€” 🧚
  • -x, --strip β€” πŸŽ€
  • -X, --sstrip β€” 🫢
  • -E, --exec β€” πŸ”₯
  • -C, --core β€” πŸ‘‘
  • -O, --original β€” ⭐
  • -D, --disasm β€” πŸ”­
  • -d, --debug β€” πŸ›
  • -h, --help β€” πŸ™ˆ
  • -v, --verbose β€” πŸ—£οΈ
  • -V, --version β€” πŸ’œ

🌈 EXAMPLES 🌈

Step one: unlink era 😭

wcc -c /bin/ls -o /tmp/ls.o

Unlink the binary /bin/ls into a relocatable object named /tmp/ls.o πŸ’–

Step two: link it up, slay πŸ”₯

gcc /tmp/ls.o -o /tmp/ls.so -shared

Use the gcc compiler to link the previously generated /tmp/ls.o relocatable object into a shared library /tmp/ls.so ✨


πŸ“ NOTES πŸ“

The Witcraft Compiler Collection is a set of reverse engineering tools. (and yes, the og page spells it "Witcraft" β€” iykyk πŸ“)

πŸ‘‘ AUTHOR πŸ‘‘

Written by endrazine (Jonathan Brossard) 🫢

πŸ› REPORTING BUGS πŸ›

Witchcraft Compiler Collection online bug tracker: https://github.com/endrazine/wcc/issues πŸ’Œ

Copyright Jonathan Brossard

License: MIT and BSD Licenses. See https://github.com/endrazine/wcc/blob/master/LICENSE.

πŸ”­ SEE ALSO πŸ”­

The full documentation of the Witchcraft Compiler Collection is available online at https://github.com/endrazine/wcc/wiki 🌟


and that's the whole page, bestie β€” Witchcraft Compiler Collection, April 2017, WCC(1). periodt. πŸ’…

πŸ“¦ where this page comes from