Jens Steube
3c4f4df771
Rename some more variables
5 years ago
jsteube
12d95fd22c
Added option --example-hashes to show an example hash for each hash-mode
7 years ago
philsmd
16df4564ce
fixes #1314 : do not use the defines INSTALL_FOLDER/SHARED_FOLDER in read_restore (), but the corresponding values from the folder config
7 years ago
philsmd
344d1a37df
fixes 1306: every permanent chdir () needs to update the folder_config
7 years ago
jsteube
8abd7ae9d1
Fix some old GCC compiler warnings
7 years ago
Royce Williams
067372f5ce
more event_log_* standardization
8 years ago
jsteube
d6b843901b
In case of multiline error message use only the first line as error and the description as warning
8 years ago
philsmd
6eaa7e3741
tainted string fix: check some lower/upper bounds of the strings
8 years ago
jsteube
4b3d39623c
Restore: Add some checks on the rd->cwd variable in restore case
8 years ago
sgroat
113fe102f5
Cleanup zero-length printf format string warnings
8 years ago
Rosen Penev
2a2bd0e2b1
Restore strerror as %m is unsupported by the BSDs
...
The BSDs just print m instead of the actual error message. Benefit
is not worth the cost.
8 years ago
jsteube
ac5d274845
Sessions: Move out handling of multiple instance from restore file into separate pidfile
8 years ago
jsteube
17548d3ee8
Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
8 years ago
jsteube
6ece83760d
Add wrapping function for asprintf()
8 years ago
Jens Steube
1b4edc92ee
Merge pull request #925 from neheb/master
...
Replace some snprintf calls with asprintf.
8 years ago
Rosen Penev
36bd1c7dd9
Replace some snprintf calls with asprintf.
...
Simplifies the code.
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
Rosen Penev
5c0bd0a15f
Remove strerror in favor of thread safe %m
8 years ago
Rosen Penev
4d09cc10fd
Fix some formats and conversion errors
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
733a7385b4
Fix some code in restore.c to make cppcheck happy
8 years ago
Rosen Penev
22abb22c13
Fix a few printf formats
8 years ago
jsteube
d6b7b39515
Fix for invalid error "Restore value greater keyspace"
8 years ago
jsteube
93adde9d2f
* Wrap everything related to *stat() into own functions
...
* Testwise remove early includes to stdin for OSX, see if they are still required
8 years ago
Gabriele Gristina
6bf5ee95a6
Fix resource leak
8 years ago
Etienne
f35f475b4f
Add --restore-file-path option
...
This option set the restore file path.
It's useful when we need all session files in specific directory.
Example:
hashcat -m 0 --session "Test" --potfile-path "/path/to/my/potfile.potfile"
--restore-file-path "/path/to/my/restore_file.restore" hashs.txt -a 3 ?a?a?a?a
Restore session with :
hashcat --sesion "Test" --restore --restore-file-path
"/path/to/my/restore_file.restore"
8 years ago
jsteube
e1010ffba1
Prepare library user access to OpenCL device information without running an attack
8 years ago
jsteube
14bd614bfc
Move event_log_info() out of restore.c
8 years ago
jsteube
27e92540e4
Do not unlink restore file of restore is disabled
8 years ago
jsteube
574acfab6a
Move masks_pos from rd* to masks_ctx and dicts_pot from rd* to straight_ctx
8 years ago
jsteube
761e3f0d96
Move out words_cur from restore_ctx to status_ctx and let the dispatcher update it
8 years ago
jsteube
df521d664b
Move restore_* variables into separate functions for later use in status.c
8 years ago
jsteube
2545ec6bf9
Prepare hashcat_get_status()
8 years ago
jsteube
f8a6d156eb
Add some more returncode checks
8 years ago
jsteube
191269f4f0
Add --speed-only mode
8 years ago
jsteube
056083fdba
Revert "Prepare for hashcat_ctx_run_session()"
...
This reverts commit 0179097a53
.
8 years ago
jsteube
0179097a53
Prepare for hashcat_ctx_run_session()
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
60f6137a3f
Fix some newlines in restore mode
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
27bec8be13
Get rid of logging.c and most exit() calls replaced with return() for true library usage
8 years ago
jsteube
076784d235
Update user_options.c function parameters
8 years ago
jsteube
14334e4129
Update restore.c function parameters
8 years ago
jsteube
578f6816c6
Fix some uint datatype leftovers
8 years ago
jsteube
79c0fc6a11
Automatically unlink restore file if all hashes have been cracked
8 years ago
jsteube
7f2ab2db60
Add unlink_restore()
8 years ago
jsteube
57cb082fda
Add some useful stuff to main.c
8 years ago
jsteube
50d2cec912
Fix some variable name convention
8 years ago
jsteube
667a8b1d3d
Make use of argc/argv easier
8 years ago