Skip to content

Commit ee944f1

Browse files
committed
Document Perl libs installation
Add a 'cpanfile' for easy installation of everything needed for running the various converters. Add a separate 'cpanfile.pass_gen' for pass_gen.pl as there's a lot of dependencies and that tool is not a converter. Add instructions to README-UBUNTU.
1 parent f40c3b7 commit ee944f1

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

doc/INSTALL-UBUNTU

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,7 @@ build CPU fallback chains for any x86-64 CPU.
142142
(run your converter as needed)
143143
deactivate
144144

145+
=== Install all Perl libs required for things like keepass2john.pl
146+
147+
sudo apt install cpanminus
148+
cpanm --installdeps .

run/cpanfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# cpanfile for John the Ripper (perl scripts)
2+
#
3+
# This file lists dependencies for the .pl scripts in the run/ directory,
4+
# with the exception of pass_gen.pl, which has its own separate cpanfile.
5+
# To install dependencies, use a tool like 'cpanm':
6+
# cpanm --installdeps .
7+
#
8+
# For "pass_gen.pl" there are lots of requirements usually not needed for
9+
# the casual user. To install them:
10+
# cpanm --installdeps < cpanfile.pass_gen
11+
12+
# Required for netntlm.pl (used for NTLMv1/NTLMv2 hash processing)
13+
requires 'Digest::HMAC', '1.03';
14+
15+
# Required for netntlm.pl and ldap2john.pl
16+
requires 'MIME::Base64';
17+
18+
# Required for bip39-derive-offline.pl
19+
requires 'Crypt::PBKDF2';
20+
21+
# Required for hccapx2john.pl and hccap2john.pl
22+
requires 'Digest::MD5';
23+
24+
# Required for keepass2john.pl
25+
requires 'XML::Parser';
26+
27+
# Required for radius2john.pl
28+
requires 'Net::Pcap';
29+
requires 'NetPacket::IP';
30+
requires 'Net::Radius::Dictionary';
31+
requires 'Digest::HMAC_MD5';
32+
33+
# Comments on optional/conditional dependencies:
34+
# - db2john.pl: Requires a DBI driver like DBD::SQLite if used with SQLite.
35+
# This is highly conditional, so it's not listed here. If you use it,
36+
# you would 'requires' the specific driver you need, e.g.:
37+
# requires 'DBD::SQLite';
38+
#
39+
# - wpapcap2john.pl: The script itself does not have explicit 'use' statements
40+
# for external Perl modules. It relies on the tshark utility.
41+
#
42+
# - sap2john.pl: Requires the SAP RFC SDK, which is not a Perl module
43+
# but an external C library. This must be installed separately.~

run/cpanfile.pass_gen

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# cpanfile for John the Ripper pass_gen.pl
2+
#
3+
# cat cpanfile.pass_gen >> cpanfile
4+
# cpanm --installdeps .
5+
#
6+
7+
requires 'Convert::EBCDIC';
8+
requires 'Crypt::AuthEnc::CCM';
9+
requires 'Crypt::CBC';
10+
requires 'Crypt::Cipher::AES';
11+
requires 'Crypt::Cipher::Blowfish';
12+
requires 'Crypt::DES_EDE3';
13+
requires 'Crypt::DES_EDE3'; require Crypt::CBC;
14+
requires 'Crypt::DES';
15+
requires 'Crypt::Digest::RIPEMD128';
16+
requires 'Crypt::Digest::RIPEMD160';
17+
requires 'Crypt::Digest::RIPEMD256';
18+
requires 'Crypt::Digest::RIPEMD320';
19+
requires 'Crypt::ECB';
20+
requires 'Crypt::Eksblowfish::Bcrypt';
21+
requires 'Crypt::Eksblowfish::Uklblowfish';
22+
requires 'Crypt::Mode::CFB';
23+
requires 'Crypt::RC4';
24+
requires 'Crypt::Rhash';
25+
requires 'Crypt::ScryptKDF';
26+
requires 'Crypt::UnixCrypt_XS';
27+
requires 'Digest::BLAKE2';
28+
requires 'Digest::GOST';
29+
requires 'Digest::Haval256';
30+
requires 'Digest::Keccak';
31+
requires 'Digest::MD2';
32+
requires 'Digest::MD4';
33+
requires 'Digest::MD5';
34+
requires 'Digest::SHA';
35+
requires 'Digest::SHA3';
36+
requires 'Digest::Tiger';
37+
requires 'Math::BigInt';
38+
requires 'Net::SSLeay';

0 commit comments

Comments
 (0)