LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-31-2011, 12:50 PM   #1
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
john from slackbuild


Is John The Ripper from slackbuilds crippled? Or has it been that long that it has changed....?

I am trying to run unshadow and is not in the system. I looked at the build and is not in the build... :?

Last edited by SeRi@lDiE; 08-31-2011 at 01:47 PM.
 
Old 08-31-2011, 01:23 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
it builds fine here: which build scripts are you using?
for building, have you switched to root with "su -"? you should use that instead of the simple "su".
 
Old 08-31-2011, 01:47 PM   #3
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by ponce View Post
it builds fine here: which build scripts are you using?
for building, have you switched to root with "su -"? you should use that instead of the simple "su".
ponce,

Thanks for the reply. My issue is not with building it but with a tool missing which is "unshadow"
 
Old 08-31-2011, 02:09 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
unafs, unique and unshadow are just symlinks to the john binary, try launching them with their full path
Code:
/usr/lib/john/unshadow ...
(/usr/lib64/john/unshadow if you are on 64bit)
 
1 members found this post helpful.
Old 08-31-2011, 02:22 PM   #5
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by ponce View Post
unafs, unique and unshadow are just symlinks to the john binary, try launching them with their full path
Code:
/usr/lib/john/unshadow ...
(/usr/lib64/john/unshadow if you are on 64bit)
ah ic.

Works now.

Thanks.
 
Old 08-31-2011, 02:28 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
should be safe (no binary overlapping here on a slackware full install) also to apply this small patch to the slackbuild to not have to specify the full path
Code:
--- john.SlackBuild.orig        2011-08-31 21:23:52.000000000 +0200
+++ john.SlackBuild     2011-08-31 21:26:04.000000000 +0200
@@ -73,9 +73,12 @@
 cat << EOF > $PKG/usr/bin/john
 #!/bin/sh
 # John The Ripper launcher
-/usr/lib${LIBDIRSUFFIX}/john/john "\$@"
+/usr/lib${LIBDIRSUFFIX}/john/\$(echo \$0 | cut -d/ -f4) "\$@"
 EOF
 chmod 0755 $PKG/usr/bin/john
+ln -s /usr/bin/john $PKG/usr/bin/unafs
+ln -s /usr/bin/john $PKG/usr/bin/unique
+ln -s /usr/bin/john $PKG/usr/bin/unshadow
 
 find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

Last edited by ponce; 08-31-2011 at 02:32 PM.
 
1 members found this post helpful.
Old 08-31-2011, 03:06 PM   #7
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Sweet Thanks!
 
Old 08-31-2011, 06:05 PM   #8
wargus
Member
 
Registered: Mar 2010
Location: Switzerland
Distribution: Slackware
Posts: 98

Rep: Reputation: 23
It is kind of strange with John, when I simply run the john command, there is no output while pressing enter on the cli like this

Code:
# john --restore=rockyou     
Loaded 651 password hashes with 489 different salts (Traditional DES [128/128 BS SSE2-16])
Remaining 163 password hashes with 152 different salts

but when I write the whole path, there is a list of guesses... something like this

Code:
# /usr/lib64/john/john --restore=rockyou     
Loaded 651 password hashes with 489 different salts (Traditional DES [128/128 BS SSE2-16])
Remaining 163 password hashes with 152 different salts
guesses: 40  time: 143:01:08:16  c/s: 2314K  trying: b1ch61dc - b1ch61p3
note the line after Remaining 163 password hashes...
I've installed the newest slackbuild on 13.37... I wonder where the difference is because

Code:
/usr/bin/john
is a script

Code:
#!/bin/sh
# John The Ripper launcher
/usr/lib64/john/john "$@"
so as far as I understand it runs the same binary

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My name is John and I am new here kinetic1001101 LinuxQuestions.org Member Intro 1 09-20-2010 12:33 PM
John Lumby John Lumby LinuxQuestions.org Member Intro 2 10-22-2008 10:31 AM
John The Ripper infinity0022 Linux - Security 1 02-24-2008 12:23 AM
John the Ripper Baix Linux - Software 2 02-21-2005 11:05 AM
John the ripper Ephracis Linux - Software 2 12-01-2004 12:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration