Installing jumbo patch to john the ripper 1.7.9 (1443 Views)
Reply
Advisor
vazjuanp
Posts: 13
Registered: ‎08-05-2011
Message 1 of 11 (1,443 Views)
Accepted Solution

Installing jumbo patch to john the ripper 1.7.9

Hi all,

 

I am having some issues trying to install the jumbo5 patch to john the ripper version 1.7.9. I am doing this in order to be able to audit LDAP passwords crypted as SSHA. 

 

The problem is that I am following the instructions on the official website but when i type the command: "patch p1 < ../john-1.7.9-diff" it says "Hmm...  I can't seem to find a patch in there anywhere"

 

I am working on a HP-UX 11.31 server with john the ripper 1.7.9 already installed and working.

 

I've checked with the file command what type of file the patch is and it says "c program text".I don't know if I am doing something wrong. Here I post the link with the instructions I'm following.

 

http://openwall.info/wiki/john/how-to-extract-tarballs-and-apply-patches

 

Thanks!

Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 11 (1,406 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

Is your "john-1.7.9-diff" the same file as this one?

 

http://download.openwall.net/pub/projects/john/1.7.9/john-1.7.9-jumbo-5.diff.gz

 

The important part for troubleshooting problems like this is the patch header:

diff -urpN john-1.7.9.orig/README-jumbo john-1.7.9/README-jumbo
--- john-1.7.9.orig/README-jumbo        1970-01-01 00:00:00 +0000
+++ john-1.7.9/README-jumbo     2011-12-15 00:00:00 +0000

 It indicates the "diff" command used to produce the patch. The '-u' option means the "unified" mode of GNU diff... which is unfortunately not supported by HP-UX diff/patch utilities.

 

You'll need the GNU "patch" utility, which includes support for the "unified" diff mode:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/patch-2.6.1/

MK
Advisor
vazjuanp
Posts: 13
Registered: ‎08-05-2011
Message 3 of 11 (1,393 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

Hi,

 

I have checked my patch and it does have the same header as the one you show there. I have downloaded the GNU patch and installed it but it still does not work. I don't know if I have to do something different, I just installed the GNU patch with swinstall and tried the command again...

 

Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 4 of 11 (1,363 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

The GNU patch command will be installed in /usr/local/bin, while the standard HP-UX patch command is in /usr/bin.

If your $PATH environment variable lists /usr/bin before /usr/local/bin (or if /usr/local/bin is not listed at all), the standard /usr/bin/patch will be used unless you specify the path explicitly:

$ /usr/local/bin/patch -p1 < ../john-1.7.9-diff

 Alternatively, you could rename the GNU patch command to a different name to make it easily distinguishable from the HP-UX standard "patch" command:

# mv /usr/local/bin/patch /usr/local/bin/gnupatch

$ gnupatch -p1 < ../john-1.7.9.diff

 (If you find that /usr/local/bin is not listed in your $PATH, you might want to edit the system default setting for that variable. It is located in file /etc/PATH. If you add it, you might want to add /usr/local/man to /etc/MANPATH too. Both files should contain just a single line of text, with a colon-separated list of directories on it.)

MK
Advisor
vazjuanp
Posts: 13
Registered: ‎08-05-2011
Message 5 of 11 (1,357 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

It has worked!! Thank you very much for your help.

 

The only problem is that it's not working for the SSHA encrypted passwords as I thought it would do. Maybe I need a different patch. I'll try to look for it.

 

Thanks again for the help!!

Advisor
vazjuanp
Posts: 13
Registered: ‎08-05-2011
Message 6 of 11 (1,322 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

[ Edited ]

Hi again,

 

I have tried to install the John the Ripper 1.7.9-jumbo-5 which has the jumbo patch included but when I try to compile it, it gives this error:

 

"Make: Must be a separator on rules line 50.  Stop."

 

I am installing it on hp-ux 11.31

 

 

Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 7 of 11 (1,294 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

>"Make: Must be a separator on rules line 50.  Stop."

 

What's on line 50?  Is there a leading tab?  Are you using gmake instead of HP-UX make?

Advisor
vazjuanp
Posts: 13
Registered: ‎08-05-2011
Message 8 of 11 (1,284 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

Hi,

 

Sorry for the late reply.

 

I have compiled it following these instructions:

 

http://www.openwall.com/john/doc/INSTALL.shtml

 

I've tried the make clean SYSTEM and make clean generic. I've tried with these 2:

 

/usr/bin/make
/usr/ccs/bin/make

 

By the way, I guess the error refers to the file rules.c which is blank...

 

struct HashPtr *pHashTbl, *pHashDat;
static struct cfg_list rules_tmp_dup_removal;
static int             rules_tmp_dup_removal_cnt;

 

static struct {

 

 

Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 9 of 11 (1,281 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

>I've tried with these 2:  /usr/bin/make  /usr/ccs/bin/make

 

You may need to download GNU make into /usr/local/bin/gmake.  Especially if there is conditional make commands in the makefile.

Advisor
vazjuanp
Posts: 13
Registered: ‎08-05-2011
Message 10 of 11 (1,238 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

Hi,

 

I'm having some trouble using the gnu make. I'm downloading it from here http://ftp.gnu.org/gnu/make/ the version 3.82. Once it's untar'ed' I don't really know how to use it. Sorry for the silly question but could you help me at this stage?

 

Thanks!

Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 11 of 11 (1,234 Views)

Re: Installing jumbo patch to john the ripper 1.7.9

>Once it's untar'ed' I don't really know how to use it.

 

What's the path to the executable?

You should be able to invoke it by:

/usr/local/bin/make

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.