archivers/bkcrack: import bkcrack-1.5.0

A ZIP archive may contain many entries whose content can be compressed
and/or encrypted. In particular, entries can be encrypted with a
password-based symmetric encryption algorithm referred to as
traditional PKWARE encryption, legacy encryption or ZipCrypto.

bkcrack is a command-line tool which implements a known plaintext
attack by Biham and Kocker. The main features are:

    Recover internal state from ciphertext and plaintext.
    Change a ZIP archive's password using the internal state.
    Recover the original password from the internal state.
This commit is contained in:
wiz 2023-10-22 18:38:59 +00:00
parent 75435ba44a
commit 8be9622a67
4 changed files with 47 additions and 0 deletions

11
archivers/bkcrack/DESCR Normal file
View File

@ -0,0 +1,11 @@
A ZIP archive may contain many entries whose content can be compressed
and/or encrypted. In particular, entries can be encrypted with a
password-based symmetric encryption algorithm referred to as
traditional PKWARE encryption, legacy encryption or ZipCrypto.
bkcrack is a command-line tool which implements a known plaintext
attack by Biham and Kocker. The main features are:
Recover internal state from ciphertext and plaintext.
Change a ZIP archive's password using the internal state.
Recover the original password from the internal state.

View File

@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.1 2023/10/22 18:38:59 wiz Exp $
DISTNAME= bkcrack-1.5.0
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_GITHUB:=kimci86/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/kimci86/bkcrack/
COMMENT= Crack legacy zip encryption with Biham and Kocher's known plaintext attack
LICENSE= zlib
USE_LANGUAGES= c++
INSTALLATION_DIRS= bin share/doc/bkcrack share/examples/bkcrack
post-install:
cd ${DESTDIR}${PREFIX} && ${MV} bkcrack bin
cd ${DESTDIR}${PREFIX} && ${MV} example/* share/examples/bkcrack
cd ${DESTDIR}${PREFIX} && ${MV} [lrt]* share/doc/bkcrack
.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"

8
archivers/bkcrack/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.1 2023/10/22 18:38:59 wiz Exp $
bin/bkcrack
share/doc/bkcrack/license.txt
share/doc/bkcrack/readme.md
share/doc/bkcrack/tools/deflate.py
share/doc/bkcrack/tools/inflate.py
share/examples/bkcrack/secrets.zip
share/examples/bkcrack/tutorial.md

View File

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2023/10/22 18:38:59 wiz Exp $
BLAKE2s (bkcrack-1.5.0.tar.gz) = eb36f26126f9a5872793b58c053f95960e96c5419d04fd2af26a9e1dbd6212dd
SHA512 (bkcrack-1.5.0.tar.gz) = 75dd31f4e8fff1a8c4cf05df3aad6baf4c6bd84692ced27bbc3aa2e7cc5fe535303d401a8130e0430b1524a0d4c4fd16e00c732075629e3f764fc6f1d97722f8
Size (bkcrack-1.5.0.tar.gz) = 96118 bytes