Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with newer versions of hashcat #54

Open
oldmanul opened this issue Jan 11, 2017 · 11 comments
Open

Does not work with newer versions of hashcat #54

oldmanul opened this issue Jan 11, 2017 · 11 comments

Comments

@oldmanul
Copy link

From version 3.20 hashcat has strong requirements for the order and composition parameters. Agents don't work properly.
Version 3.30 adds new exit codes, perhaps it is important to.

@curlyboi
Copy link
Owner

could you be more specific what doesn't work?

@oldmanul
Copy link
Author

hashtopus.exe log with debug flag "true":

Hashtopus 1.5 running in console mode
Loading existing config XML
Reading XML element debug
Logging in to server...OK.
Loading task...assigned to 2, hashlist 1 (continue)
Hashlist already exists.
Requesting chunk...keyspace measuring required
Calculating keyspace...
D:\hashtopus-agent-master\bin\Release\hashcat\hashcat32.exe --session=hashtopus --keyspace --quiet --hash-type=500 -a 3 -1 ?l?d "..\hashlists\1" ?1?1?1?1?1?1?1
Hashcat subprocess started at 10:17:28
Hashcat subprocess exited at 10:17:28 (0s) with code -1
Requesting chunk...keyspace measuring required
Calculating keyspace...
D:\hashtopus-agent-master\bin\Release\hashcat\hashcat32.exe --session=hashtopus --keyspace --quiet --hash-type=500 -a 3 -1 ?l?d "..\hashlists\1" ?1?1?1?1?1?1?1
Hashcat subprocess started at 10:17:28
Hashcat subprocess exited at 10:17:28 (0s) with code -1
Requesting chunk...keyspace measuring required
Calculating keyspace...
D:\hashtopus-agent-master\bin\Release\hashcat\hashcat32.exe --session=hashtopus --keyspace --quiet --hash-type=500 -a 3 -1 ?l?d "..\hashlists\1" ?1?1?1?1?1?1?1
Hashcat subprocess started at 10:17:28
Hashcat subprocess exited at 10:17:28 (0s) with code -1
Requesting chunk...keyspace measuring required
Calculating keyspace...
Requesting chunk...^C

Run by hand:

D:\hashtopus-agent-master\bin\Release>d:\hashtopus-agent-master\bin\Release\hashcat\hashcat32.exe --session=hashtopus --keyspace --quiet --hash-type=500 -a 3 -1 ?l?d "..\hashlist\1" ?1?1?1?1?1?1?1
Usage: d:\hashtopus-agent-master\bin\Release\hashcat\hashcat32.exe [options]... hash|hashfile|hccapfile [dictionary|mask|directory].
..

Try --help for more help.

Remove hash list filename from arguments (not needed on calculating keyspace or speed)

D:\hashtopus-agent-master\bin\Release>d:\hashtopus-agent-master\bin\Release\hashcat\hashcat32.exe --session=hashtopus --keyspace --quiet --hash-type=500 -a 3 -1 ?l?d ?1?1?1?1?1?1?1
2176782336

D:\hashtopus-agent-master\bin\Release>d:\hashtopus-agent-master\bin\Release\hashcat\hashcat32.exe --version
v3.20

And it seems, are not checked hashcat exit codes in the calculation speed and keyspace.

@curlyboi
Copy link
Owner

hmm, looks like it. but the syntax doesn't seem wrong compared to what the help prints... is it possible that some of the parameters were removed from hashcat? like --quiet or --keyspace or something?

@oldmanul
Copy link
Author

Watched the parsing parameters in the new versions of hashcat. All parameters are the same, but stricter rules in the parsing. The first should be only options with a "-" or "--". Further parameters depend on the mode:

  • --benchmark - any option without the dash or double dash is parsing error;
  • --keyspace - next and the only parameter after "-" and "--" should be [dictionary|mask|directory]. If that was the hash|hashfile|hccapfile - parameters parsing error;
  • not "--keyspace" & not "--benchmark" - order as displayed in the help

@curlyboi
Copy link
Owner

i dont understand. you need to specify attack type and hash type with --keyspace as well....

about the - or --, does that mean i can only use ALL - or ALL -- but not mix them together?

@oldmanul
Copy link
Author

Ok, for simpler.
If need "--keyspace" - then no hash|hashfile|hccapfile option and [dictionary|mask|directory] must be last in command line.
If need "--benchmark" - no hash|hashfile|hccapfile and no [dictionary|mask|directory] options in command line.
Options with - or -- can be mixed, hashcat used "getopt" functions from standart C library for parsing that options.
P.S. Sorry for my English, i using google translator for translating

@curlyboi
Copy link
Owner

OOOOOOHHH! Now I understand. I thought you needed hash/hashfile/mask for --keyspace but I guess you really don't. I will fix this.

@winxp5421
Copy link

winxp5421 commented Jan 16, 2017

Watch out there is a slight issue with hashcat when dealing with WPA (--hash-type=2500) and --keyspace it requires a hccap file which we assume is a bug. As well as --keyspace reporting differently for the exact same task depending on --hash-type specified

Edit: --keyspace is reporting correctly for each hash-type specified just confirmed with atom, the WPA issues is a bug and will be fixed soon.

@curlyboi
Copy link
Owner

thanks for the heads-up. so i will just wait for the fix and then drop the #HL# completely for --keyspace

@ghost
Copy link

ghost commented Mar 11, 2017

Any news on this?
About the hccap file, the newer versions of hashcat started using a improved (slightly modified) hccap file, the hccapx (version 4.0 on the moment I'm writing this): https://hashcat.net/wiki/doku.php?id=hccapx
thanks.

@curlyboi
Copy link
Owner

oh man, i havent cracked a hash in a long time, i guess i will fix this when i need it again...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants