hashcat Forum
Return Code backwards - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Ancient Versions (https://hashcat.net/forum/forum-46.html)
+--- Forum: Very old oclHashcat-lite Support (https://hashcat.net/forum/forum-22.html)
+--- Thread: Return Code backwards (/thread-1718.html)



Return Code backwards - weasel0x00 - 11-01-2012

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


RE: Return Code backwards - atom - 11-03-2012

There is a docs/status_codes.txt that lists the return codes for -lite and -plus


RE: Return Code backwards - undeath - 11-03-2012

However it's inconsistent because 0 actually indicates a "successful" run (posix standard).


RE: Return Code backwards - atom - 11-05-2012

Its required for some self-test scripts.