Help us understand the problem. What is going on with this article?

PkCrack を Mac OS X Mavericks で build する

More than 3 years have passed since last update.

追記

Homebrew からインストールする方法もあります。
コメントでの情報提供に感謝 :pray:

brew install pkcrack

暗号化された ZIP ファイルに対して既知平文攻撃を行う PkCrack を Mac で build する方法を紹介します。

まずは PkCrack から source をダウンロードします。

wget http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/pkcrack-1.2.2.tar.gz
tar xzvf pkcrack-1.2.2.tar.gz
cd pkcrack-1.2.2/src
make

make でコケるはずです。
次のようにファイルの一部を修正します。

Makefile 2 行目

-CFLAGS=-O6 -Wall
+CFLAGS=-O4 -Wall

exfunc.c 44 行目

-#include <malloc.h>
+// #include <malloc.h>

extract.c 71 行目

-#include <malloc.h>
+// #include <malloc.h>

main.c 83 行目

-#include <malloc.h>
+// #include <malloc.h>

readhead.c 58 行目

-#include <malloc.h>
+// #include <malloc.h>

zipdecrypt.c 87 行目

-#include <malloc.h>
+// #include <malloc.h>

以上。
あとは、いつも通り make するだけ。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away