4 ms·
Wcc: The Witchcraft Compiler Collection
- yjftsjthsd-h 9y agoSo it lets you use anything as a library? Am I reading that right?
- api 9y agoYes, and you can also de-link a binary into an object (.o) file and then re-link it into another binary.
- BugsJustFindMe 9y agoI had to scroll way too far before encountering some basic description of wtf this is. "binary black magic" is cute and entirely unhelpful. It appears to be: 'The primary use of wcc is to "unlink" (undo the work of a linker) ELF binaries, either executables or shared libraries, back into relocatable shared objects.'
- azernik 9y agoThat's the purpose of the titular program, but the package as a whole includes a lot of other utilities.
- chaoticmass 9y agoI clicked the link thinking/hoping it'd be a funny joke project of some kind... turns out it was way cooler.
- convivialdingo 9y agoHoly moly! This is incredibly cool, novel and useful for hacking around binaries and such. edit: Previous discussion on this: https://news.ycombinator.com/item?id=12281803 https://news.ycombinator.com/item?id=12281803
- Roboprog 9y agoHmm. Can Bob use it on the Laundry, though? Ob. Charles Stross reference :-) Seriously, though, this sounds like a really interesting hack for reusing stuff that wasn’t intended to be reused. Cool.
- voltagex_ 9y agoDoes anyone have real world use cases for this? The ls example ends too early but I think I know what they're getting at. wsh looks amazing for dynamic analysis though.
- hiccuphippo 9y agoSay you have an interactive graphics application but it uses a drm library called SmokeLib, you could unlink it, provide an alternative and regenerate the executable.
- solotronics 9y agothis is so incredibly badass
- Roboprog 9y agoOr link the app to a (Lua?) script which drives the menus for you for repetitive work. Not unlike the image processing work my daughter is doing for a bio research lab she is interning at. Fortunately, the image processing tool they are using has a built in “macro” scripting language. But my girl was the only student who knew how to use it :-)
- Retr0spectrum 9y agoI can see this being very useful for patching binaries, I'm curious how well it works in practice.
- tempodox 9y agoIf it's a compiler collection, what languages does it compile? And, more importantly, does it finally contain the SufficientlySmartCompiler®? With a title like that it would be really disappointing if it didn't.
- weinzierl 9y agoI saw Jonathan‘s presentation about WCC at BlackHat in 2016 and it was a lot of fun. It also helped me to understand the power and limits of WCC‘s approach, which wasn‘t clear to me from reading the documentation back then. There seems to be no video of the BlackHat talk freely available but I found this version [1] from DEF CON. [1] https://m.youtube.com/watch?v=3DUflmm7O8Y https://m.youtube.com/watch?v=3DUflmm7O8Y