Fun with Constrained Programming (2012)

colejohnson66 106 points 6 comments November 15, 2026
blog.cmpxchg8b.com · View on Hacker News

Discussion Highlights (4 comments)

hcs

Neat! I've messed with something similar for ZPAQ, didn't realize RAR had it as well. And for a long time, this might need (2012) In my case I wanted to compress CD subcodes, most of the unpredictability for these is from a CRC16 on every frame, so I made a filter to xor that out and then back in. If anyone finds that amusing: https://gist.github.com/hcs64/84d981f42cc9f3cfb0f4fc8b37d447...

lgas

Wow, never would've thought the RAR format had a whole VM built into it.

lexicality

I remember hearing rumours in the 2010s about rar files being dangerous because they could execute code when you unrar'd them, but never any actual details. I wonder how secure that VM actually is? Presumably you could use a filter to encrypt your malware payload on disk to hide from passive virus scanners, but can you detect how/what is running the decryption and provide different files for virustotal vs the actual user's computer?

meMohamedAtef

curios is unrar and modern archeve extractors still execute VM custom programs? or it discover only the standerd filters?

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed