Commit graph

119 commits

Author SHA1 Message Date
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
f96f00d62d Fix #5158 - Merge r_db into r_util 2016-06-17 12:19:16 +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
pancake
3758b3a54a Fix static/android build 2016-04-25 12:40:01 +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
pancake
ad795c2b8e Fix static build 2016-04-13 15:10:53 +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
pancake
f1f83276ea Fix static build with libbochs 2016-03-25 10:13:50 +01: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
pancake
00ac90f71b Initial import of crypto.rc4 algorithm and modernize RCrypto API 2016-03-07 02:38:50 +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
ca7f55be5a All those bins depend on r_lang 2016-01-30 21:19:36 +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
pancake
8efab9329b Fix build 2015-06-02 02:47:14 +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
jvoisin
a48ead7c84 Fix CID 1293128 2015-04-18 01:20:21 +02:00
pancake
a0ef11be00 Fix 3 covs and several warnings in windbg for w32 2015-04-07 14:53:28 +02:00
pancake
24154ca69f Support -f without -t (defaults to eof) 2015-04-07 01:50:34 +02:00
pancake
364bcfc82f Permit rahash2 -i0 and bump capstone 2015-04-07 01:22:56 +02:00