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
3 years ago
philsmd
8e4e42a613
prevent integer overflows in rp.c
3 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
...
Switched HIP version check from driverVersion to runtimeVersion
Fixed syntax check of HAS_VPERM macro in several kernel includes causing invalid error message for AMD GPUs on Windows
Updated AMD driver requirements
Updated docs/changes.txt with missing changes from previous commits
Fixed invalid vector data type in Murmur Hash in -a 3 mode
Fixed uninitialized variable warning in src/hashes.c
Fixed broken support for --generate-rules-func-min
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
...
These macros don't need a ; but since ; is used, make the macros more
robust by enclosing them in a do while loop.
5 years ago
Rosen Penev
fd8150769d
Add casts where needed in C++ mode
...
Otherwise, -fpermissive must be passed.
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
7 years ago
Rosen Penev
0555613305
Remove else statement after return
...
Suggested by clang tidy
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
8 years ago
Royce Williams
067372f5ce
more event_log_* standardization
8 years ago
philsmd
fe33957303
rule engine: prevent integer underflow and dead code
8 years ago
philsmd
1b41e6aba3
rule engine: 2 more possibly memory leaks (see previous commits)
8 years ago
philsmd
b285c04a21
added additional memory leak checks within the rule engine
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
ae5b75d65c
Remove unused variable in rp.c
8 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
8 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
...
* Testwise remove early includes to stdin for OSX, see if they are still required
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