hashcat Forum
get hashcat-type/version over command - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: get hashcat-type/version over command (/thread-6234.html)



get hashcat-type/version over command - matt99 - 01-25-2017

Is it possible to get the hashcat version from hashcat itself? I don't mean the --version parameter which gives me the actual version. I mean an output, that tells me if i use 'hashcat' or 'hashcatLite' or 'oclHashcat' and so. I know, that we only have one hashcat version now - but a lot of user also use i.e. oclHashcat nowadays. I need this output for a bash script. When i call hashcat over my script and someone use oclHashcat, then he will get an error and i want to avoid this problem.

When this works: Do oclHashcat, HashcatLite and alle the other versions use the same syntax like hashcat? In other words: Does the command
Code:
hashcat-type -m 1400 hashlist.hash dicitonary.dict
works in all 'types/versions'?


RE: get hashcat-type/version over command - Xanadrel - 01-25-2017

There is just hashcat now, and eventually hashcat-legacy for toasters.
So just hashcat, one syntax.


RE: get hashcat-type/version over command - atom - 01-26-2017

And tell those using oclHashcat to update


RE: get hashcat-type/version over command - matt99 - 01-26-2017

Yes, i know. But what, if someone downloades oclHashcat years ago (in this case - its true. I can't tell those people 'just update your hashcat' because of reasons). When i try the command
Code:
hashcat -m 1400 hashlist.hash dicitonary.dict
He will try to open hashcat and not oclHashcat. And because of this i want to extract the hashcat'version' and save this in a parameter. So i can open any hashcat with

Code:
hashcat=save hashcattype in this parameter with a command or anything else
$hashcat -m 1400 hashlist.hash dicitonary.dict



RE: get hashcat-type/version over command - atom - 01-26-2017

We can't care about backward compatibility because GPU drivers and OpenCL runtimes don't do so either. Therefore there's only one solution: Update hashcat and eventually buy new hardware if you need to.