Commit Graph

45 Commits (master)

Author SHA1 Message Date
jsteube 42f574646e Skip generated rule that was the result of chaining rule operation and caused this generated rule to exceed the maximum number of function calls
1 year ago
philsmd 1cdf4682b0
rp: prevent crash in case of too little RAM for rules
2 years ago
philsmd 5b0e621511
prevent further integer overflows in rp.c
2 years ago
philsmd 8e4e42a613
prevent integer overflows in rp.c
2 years ago
Jens Steube f45110d8ec Replace index() with strchr() for better Windows compatiblity
3 years ago
Jens Steube 05f107cbe5 Added option --generate-rules-func-sel to specify a pool of operators that the random rule generator is allowed to pick from
3 years ago
Jens Steube cb69e2d413 Added some HIP version checks, fall back to OpenCL automatically
3 years ago
Jens Steube f4e52ca533 Add new rule function '3' to switch the case of the first letter after occurrence N of char X
3 years ago
Royce Williams 7bea7ca177 tighten output to be physical-terminal friendly
3 years ago
Rosen Penev a6edb84157
Fix extra semicolon warnings
5 years ago
Rosen Penev fd8150769d Add casts where needed in C++ mode
5 years ago
Jens Steube 97c9e86d15 Filehandling: Print a truncation warning in case an oversized line was detected
5 years ago
Gabriele Gristina 3161aec3da fix the comments :)
5 years ago
Gabriele Gristina 5679ca3344 Rewrite hc_fopen to better handling file descriptor locking/unlocking functions, saving kernels binary from plain to gzip format
5 years ago
Gabriele Gristina 398c89c75c switch almost all FILE ops, potfile is the only missing
5 years ago
Gabriele Gristina b2529af172 remove original commented code
5 years ago
Gabriele Gristina 6cb4abd526 Add zlib support v2
5 years ago
jsteube 9d43111730 Fix broken hex notation
6 years ago
jsteube b88c956d97 Rule Engine: Add JtR compatible support for hex notations in rule engine
6 years ago
jsteube 05a01d3843 fix some datatypes
6 years ago
Rosen Penev 0555613305 Remove else statement after return
7 years ago
jsteube f5ee3db5a6 Update cpu rule engine to support passwords up to length 256
7 years ago
mhasbini 5734741392 Add support for rule: eX
7 years ago
Royce Williams 067372f5ce more event_log_* standardization
7 years ago
philsmd fe33957303
rule engine: prevent integer underflow and dead code
7 years ago
philsmd 1b41e6aba3
rule engine: 2 more possibly memory leaks (see previous commits)
7 years ago
philsmd b285c04a21
added additional memory leak checks within the rule engine
7 years ago
Rosen Penev 2a2bd0e2b1
Restore strerror as %m is unsupported by the BSDs
7 years ago
jsteube ae5b75d65c Remove unused variable in rp.c
7 years ago
Jens Steube 0cbf19e162 Fixed automatic rule generator: Do not create 'X', '4' or '6' rules as they are not support in kernel rules
7 years ago
Rosen Penev 5c0bd0a15f
Remove strerror in favor of thread safe %m
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 fbcd899a34 Fix some code in rp.c to make cppcheck happy
8 years ago
jsteube 45ffc764ed Fixed a bug in rule generator code when using the memory copy function
8 years ago
jsteube 93adde9d2f * Wrap everything related to *stat() into own functions
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 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 29942f5fb3 Update rp.c function parameters
8 years ago
coolbry95 a78fd4e915 changed uint to u32
8 years ago
jsteube 67dd2e9b67 Separate rules and straight mode from each other, remove rules_ctx_t
8 years ago
jsteube 92e263a761 Add noop-check to rules_ctx.c
8 years ago
jsteube 62b97a6fe6 Move loading rules into outer loop
8 years ago
jsteube ebe9f1c07f Prepare for rules_ctx_t
8 years ago