Commit Graph

106 Commits

Author SHA1 Message Date
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
pancake
1b6cfb68bd Fix some memleaks, warnings and null derefs pointed out by clang analyzer 2017-07-10 11:20:03 +02:00
pancake
aaa039911b Fix #7334 - rahash2 -ja all produced extra commas 2017-04-21 13:57:20 +02:00
pancake
ddb4e9f216 Fix rahash2 test 2017-04-15 19:56:25 +02:00
Giovanni
e9a9ad5f43 Use stdout in rahash2 -h 2017-04-13 11:53:40 +02:00
Giovanni
2b6f6262fc Integrate crca in rahash2 and r2 2017-04-11 22:47:16 +02:00
pancake
ce7104647e Add rahash2 -E xor and support -S - and -S @ to slurp stdin or files 2017-03-26 00:38:57 +01:00
alvarofe
b99e497fed Indent rahash2 with r2-indent 2017-03-22 21:49:16 +01:00
pancake
2f5c778abe Support stdin slurp for rahash2 -E 2017-01-03 16:51:12 +01:00
pancake
9eb1a2903b Enforce hexpair parsing rules. To fix rahash2 -S foo without s: 2016-10-04 15:46:46 +02:00
Tiago Gasiba
520106bac9 Fix #5556 - prints all hashes, even if have gap between the bits 2016-08-28 19:36:59 +02:00
pancake
75fd458df8 Fix #5007 - Clarify the difference of hash/encoder/crypto 2016-08-15 01:10:42 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
pancake
59f94c63aa Fix some critical COVs in RBin 2016-06-14 02:42:24 +02:00
dx
63f474706b rahash2: Don't try to unescape inputs provided as hex strings (-x) (#5075)
Fixes #4642, which is about using '-x 5c', which is a backslash.
2016-06-04 20:31:51 +02:00
pancake
d9cdd29268 Fix endian issue in crc16 and crc32 2016-05-16 02:08:59 +02:00
Rakholiya Jenish
502870f07b list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
2016-05-11 22:25:54 +02:00
Rakholiya Jenish
3019bb477c Add support for punycode via woE and woD and rahash2
Also add aes-cbc support by getting IV from user
2016-05-07 12:31:13 +02:00
Rakholiya Jenish
f1fe53ef48 fix warning
minor fix

update -h
2016-04-15 15:52:52 +02:00
Rakholiya Jenish
e1660b352a add aes-cbc encryption to rahash2
remove unnecessary comment

update man
2016-04-14 22:39:57 +02:00
Rakholiya Jenish
421a63a849 cleanup code, and use direction for specifying encryption/decryption 2016-04-13 21:54:12 +02:00
Rakholiya Jenish
cfe1cc8c6c refactor the code and fix rc2 ecb implementation
Cleanup in cmd_write.
2016-04-13 12:54:34 +02:00
Rakholiya Jenish
27fba6fa10 Add crypto plugin for base64 and base91
update error occurence.
2016-04-13 10:34:55 +02:00
Rakholiya Jenish
2a68cea14c add woD, and rahash -D option
TODO done

fix error output
2016-04-13 10:34:54 +02:00
Rakholiya Jenish
85419d7356 Refactor and correct code for getting seed as string 2016-04-10 00:37:33 +02:00
Álvaro Felipe Melchor
146d7b8e25 Fix oob write in rahash2 2016-03-21 16:16:01 +01:00
Pankaj Kataria
234b8d7602 Added support for encrypting file 2016-03-09 08:28:26 +01:00
Pankaj Kataria
e78b293f7c Fixed the case when input-string contains null bytes 2016-03-09 08:28:26 +01:00
Pankaj Kataria
aa8a65a852 rahash2 Added xor encryption 2016-03-09 08:28:26 +01:00
pancake
3efe247889 Fix newlines in rahash2 -qq 2016-03-08 14:44:08 +01:00
pancake
99d59ebd20 Remove unnecessary newline 2016-03-08 13:19:03 +01:00
pancake
1b937e17fb Add rahash2 -qq 2016-03-08 03:29:59 +01:00
pancake
63b4dacf34 Show filename in rahash2 -q 2016-03-08 01:21:44 +01:00
pancake
588e264f9f Fix latest COVs 2016-03-07 12:54:40 +01:00
pancake
3f5aa46bd5 Add rahash2 -E to encrypt instead of hash 2016-03-07 03:24:52 +01:00
Matthieu Tardy
1a573e1056 Cleanup binr/*/*.c
r2agent:
- Fix the usage to match other r2 binaries.
- Remove trailing whitespace.
- Remove addressed TODO.
- Add a default case to display usage and exit if -p option was used
  without argument.
- Return 1 instead of 0 if too much arguments are provided.
- Small coding style fixes.

radiff2:
- Small coding style fixes.

rafind2:
- Add a default case to display usage and exit if an option have a missing
  argument or getopt does not recognize an option character.
- Small coding style fixes.

ragg2:
- Small coding style fixes.

rahash2:
- Remove useless optarg check.
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.

rarun2:
- Small coding style fixes.

rasm2:
- Small coding style fixes.
- Missing arguments and unknown options now display usage and exit.

rax2:
- Small coding style fixes.

radare2:
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.
2016-03-05 19:52:42 +01:00
Anton Kochkov
ae45648bbc Fix build 2016-02-25 13:32:03 +03:00
Anton Kochkov
ce47165951 Fix CID 1351762 2016-02-25 12:44:04 +03:00
Adrian Stanciu
3a33519533 Add rabin2 -c to compare hash and computed hash from file
- adds support for -c parameter
- bring in line with coding guidelines
- formatted code with tabs
- added -c and exit status info to rahash2 man
2016-02-21 22:45:30 +01:00
pancake
89d44bbaf7 Fix #2782 - rahash2 - slurps from stdin 2015-11-22 23:59:48 +01:00
pancake
d574a4f49b Fix regression in entrypoint after analysis 2015-10-18 18:47:04 +02:00
pancake
b89c3ee949 Fix the failed rahash2 tests 2015-10-18 18:35:31 +02:00
pancake
f6927fa4f7 Fixes for 0 length hashes 2015-10-18 17:08:23 +02:00
jvoisin
4261075d60 Misc fixes to make clang-analyser even more happy 2015-08-29 18:08:38 +02:00
jvoisin
e0e170c3c5 Fix various clang-analyser issues 2015-08-28 18:29:31 +02:00
Judge Dredd (key 6E23685A)
e41051aa86 unescape strings for -s (issue #2783) 2015-07-01 13:49:37 +02:00
pancake
5946193d29 Fix rahash2 -b issue 2015-06-14 02:43:33 +02:00
jvoisin
51c6eecf0d Fix a previous mistake of mine in rahash. Sorry :/ 2015-06-02 00:03:43 +02:00
jvoisin
8155c6e8f2 Even more coverifix 2015-06-01 23:06:55 +02:00
Anton Kochkov
549bfbd147 Revert "Fix CID 1293128"
To fix the actual and valid behaviour of rahash2
The corresponding CID is low priority
and could be fixed later proper way.

This reverts commit a48ead7c84.
2015-04-19 00:20:02 +03:00