hashcat Forum
How to input '-' charactor? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html)
+--- Forum: General Help (https://hashcat.net/forum/forum-8.html)
+--- Thread: How to input '-' charactor? (/thread-3921.html)



How to input '-' charactor? - xieli9_fly - 12-25-2014

when using cudahashcat-plus64.exe to crack md5.

like cudahashcat-plus64.exe -m 0 -a 3 --force d:\2222222.md5 -?1?1?1?1?1 , string start with '-'
result is program report error!

help ! how can i define a string start with '-' to crack?


RE: How to input '-' charactor? - philsmd - 12-25-2014

You can just use -- to mark the end of the parameters.
For instance:
Code:
cudahashcat-plus64.exe -m 0 -a 3 d:\2222222.md5 -- -?a?a?a?a?a

There are several other ways to do it, but most of them are more platform-dependent like the caret escape (^) under windows, or different types of quotes (' vs ").
But the end-of-parameter marker (--) should work cross-platform iirc

EDIT: why did you use ?1 if you didn't specify a --custom-charset1 (or short -1) ? see http://hashcat.net/wiki/doku.php?id=mask_attack#custom_charsets


RE: How to input '-' charactor? - xieli9_fly - 12-25-2014

OK, works.
Thanks a lot!