Commit Graph

158 Commits (master)

Author SHA1 Message Date
jsteube 0ae955c5ba With this commit, all hash_mode depending branches from core files are converted into hooks which can be registered on a module level
5 years ago
jsteube aec6a3bc99 Get rid of hash_mode depending branches in potfile.c
5 years ago
jsteube bbcc8fea29 Use MODULE_DEFAULT in module_init to reference a global default function
5 years ago
jsteube a81a566121 Remove hashcat_ctx requirement in ascii_digest()
6 years ago
jsteube 0421cc6782 Add OPTS_TYPE_PT_ALWAYS_HEXIFY
6 years ago
jsteube 0ce01b8836 Make use of module_hash_decode_outfile() in potfile.c as well
6 years ago
jsteube cfc9772e0e Add module_hash_decode_zero_hash()
6 years ago
jsteube 3ad6fab63e Add module_potfile_disable()
6 years ago
Jens Steube 3aecd150f9 Call module_hash_encode() in ascii_digest()
6 years ago
Jens Steube 222d76f01e Replace parse_func() with module_hash_decode()
6 years ago
jsteube 88ebca40b8 Added hash-mode 16800 = WPA-PMKID-PBKDF2
6 years ago
jsteube 05a01d3843 fix some datatypes
6 years ago
jsteube 0796c074c3 Added -m 16500 Kernels
6 years ago
Rosen Penev 3ba84f17f1 More clang tidy fixes
7 years ago
philsmd 2c963054f3
show/left: fix new variable redeclaration bug
7 years ago
philsmd 276879b1ea
show/left: improve speed of --show/--left again by using a single malloc/free for all nodes and reduce RAM by using the first nodes hash information
7 years ago
philsmd 433513a47f
get rid of last_node in pot_tree_entry, we update the first node of the list instead of the last one
7 years ago
philsmd 6542331101
show/left: improved the performance by using a tree and linked node structure
7 years ago
jsteube 2517292ac1 Removed option --weak-hash-check (zero-length password check) to increase startup time, it also causes many Trap 6 error on OSX
7 years ago
jsteube 617dbb97ba Prepare migration -m 15800 into -m 2500
7 years ago
jsteube 5551337cf6 Show advice to use optimized kernels only if there's actually one for this hash-mode
7 years ago
philsmd f1c3f952ba
fixes show output of -m 9710, -m 9810 and -m 10410
7 years ago
jsteube 12d95fd22c Added option --example-hashes to show an example hash for each hash-mode
7 years ago
jsteube 03bb234045 Preparation for WPA/WPA2 AES-CMAC: works till PMK
7 years ago
jsteube fc100a852b Added hash-mode 2501 = WPA/WPA2 PMK
7 years ago
jsteube ad242c2f12 Working example of generic salt up to length 256 for mode 2100
7 years ago
Royce Williams 067372f5ce more event_log_* standardization
7 years ago
jsteube c04dd5c8b1 WPA cracking: Added support for WPA/WPA2 handshake AP nonce automatic error correction
7 years ago
jsteube 33a043ec63 Refactored internal use of esalt from sync with number of salts to sync with number of digests
7 years ago
Jens Steube dd55c1eb66 WPA: Changed format for outfile and potfile from essid:mac1:mac2 to hash:mac_ap:mac_sta:essid
7 years ago
jsteube 6bcfca26b3 Fix CID 1402873: Dereference before null check
7 years ago
philsmd c440dec867
file locking: check return value of fcntl ()
7 years ago
jsteube 9c5cfd17ac Added support for automatic merge of LM halfes when --show and --left is used
7 years ago
sgroat 113fe102f5 Cleanup zero-length printf format string warnings
7 years ago
Rosen Penev 2a2bd0e2b1
Restore strerror as %m is unsupported by the BSDs
7 years ago
jsteube 2135ea3329 WPA: Changed format for outfile and potfile from essid:mac1:mac2 to hash:essid
7 years ago
philsmd 1c4af583e8
minor: removed unused user_options variable
7 years ago
philsmd dfd4084b3b
fixes #963: show all user's hashes if --show/--left was specified
7 years ago
jsteube 84fcd8289f Files: Do several file and folder checks on startup rather than when they are actually used to avoid related error after eventual intense operations
7 years ago
jsteube 17548d3ee8 Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
7 years ago
philsmd 297c797521
hook code: refactored the hook salt to be part of the hash_t struct
7 years ago
jsteube 5ea24d9bca Fixed duplicate detection for WPA handshakes with the same ESSID
7 years ago
jsteube 8257883ec1 Added hash-mode 14600 = LUKS
7 years ago
jsteube 1f756bf752 Include passwords for removed hashes present in the potfile to next loopback iteration
8 years ago
jsteube e1b5de12d5 Fixed potfile loading to accept blank passwords
8 years ago
jsteube a4f40ac226 Added old potfile detection, show warning message
8 years ago
jsteube 6ece83760d Add wrapping function for asprintf()
8 years ago
Jens Steube 1b4edc92ee Merge pull request #925 from neheb/master
8 years ago
Rosen Penev 36bd1c7dd9 Replace some snprintf calls with asprintf.
8 years ago
jsteube ec5610271a New option --progress-only: Quickly provides ideal progress step size and time to process it per device based on the user hashes and selected options, then quit
8 years ago
jsteube 1342cf2ce3 Use $HEX[...] in case the password includes the separater character, increases potfile reading performance
8 years ago
Rosen Penev 5c0bd0a15f
Remove strerror in favor of thread safe %m
8 years ago
magnum fb56ce9b5a Only lock loopback and pot files while actually writing to them. Closes #893.
8 years ago
jsteube db5291a76c Add special weak-hash detection section for LM
8 years ago
jsteube 90b9d5c12c Fix some potential resource leaks in case of an error
8 years ago
jsteube ea4fd1de50 Remove complicated checks after memory allocation and in case of error print to stderr instead. This makes the memory allocation functions more natural to use.
8 years ago
jsteube e8078f2c73 Add output buffer size to ascii_digest()
8 years ago
jsteube e777c25a67 Improve handling of MAX_CUT_TRIES
8 years ago
jsteube daeb5f66ac Use same locking mechanism in potfile as in outfile
8 years ago
jsteube 2f398becfb Do not store result of binary operation in a bool
8 years ago
jsteube 0cd39ab963 Fix some code in potfile.c to make cppcheck happy
8 years ago
jsteube 316694fd08 Move hc_qsort_r() and hc_bsearch_r() from potfile.c to shared.c - Lets us use them from within all objects
8 years ago
jsteube 23fa7000fa Removed functions sort_by_pot() and sort_by_salt_buf() from potfile.c - Code no longer required due to potfile --show and --left handling logic
8 years ago
jsteube 16c6a48e0b Fix some null-pointer derefence which never occurs but is listed in the clang analyzer output
8 years ago
Jens Steube 2d743706cb Merge pull request #570 from magnumripper/master
8 years ago
jsteube 2507f62722 Add hash-mode option OPTS_TYPE_PT_ALWAYS_ASCII to control need_hexify() from interface.c
8 years ago
magnum 7d7ca48704 Change need_hexify so it optionally tests for printable UTF-8 as opposed
8 years ago
magnum a52b96583f Fix file locking (again).
8 years ago
jsteube fb8fb6b21d Actual use of --outfile-autohex-disable was lost during refactoring. Fixes https://github.com/hashcat/hashcat/issues/567
8 years ago
jsteube b8efae4281 Refactor all variables with HCBUFSIZ_LARGE size from stack to heap
8 years ago
jsteube eb58b076da Fix compiler warnings caused by -Wstack-usage=524288
8 years ago
jsteube 9f790d4dbd Move u8 * instead of char * for most interface.c functions
8 years ago
jsteube e3a245f615 Fix compiler warnings caused by -Wpointer-arith
8 years ago
jsteube 7eef713ff7 Fix compiler warnings caused by -Wshadow
8 years ago
jsteube c4ba7907ca Fix more EOL issues
8 years ago
jsteube a460ab01b6 Bring back --username handling to --show and --left
8 years ago
jsteube f5a92900c6 Rudimentary --show support is back
8 years ago
jsteube 9b2c69a00d Bring error in case someone uses --show
8 years ago
jsteube edefcdbaaa Rudimentary --left support is back
8 years ago
jsteube f6334b5f90 Handling --show and --left need to be refactored, do not use those flags atm
8 years ago
jsteube 1f72aa95e6 Destinguish between EVENT_POTFILE_HASH_CRACKED and EVENT_CRACKER_HASH_CRACKED for prompt handling
8 years ago
jsteube 191269f4f0 Add --speed-only mode
8 years ago
jsteube 8598a79732 Removed exit() from memory.c, resulting in all exit() calls removed from all code in the repository
8 years ago
jsteube 690ca0219e Fix formatstring in CPT display and get rid of potfile_format_plain()
8 years ago
jsteube 386efb7fb5 Make use of EVENT_CRACKER_HASH_CRACKED, do not print a cracked hash to stdout directly, let the client do it
8 years ago
jsteube af9de0a7b7 Fix some error string formats
8 years ago
jsteube 8fc4da795b Replace fprintf(stderr, ...) on malloc.c with log_event_error()
8 years ago
jsteube 0f96c57ead Remove some workarounds to use get rid of unused variable warnings
8 years ago
jsteube 27bec8be13 Get rid of logging.c and most exit() calls replaced with return() for true library usage
8 years ago
jsteube 27887bf9ce Get rid of more log_info() in hashcat()
8 years ago
jsteube 52068e25d5 Add some additional start-up checks
8 years ago
jsteube 9b8092abf9 Update outfile.c and potfile.c function parameters
8 years ago
coolbry95 a78fd4e915 changed uint to u32
8 years ago
jsteube 9413ed8f56 Centralize hashcat_ctx memory allocation and deallocation
8 years ago
jsteube 55f1dc321a Replace ssort() with sort_r.h
8 years ago
jsteube fb3e6bab0d Finished refactoring to remove all global variables
8 years ago
jsteube af1701c765 Fix some memleaks on shutdown
8 years ago
jsteube d2877b95e4 Automatically disable most features in case -I is used
8 years ago
jsteube 46866dd0b1 Make potfile support modular
8 years ago
jsteube 521db46c11 Move dictstat_init() out of outer loop, also add enabled flag
8 years ago