radare2/man/rahash2.1

78 lines
2.0 KiB
Groff
Raw Normal View History

2015-02-06 13:15:19 +00:00
.Dd Feb 6, 2015
2014-09-30 09:01:45 +00:00
.Dt RAHASH2 1
2014-09-30 09:37:26 +00:00
.Sh NAME
.Nm hasher2
.Nd block based hashing utility
.Sh SYNOPSIS
.Nm hasher2
2015-02-06 13:15:19 +00:00
.Op Fl BdDehjrkv
.Op Fl a Ar algorithm
.Op Fl b Ar size
.Op Fl s Ar string
.Op Fl i Ar iterations
.Op Fl S Ar seed
2011-12-02 02:43:08 +00:00
.Op Fl f Ar from
.Op Fl x Ar hexstr
2011-12-02 02:43:08 +00:00
.Op Fl t Ar to
.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.
.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
2014-11-23 09:54:58 +00:00
Select an algorithm for the hashing. Valid values are listed in: rahash2 -L
2013-02-12 01:55:22 +00:00
.It Fl b Ar blocksize
Define the block size
.It Fl d
encoDe base64 string or file
.It Fl D
Decode base64 string or file
2014-02-05 11:07:27 +00:00
.It Fl e
Use little endian to display checksums
.It Fl i Ar iters
Apply the hash Iters times to itself+seed
2015-02-06 13:15:19 +00:00
.It Fl j
Show output in JSON (see -r)
2011-12-02 02:43:08 +00:00
.It Fl B
Show per-block hash
.It Fl k
Show result using OpenSSH's VisualHostKey randomart algorithm
2011-12-02 02:43:08 +00:00
.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.
2011-12-02 02:43:08 +00:00
.It Fl f Ar from
Start hashing at given address
.It Fl t Ar to
Stop hashing at given address
.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.
2011-12-02 02:43:08 +00:00
.It Fl v
Show version information
.It Fl h
Show usage help message.
.El
.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) ,
* Rename r2rc to rarc2 - Moved into binr/rarc2 - Integrated with symstall - rarc2-tool now support -xc and -cx combo - Add rarc2.1 manpage * Add some bugs to review in TODO --HG-- rename : r2rc/Makefile => binr/rarc2/Makefile rename : r2rc/README => binr/rarc2/README rename : r2rc/TODO => binr/rarc2/TODO rename : r2rc/emit_arm.c => binr/rarc2/emit_arm.c rename : r2rc/emit_x64.c => binr/rarc2/emit_x64.c rename : r2rc/emit_x86.c => binr/rarc2/emit_x86.c rename : r2rc/i/libc.r => binr/rarc2/i/libc.r rename : r2rc/i/socket.r => binr/rarc2/i/socket.r rename : r2rc/out.c => binr/rarc2/out.c rename : r2rc/r2rc-tool => binr/rarc2/rarc2-tool rename : r2rc/r2rc.c => binr/rarc2/rarc2.c rename : r2rc/rcc.h => binr/rarc2/rarc2.h rename : r2rc/t/Makefile => binr/rarc2/t/Makefile rename : r2rc/t/argv.r => binr/rarc2/t/argv.r rename : r2rc/t/bytedump.r => binr/rarc2/t/bytedump.r rename : r2rc/t/data.r => binr/rarc2/t/data.r rename : r2rc/t/dump.r => binr/rarc2/t/dump.r rename : r2rc/t/hello.r => binr/rarc2/t/hello.r rename : r2rc/t/if.r => binr/rarc2/t/if.r rename : r2rc/t/inline.r => binr/rarc2/t/inline.r rename : r2rc/t/input.r => binr/rarc2/t/input.r rename : r2rc/t/loop.r => binr/rarc2/t/loop.r rename : r2rc/t/ptr.r => binr/rarc2/t/ptr.r rename : r2rc/t/rawsys.r => binr/rarc2/t/rawsys.r rename : r2rc/t/rawsys64.r => binr/rarc2/t/rawsys64.r rename : r2rc/t/regs.r => binr/rarc2/t/regs.r rename : r2rc/t/ret.r => binr/rarc2/t/ret.r rename : r2rc/t/room.r => binr/rarc2/t/room.r rename : r2rc/t/segfault.r => binr/rarc2/t/segfault.r rename : r2rc/t/shell.r => binr/rarc2/t/shell.r rename : r2rc/t/sub.r => binr/rarc2/t/sub.r rename : r2rc/t/syscall.r => binr/rarc2/t/syscall.r rename : r2rc/test.r => binr/rarc2/test.r
2010-06-28 18:30:20 +00:00
.Xr rax2(1) ,
.Sh AUTHORS
.Pp
pancake <pancake@nopcode.org>