mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-10 08:14:35 +00:00
![Sebastian Reichel](/assets/img/avatar_default.png)
* Fix esil manpage Each manual page should start with a "NAME" section, which lists the name and a brief description of the page separated by "\-". The "NAME" section is parsed by lexgrog and used to generate a database that's queried by commands like apropos and whatis. Without this change lexgrog fails to parse the NAME section of this manual page. This was found by Debian's lintian tool (manpage-has-bad-whatis-entry). * Fix empty input line in manpages Found-By: lintian as manpage-has-errors-from-man * Fix rahash2 manpage .El (end list) is only valid after .Bl (begin list), but no list was started in this section. Found-By: lintian * Avoid build break if no static bin plugins are defined If one disables all static bin plugins, build currently fails, since R_BIN_STATIC_PLUGINS/R_BIN_XTR_STATIC_PLUGINS are not defined. This fixes the build for these kind of setups. (In Debian does not built the mach code, since the Apple Public Source License is not compatible with the Debian Free Software Guidelines. Without the mach code there is not a single binxtr plugin) * Fix implicit declaration of function 'linux_generate_corefile' on i386 Noticed by Debian build farm. * Add support for SOURCE_DATE_EPOCH SOURCE_DATE_EPOCH can be used to make builds reproducible [0]. Note: radare suffers from a second problem making the build unreproducible: It captures the full build path. This is *not* covered by this change. [0] https://reproducible-builds.org/specs/source-date-epoch/
92 lines
2.7 KiB
Groff
92 lines
2.7 KiB
Groff
.Dd Feb 6, 2015
|
|
.Dt RAHASH2 1
|
|
.Sh NAME
|
|
.Nm hasher2
|
|
.Nd block based hashing utility
|
|
.Sh SYNOPSIS
|
|
.Nm hasher2
|
|
.Op Fl BdDehjrkvq
|
|
.Op Fl a Ar algorithm
|
|
.Op Fl b Ar size
|
|
.Op Fl D Ar algo
|
|
.Op Fl E Ar algo
|
|
.Op Fl s Ar string
|
|
.Op Fl i Ar iterations
|
|
.Op Fl I Ar IV
|
|
.Op Fl S Ar seed
|
|
.Op Fl f Ar from
|
|
.Op Fl x Ar hexstr
|
|
.Op Fl t Ar to
|
|
.Op Fl c Ar hash
|
|
.Op [file] ...
|
|
.Sh DESCRIPTION
|
|
This program is part of the radare project.
|
|
.Pp
|
|
Hasher allows you to calculate, check and show the hash values of each block of a target file. The block size is 32768 bytes by default. It's allowed to hash from stdin using '-' as a target file. You can compare against a known hash and get the result in the exit status.
|
|
.Pp
|
|
You can hash big files by hashing each block and later determine what part of it has been modified. Useful for filesystem analysis.
|
|
.Pp
|
|
This command can be used to calculate hashes of a certain part of a file or a command line passed string.
|
|
.Pp
|
|
This is the command used by the '#' command of radare.
|
|
.Bl -tag -width Fl
|
|
.It Fl a Ar algo
|
|
Select an algorithm for the hashing. Valid values are listed in: rahash2 -L
|
|
.It Fl b Ar blocksize
|
|
Define the block size
|
|
.It Fl c Ar hash
|
|
Compare the computed hash with this one. Allowed only when a single hash is computed.
|
|
.It Fl D Ar algo
|
|
Decrypt instead of hash using the given algorithm (base64, base91, rc4, aes, xor, blowfish, rot, rol, ror, rc2, rc6, punycode)
|
|
.It Fl e
|
|
Use little endian to display checksums
|
|
.It Fl E Ar algo
|
|
Encrypt instead of hash using the given algorithm (base64, base91, rc4, aes, xor, blowfish, rot, rol, ror, rc2, rc6, punycode)
|
|
.It Fl i Ar iters
|
|
Apply the hash Iters times to itself+seed
|
|
.It Fl I Ar [^]s:string|hexstr
|
|
Set initialization vector (IV) for the cryptographic functions.
|
|
.It Fl j
|
|
Show output in JSON (see -r)
|
|
.It Fl B
|
|
Show per-block hash
|
|
.It Fl k
|
|
Show result using OpenSSH's VisualHostKey randomart algorithm
|
|
.It Fl s Ar string
|
|
Hash this string instead of using the 'source' and 'hash-file' arguments.
|
|
.It Fl S Ar [^]s:string|hexstr
|
|
Set seed to hash with, use ^to prefix seed, otherwise its suffixed.
|
|
.It Fl f Ar from
|
|
Start hashing at given address
|
|
.It Fl t Ar to
|
|
Stop hashing at given address
|
|
.It Fl q
|
|
Quiet mode (-qq for even quieter!)
|
|
.It Fl r
|
|
Show output in radare commands
|
|
.It Fl x Ar hexstr
|
|
Hash the given hexpair string instead of using the 'source' and 'hash-file' arguments.
|
|
.It Fl v
|
|
Show version information
|
|
.It Fl h
|
|
Show usage help message.
|
|
.El
|
|
.Sh DIAGNOSTICS
|
|
.Ex -std
|
|
.Pp
|
|
When -c is used, exit status 0 indicates a match between the expected and computed hashes.
|
|
.Sh SEE ALSO
|
|
.Pp
|
|
.Xr radare2(1) ,
|
|
.Xr rafind2(1) ,
|
|
.Xr rahash2(1) ,
|
|
.Xr rabin2(1) ,
|
|
.Xr radiff2(1) ,
|
|
.Xr rasm2(1) ,
|
|
.Xr ragg2(1) ,
|
|
.Xr rarun2(1) ,
|
|
.Xr rax2(1) ,
|
|
.Sh AUTHORS
|
|
.Pp
|
|
pancake <pancake@nopcode.org>
|