/rarUnlocker

Changes "lock" flag in RAR archives

Primary LanguageCDo What The F*ck You Want To Public LicenseWTFPL

rarUnlocker

(c) AHOHNMYC, 2019. Distributed under WTFPL license

RAR archives are support "locking" (not encryption!). You cannot edit locked archives, at least until you convert it or unpack and pack again.

This tool may set and unset "lock" flag in RAR4 and RAR5 archives (i hope, earlier too. Technotes for RAR2 looks like RAR4, sooo).

The only one exclusion is RAR5 with ecnrypted headers (option "Encrypt file names"). Flags are encrypted, so simple bytepatching is not possible without reimplementing AES256, and so on... I'm too lazy. And don't forget: RAR is proprietary format.

This is not "cracker"! RAR uses very strong encryption (AES-256 with salt, password is encrypted with 2^18 iterations of PBKDF2 HMAC-SHA256). And nowadays may be broken only through bruteforcing.

Compiling

Windows build

gcc rarUnlocker.c, yep it's very primitive.

Usage

rarUnlocker file.rar - unsets lock flag

rarUnlocker -l file.rar - sets lock flag

WinRAR

Usefull linkus