Package: john
Version: 1.7.3.1-1
Severity: normal

"man john" says "While cracking, you can press any key for status" but
for some reason this does not seem to work if I start john from a
shell script:

Steps to reproduce:
1) echo abc:0bee89b07a248e27c83fc3d5951213c1 > testcase
2) /usr/sbin/john --format=raw-MD5 testcase
3) wait 10 seconds
4) hit enter
5) echo "/usr/sbin/john --format=raw-MD5 testcase" > testcase.sh
6) bash testcase.sh
7) wait 10 seconds
8) hit enter

Expected results:
4 & 8) in both cases john prints the status every time you hit enter:

Loaded 1 password hash (Raw MD5 [raw-md5])
guesses: 0  time: 0:00:00:02 (3)  c/s: 4728K  trying: pm48ss - pm4239
guesses: 0  time: 0:00:00:03 (3)  c/s: 5445K  trying: p1zb2 - p18s4
guesses: 0  time: 0:00:00:05 (3)  c/s: 5835K  trying: sopybug - sopybro
guesses: 0  time: 0:00:00:07 (3)  c/s: 6367K  trying: mlbm0e - ml208b

Actual results:
4) works as expected
8) does not print anything

More info:
1) ls -l /proc/$(pidof john)/fd shows that /dev/tty is not open at all
   in step 8.

2) If I run john under strace it also does not print status when I hit
   enter (also /dev/tty is not open).


-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/6 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages john depends on:
ii  john-data               1.7.3.1-1        active password cracking tool - ch
ii  libc6                   2.11.3-2         Embedded GNU C Library: Shared lib
ii  libssl0.9.8             0.9.8o-4squeeze7 SSL shared libraries

john recommends no packages.

Versions of packages john suggests:
ii  wamerican [wordlist]          6-3        American English dictionary words 
ii  wamerican-large [wordlist]    6-3        American English dictionary words 

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to