Your message dated Mon, 9 Jun 2008 15:31:32 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#485422: john: cannot use either --rules or --test 
options
has caused the Debian Bug report #485422,
regarding john: explain better the use of --rules and --test
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
485422: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485422
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: john
Version: 1.7.2-3
Severity: normal

$ /usr/sbin/john -test ~/mypasswd 
Created directory: /home/pot/.john
Invalid options combination or duplicate option: "-test"

$ /usr/sbin/john --test ~/mypasswd 
Invalid options combination or duplicate option: "--test"

$ /usr/sbin/john -rules ~/mypasswd 
Invalid options combination or duplicate option: "-rules"

$ /usr/sbin/john --rules ~/mypasswd 
Invalid options combination or duplicate option: "--rules"

$ /usr/sbin/john ~/mypasswd 
Loaded 7 password hashes with 6 different salts (FreeBSD MD5 [32/64 X2])
cng              (cng)
lp               (lp)


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set 
to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages john depends on:
ii  john-data               1.7.2-3          active password cracking tool - ch
ii  libc6                   2.7-10           GNU C Library: Shared libraries
ii  libssl0.9.8             0.9.8g-10+lenny1 SSL shared libraries

john recommends no packages.

-- debconf information:
  john/noconfigfile:
  john/wordlist: /usr/share/john/password.lst
  john/cronjob: false
  john/cronjob-replacement: true
  john/no-replacement:



--- End Message ---
--- Begin Message ---
tags 485422 wontfix
retitle 485422 john: explain better the use of --rules and --test
severity 485422 wishlist
thanks

Ciao Francesco,

On Mon, 09 Jun 2008 14:05:51 +0200, Francesco Potorti` wrote:

> Package: john
> Version: 1.7.2-3
> Severity: normal
> 
> $ /usr/sbin/john -test ~/mypasswd 
> Created directory: /home/pot/.john
> Invalid options combination or duplicate option: "-test"
> 
> $ /usr/sbin/john --test ~/mypasswd 
> Invalid options combination or duplicate option: "--test"

--test does *not* need any filename as argument. It just does a benchmark of
john's capabilities on the system it's running on. From the manpage:

-test
  Benchmarks all the enabled ciphertext format crackers, and tests them
  for correct operation at the same time.

In fact, if you try it without any argument, it just works:

$ john -test
Benchmarking: Traditional DES [64/64 BS MMX]... ^CWait...
Session aborted
$ john --test
Benchmarking: Traditional DES [64/64 BS MMX]... ^CWait...
Session aborted
$

> $ /usr/sbin/john -rules ~/mypasswd 
> Invalid options combination or duplicate option: "-rules"
> 
> $ /usr/sbin/john --rules ~/mypasswd 
> Invalid options combination or duplicate option: "--rules"

For --rules, it can only be used together with "--wordlist". From the manpage:

-rules
  Enables wordlist rules, that are read from [List.Rules:Wordlist].

I admit this is quite confusing. But if you read the on-screen help:

$ john | grep rules
--rules                    enable word mangling rules for wordlist mode
$

This is much clearer.
--rules does "word mangling" on words passed from a wordlist.
That is, if you have "pass", with --rules, john also tries:

Pass
pAss
paSs
pasS
...
PASS


I admit the manpage could be much clearer about these options. I'm closing the
bug, as it's not really a bug, but I'm pinging the upstream author (CCed) about
this. :)

Kindly,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature


--- End Message ---
-- 
Pkg-john-devel mailing list
Pkg-john-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-john-devel

Reply via email to