Please note, this is a STATIC archive of website hashcat.net from 08 Oct 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: Return Code backwards
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Seems lite returns 1 as an exit code when it finds a hash, and 0 when it fails to.... This is the opposite of how plus behaves. I would think Lite has it backwards, no?

user@host:~/crackers/oclHashcat-lite-0.10$ ./oclHashcat-lite64.bin -m 0 --pw-min=1 --pw-max=4 098f6bcd4621d373cade4e832627b4f6 ?a?a?a?a
oclHashcat-lite v0.10 by atom starting...

Password lengths range: 1 - 4
Watchdog: Temperature abort trigger set to 90c
Watchdog: Temperature retain trigger set to 80c
Device #1: Cayman, 1024MB, 800Mhz, 24MCU
Device #2: Cayman, 1024MB, 800Mhz, 24MCU

098f6bcd4621d373cade4e832627b4f6:test

Status.......: Cracked
Hash.Target..: 098f6bcd4621d373cade4e832627b4f6
Hash.Type....: MD5
Time.Running.: 1 sec
Time.Left....: 0 secs
Plain.Mask...: ?a?a?a?a
Plain.Text...: *;J)
Plain.Length.: 4
Progress.....: 70041600/81450625 (85.99%)
Speed.GPU.#1.: 147.8M/s
Speed.GPU.#2.: 134.2M/s
Speed.GPU.#*.: 276.9M/s
HWMon.GPU.#1.: 99% Util, 88c Temp, 66% Fan
HWMon.GPU.#2.: 99% Util, 87c Temp, 63% Fan

Started: Thu Nov 1 12:32:58 2012
Stopped: Thu Nov 1 12:33:05 2012
user@host:~/crackers/oclHashcat-lite-0.10$ echo $?1
user@host:~/crackers/oclHashcat-lite-0.10$ ./oclHashcat-lite64.bin -m 0 --pw-min=1 --pw-max=3 098f6bcd4621d373cade4e832627b4f6 ?a?a?a?a
oclHashcat-lite v0.10 by atom starting...

Password lengths range: 1 - 3
Watchdog: Temperature abort trigger set to 90c
Watchdog: Temperature retain trigger set to 80c
Device #1: Cayman, 1024MB, 800Mhz, 24MCU
Device #2: Cayman, 1024MB, 800Mhz, 24MCU

[s]tatus [p]ause [r]esume [q]uit =>
Status.......: Exhausted
Hash.Target..: 098f6bcd4621d373cade4e832627b4f6
Hash.Type....: MD5
Time.Running.: 1 sec
Time.Left....: 0 secs
Plain.Mask...: ?a?a?a
Plain.Text...: *an
Plain.Length.: 3
Progress.....: 857375/857375 (100.00%)
Speed.GPU.#1.: 5730.4k/s
Speed.GPU.#2.: 0/s
Speed.GPU.#*.: 11460.8k/s
HWMon.GPU.#1.: 99% Util, 88c Temp, 66% Fan
HWMon.GPU.#2.: 99% Util, 87c Temp, 66% Fan

Started: Thu Nov 1 12:33:23 2012
Stopped: Thu Nov 1 12:33:31 2012
user@host:~/crackers/oclHashcat-lite-0.10$ echo $?
0
There is a docs/status_codes.txt that lists the return codes for -lite and -plus
However it's inconsistent because 0 actually indicates a "successful" run (posix standard).
Its required for some self-test scripts.