websiteaccess | 3 Sep 2007 22:44
Picon

Re: looking for JTR latest version with all patches


I have downloaded 
http://www.openwall.com/john/f/john-1.7.2.tar.bz2
and
http://www.openwall.com/john/contrib/john-...2-all-7.diff.gz 
then
run 'patch -p2 < john-1.7.2-all-7.diff'
then 
run 'make macosx-x86-sse2'

I have patched source, then trying compilating but there an error at 
the end. here it is the log.

Last login: Fri Sep  3 22:30:25 on console
Welcome to Darwin!
macintosh:~ xxxxxx$ cd /Users/xxxxxx/Desktop/john-1.7.2/src/ 
macintosh:~/Desktop/john-1.7.2/src xxxxxx$ patch -p2 < 
john-1.7.2-all-7.diff
patching file BFEgg_fmt.c
patching file DOMINOSEC_fmt.c
patching file IPB2_fmt.c
patching file KRB5_fmt.c
patching file KRB5_std.c
patching file KRB5_std.h
patching file MD5_apache_fmt.c
patching file MD5_fmt.c
patching file MD5_std.c
patching file MD5_std.h
patching file MYSQL_fmt.c
patching file Makefile
(Continue reading)

Tremaine Lea | 3 Sep 2007 23:03
Picon

Re: looking for JTR latest version with all patches


On 3-Sep-07, at 2:44 PM, websiteaccess wrote:

> /usr/bin/ld: warning -L: directory name (/usr/local/ssl/lib) does not
> exist

Looks like you don't have the ssl libs installed, or they aren't in  
your path.

One possible difference between your OS X install and mine is that I  
have DarwinPorts installed.  If you plan on doing anything like JtR  
or other security related tools, I would recommend getting this  
installed ASAP.  You can then install the needed libraries etc.

Cheers,

---
Tremaine Lea
Network Security Consultant
Intrepid ACL
"Paranoia for hire"
Erik Winkler | 4 Sep 2007 03:44
Picon

Re: looking for JTR latest version with all patches


On Sep 3, 2007, at 5:03 PM, Tremaine Lea wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 3-Sep-07, at 2:44 PM, websiteaccess wrote:
>
>> /usr/bin/ld: warning -L: directory name (/usr/local/ssl/lib) does not
>> exist
>
> Looks like you don't have the ssl libs installed, or they aren't in  
> your path.
>

Actually, the warning means nothing and openssl is fully supported  
under MacOSX.  The directory includes are their for other flavors of  
UNIX.  Even if the path doesn't exist, the code will still compile as  
long as the openssl libraries are found.

The real error is

/usr/bin/ld: alignment (0x8000) of section (__DATA,__data) greater than
the segment alignment (0x1000)
collect2: ld returned 1 exit status

I have seen this before and it had to do with DO_ALIGN in the x86  
assembly code.  I guess the MacOSX gcc compiler for Intel is not as  
forgiving as other compilers.  Not sure if this is the same error,  
but it is someplace to start.  Try compiling a standard x86 version  
(Continue reading)

Tremaine Lea | 4 Sep 2007 04:08
Picon

Re: looking for JTR latest version with all patches

On 3-Sep-07, at 7:44 PM, Erik Winkler wrote:

>
> On Sep 3, 2007, at 5:03 PM, Tremaine Lea wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 3-Sep-07, at 2:44 PM, websiteaccess wrote:
>>
>>> /usr/bin/ld: warning -L: directory name (/usr/local/ssl/lib) does  
>>> not
>>> exist
>>
>> Looks like you don't have the ssl libs installed, or they aren't  
>> in your path.
>>
>
> Actually, the warning means nothing and openssl is fully supported  
> under MacOSX.  The directory includes are their for other flavors  
> of UNIX.  Even if the path doesn't exist, the code will still  
> compile as long as the openssl libraries are found.

I'd understood from the error he posted that they weren't being found.

>
> The real error is
>
> /usr/bin/ld: alignment (0x8000) of section (__DATA,__data) greater  
> than
(Continue reading)

websiteaccess | 4 Sep 2007 09:57
Picon

Re: looking for JTR latest version with all patches

I downloaded JTR from http://www.openwall.com/john/f/john-1.7.2.tar.bz2
and
patch from http://www.openwall.com/john/contrib/john-...2-all-7.diff.gz
unzipped all
 then 

1) ________________
cd into the src directory
run 'patch -p2 < john-1.7.2-all-7.diff'
run 'make macosx-x86-sse2'
_______RESULT_________
/usr/bin/ld: warning -L: directory name (/usr/local/ssl/lib) does not 
exist
/usr/bin/ld: alignment (0x8000) of section (__DATA,__data) greater than 
the segment alignment (0x1000)
collect2: ld returned 1 exit status
make[1]: *** [../run/john] Error 1
make: *** [macosx-x86-sse2] Error 2
-----------------------

2)_____________________
cd into the src directory
run 'patch -p2 < john-1.7.2-all-7.diff'
run 'make generic'
_________RESULT____________
worked but c/s is very low :(
------------------------
-------------------------------------------------------
 <at>  <at>  <at>  <at>  <at>  <at>  <at>  <at>  JTR without jumbo patch compiled with sse2  <at>  <at>  <at>  <at>  <at>  <at>  <at>  <at>  <at> 
Benchmarking: Traditional DES [128/128 BS SSE2]... DONE
(Continue reading)

Erik Winkler | 4 Sep 2007 16:19
Picon

Re: looking for JTR latest version with all patches


On Sep 4, 2007, at 3:57 AM, websiteaccess wrote:

> I downloaded JTR from http://www.openwall.com/john/f/ 
> john-1.7.2.tar.bz2
> and
> patch from http://www.openwall.com/john/contrib/john-...2- 
> all-7.diff.gz
> unzipped all
>  then

I have found your compile problem.  It is in the file sha1-mmx.S.   
For some reason the line

"#define MMX_COEF                        4"

in the file x86-sse.h causes the error when compiling sha1-mmx.S.  I  
had to reduce this number to 1 to get it to compile on my system.

I am not an assembly programmer, so if anyone can shed some light on  
why this is happening with sha1-mmx.S and none of the other mmx  
related assembly please let me know.

Thanks,

Erik

--

-- 
To unsubscribe, e-mail
john-users-unsubscribe@... and reply
(Continue reading)

Russell Fulton | 3 Sep 2007 23:13
Picon
Picon
Favicon

Re: looking for JTR latest version with all patches

hmmmm.... I think that libssl comes installed on MacOS X, on my system
it's in /usr/lib:

bluebottle:~/tmp rful011$ find /usr -name libssl\*
/usr/lib/libssl.0.9.7.dylib
/usr/lib/libssl.0.9.dylib
/usr/lib/libssl.dylib
/usr/libexec/httpd/libssl.so

with separate copy as part of an apache distro -- I think I have
installed apache2.0 at some stage.

try doing a find as above and tweaking the config (./configure --help)
to give the path to the ssl library if you have it or use fink or darwin
ports if you don't.

Russsell

Tremaine Lea wrote:
> On 3-Sep-07, at 2:44 PM, websiteaccess wrote:
>
> > /usr/bin/ld: warning -L: directory name (/usr/local/ssl/lib) does not
> > exist
>
> Looks like you don't have the ssl libs installed, or they aren't in
> your path.
>
> One possible difference between your OS X install and mine is that I
> have DarwinPorts installed.  If you plan on doing anything like JtR or
> other security related tools, I would recommend getting this installed
(Continue reading)


Gmane