WSH(1)
β¨ WSH(1) β bestie edition β¨
okay so real talk, this is the manual page for wsh, section 1 of the User Commands manual. yes queen, you found it π
π NAME π
wsh β The witchcraft shell π§βοΈβ¨
π¦ SYNOPSIS π¦
wsh [script] [-h|-q|-v|-V] [binary1] [binary2] ... [-x [script_arg1]
[script_arg2] ...]
πΈ DESCRIPTION πΈ
The Witchcraft Shell is part of the Witchcraft Compiler Collection. iconic behavior honestly.
So here's the vibe: wsh will take shared libraries, executables, and Witchcraft Shell Scripts written in Punk-C as input. It loads all of those executables into its own address space and then makes their API available for you to program with in its embedded interpreter. which means your binaries basically get superpowers β functionalities similar to what you'd get from reflection in interpreted languages like Java. no cap. π₯
β Options
-x,--argsβ the optional script argument separator π-q,--quietβ display less output π€«-v,--verboseβ display more output π£οΈ-V,--versionβ display version and build, then exit. bye bestie π
π Script
If the first argument is an existing file which is not a known binary file format, it is assumed to be a lua script and gets executed. simple as that fr fr π§
π Binaries
Any binary file name before the -x tag gets loaded before running the script. and the last binary loaded is the main binary analyzed. the way that works is so real π
π NOTES π
β οΈ okay listen, this part matters, bestie.
The Witchcraft shell calls dlopen() on the shared libraries and executables it loads into its address space. And in doing so, it may execute constructor functions from those executables. That may be unsafe if your whole intent is to analyse hostile code such as malware or binary exploits. like, genuinely, be careful π
Also just so we're clear on the context: the Witcraft Compiler Collection is a set of reverse engineering tools. π΅οΈβοΈ
π«Ά AUTHOR π«Ά
Written by endrazine (Jonathan Brossard) π
π REPORTING BUGS π
Witchcraft Compiler Collection online bug tracker: <https://github.com/endrazine/wcc/issues>
found a bug? tell them, don't suffer in silence π
π COPYRIGHT π
Copyright Jonathan Brossard
License: MIT and BSD Licenses. See <https://github.com/endrazine/wcc/blob/master/LICENSE>.
π SEE ALSO π
wcc(1), wld(1), wldd(1), wcch(1)
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 π this one's from the Witchcraft Compiler Collection, dated April 2017. go forth and load some binaries, but like, responsibly πβ¨π
π¦ where this page comes from
- debian trixie: wcc 0.0.7+dfsg-1+b2 Β· MIT
- nixos 26.05: wcc 0.0.11
- nixpkgs unstable: wcc 0.0.11
- ubuntu resolute: wcc 0.0.7+dfsg-2build2 Β· MIT
- ubuntu stonking: wcc 0.0.7+dfsg-2build3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms