[Forensics-changes] [hashrat] 02/02: Imported Debian patch 1.6.1-1

Joao Eriberto Mota Filho eriberto at moszumanska.debian.org
Fri Jul 24 22:12:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

eriberto pushed a commit to branch debian
in repository hashrat.

commit 6fabe00d85fb28e3801a40b04549cfbece0b747b
Merge: 4cbe2a4 f046aa1
Author: Joao Eriberto Mota Filho <eriberto at debian.org>
Date:   Thu Jul 23 22:03:16 2015 -0300

    Imported Debian patch 1.6.1-1

 INSTALL                                            |   2 +
 Makefile                                           |  63 ---
 Makefile.in                                        |  29 +-
 README                                             |  73 ++-
 cgi.c                                              |  10 +-
 check.c => check-hash.c                            |   4 +-
 check.h => check-hash.h                            |   0
 check.sh                                           | 162 ++++++
 command-line-args.c                                |  85 +++-
 common.c                                           |  21 +-
 common.h                                           |  20 +-
 configure                                          |   4 +-
 configure.in => configure.ac                       |   2 +-
 debian/changelog                                   |  22 +
 debian/clean                                       |   1 -
 debian/copyright                                   |  39 +-
 debian/docs                                        |   1 +
 debian/manpage/README                              |   5 +
 debian/manpages                                    |   1 -
 debian/patches/fix-help                            |  73 +--
 debian/patches/fix-manpage-path                    |  15 +
 debian/patches/series                              |   1 +
 debian/rules                                       |   3 -
 debian/source.lintian-overrides                    |   3 -
 files.c                                            |  51 +-
 filesigning.c                                      |   4 +-
 find.c                                             | 125 +++--
 find.h                                             |   4 +-
 fingerprint.c                                      |  64 ++-
 fingerprint.h                                      |   1 +
 hashrat.1                                          | 555 +++++++++++++++++++++
 libUseful-2.0/Log.h                                |  35 --
 libUseful-2.0/Makefile                             | 142 ------
 libUseful-2.0/config.cache                         |  38 --
 libUseful-2.0/defines.h                            |  37 --
 libUseful-2.0/md5.h                                |  49 --
 libUseful-2.0/md5c.c                               | 339 -------------
 {libUseful-2.0 => libUseful-2.1}/Compression.c     |   0
 {libUseful-2.0 => libUseful-2.1}/Compression.h     |   0
 {libUseful-2.0 => libUseful-2.1}/ConnectManager.c  |   4 +-
 {libUseful-2.0 => libUseful-2.1}/ConnectManager.h  |   0
 {libUseful-2.0 => libUseful-2.1}/ConnectionChain.c |   8 +-
 {libUseful-2.0 => libUseful-2.1}/ConnectionChain.h |   0
 {libUseful-2.0 => libUseful-2.1}/Copy.sh           |   0
 {libUseful-2.0 => libUseful-2.1}/DataProcessing.c  |   4 +-
 {libUseful-2.0 => libUseful-2.1}/DataProcessing.h  |   0
 .../Docs/ConnectManager.txt                        |   0
 .../Docs/DataProcessing.txt                        |   0
 .../Docs/EncryptedFiles.txt                        |   0
 .../Docs/GeneralFunctions.txt                      |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/Hash.txt     |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/Log.txt      |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/directory    |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/expect.txt   |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/file.txt     |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/http.txt     |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/includes.txt |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/inet.txt     |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/list.txt     |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/pty.txt      |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/socket.txt   |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/sound.txt    |   0
 {libUseful-2.0 => libUseful-2.1}/Docs/string.txt   |   0
 .../Docs/unix_socket.txt                           |   0
 {libUseful-2.0 => libUseful-2.1}/EncryptedFiles.c  |   0
 {libUseful-2.0 => libUseful-2.1}/EncryptedFiles.h  |   0
 {libUseful-2.0 => libUseful-2.1}/FileSystem.c      |   0
 {libUseful-2.0 => libUseful-2.1}/FileSystem.h      |   0
 .../GeneralFunctions.c                             |  94 +++-
 .../GeneralFunctions.h                             |   1 -
 {libUseful-2.0 => libUseful-2.1}/Hash.c            |   2 +-
 {libUseful-2.0 => libUseful-2.1}/Hash.h            |   0
 {libUseful-2.0 => libUseful-2.1}/LICENCE           |   0
 {libUseful-2.0 => libUseful-2.1}/Log.c             | 167 ++++---
 libUseful-2.1/Log.h                                |  52 ++
 {libUseful-2.0 => libUseful-2.1}/Makefile.in       |  19 +-
 {libUseful-2.0 => libUseful-2.1}/Markup.c          |   0
 {libUseful-2.0 => libUseful-2.1}/Markup.h          |   0
 {libUseful-2.0 => libUseful-2.1}/MathExpr.c        |   2 +-
 {libUseful-2.0 => libUseful-2.1}/MathExpr.h        |   0
 {libUseful-2.0 => libUseful-2.1}/ParseURL.c        |   0
 {libUseful-2.0 => libUseful-2.1}/ParseURL.h        |   0
 {libUseful-2.0 => libUseful-2.1}/PatternMatch.c    |   0
 {libUseful-2.0 => libUseful-2.1}/PatternMatch.h    |   0
 libUseful-2.1/README                               |   2 +
 {libUseful-2.0 => libUseful-2.1}/SpawnPrograms.c   |  30 +-
 {libUseful-2.0 => libUseful-2.1}/SpawnPrograms.h   |   1 +
 {libUseful-2.0 => libUseful-2.1}/Time.c            |   0
 {libUseful-2.0 => libUseful-2.1}/Time.h            |   0
 {libUseful-2.0 => libUseful-2.1}/Tokenizer.c       |   0
 {libUseful-2.0 => libUseful-2.1}/Tokenizer.h       |   0
 {libUseful-2.0 => libUseful-2.1}/Vars.c            |  44 +-
 {libUseful-2.0 => libUseful-2.1}/Vars.h            |   0
 {libUseful-2.0 => libUseful-2.1}/ansi.c            |   0
 {libUseful-2.0 => libUseful-2.1}/ansi.h            |   0
 {libUseful-2.0 => libUseful-2.1}/base64.c          |  57 ++-
 {libUseful-2.0 => libUseful-2.1}/base64.h          |   3 +
 {libUseful-2.0 => libUseful-2.1}/buckets.c         |   2 +-
 {libUseful-2.0 => libUseful-2.1}/configure         |   0
 .../configure.in => libUseful-2.1/configure.ac     |   0
 {libUseful-2.0 => libUseful-2.1}/crc32.c           |   0
 {libUseful-2.0 => libUseful-2.1}/crc32.h           |   0
 libUseful-2.1/defines.h                            |  51 ++
 {libUseful-2.0 => libUseful-2.1}/expect.c          |   0
 {libUseful-2.0 => libUseful-2.1}/expect.h          |   0
 {libUseful-2.0 => libUseful-2.1}/file.c            | 351 ++++++++-----
 {libUseful-2.0 => libUseful-2.1}/file.h            |  29 +-
 {libUseful-2.0 => libUseful-2.1}/http.c            |   8 +-
 {libUseful-2.0 => libUseful-2.1}/http.h            |   0
 {libUseful-2.0 => libUseful-2.1}/includes.h        |   0
 {libUseful-2.0 => libUseful-2.1}/inet.c            |   2 +-
 {libUseful-2.0 => libUseful-2.1}/inet.h            |   0
 {libUseful-2.0 => libUseful-2.1}/install-sh        |   0
 {libUseful-2.0 => libUseful-2.1}/jh_ref.c          |   0
 {libUseful-2.0 => libUseful-2.1}/jh_ref.h          |   0
 {libUseful-2.0 => libUseful-2.1}/libUseful.h       |   1 +
 {libUseful-2.0 => libUseful-2.1}/libsettings.c     |   0
 {libUseful-2.0 => libUseful-2.1}/libsettings.h     |   0
 {libUseful-2.0 => libUseful-2.1}/list.c            |   0
 {libUseful-2.0 => libUseful-2.1}/list.h            |   0
 {libUseful-2.0 => libUseful-2.1}/md5-global.h      |   0
 libUseful-2.1/md5.h                                |  27 +
 libUseful-2.1/md5c.c                               | 248 +++++++++
 {libUseful-2.0 => libUseful-2.1}/oauth.c           |   0
 {libUseful-2.0 => libUseful-2.1}/oauth.h           |   0
 {libUseful-2.0 => libUseful-2.1}/openssl.c         |   0
 {libUseful-2.0 => libUseful-2.1}/openssl.h         |   0
 libUseful-2.1/proctitle.c                          |  78 +++
 libUseful-2.1/proctitle.h                          |   8 +
 {libUseful-2.0 => libUseful-2.1}/pty.c             |   0
 {libUseful-2.0 => libUseful-2.1}/pty.h             |   0
 {libUseful-2.0 => libUseful-2.1}/sha1.c            |   0
 {libUseful-2.0 => libUseful-2.1}/sha1.h            |   0
 {libUseful-2.0 => libUseful-2.1}/sha2.c            |   0
 {libUseful-2.0 => libUseful-2.1}/sha2.h            |   0
 {libUseful-2.0 => libUseful-2.1}/socket.c          |  27 +-
 {libUseful-2.0 => libUseful-2.1}/socket.h          |   4 +-
 {libUseful-2.0 => libUseful-2.1}/sound.c           |   4 +-
 {libUseful-2.0 => libUseful-2.1}/sound.h           |   0
 {libUseful-2.0 => libUseful-2.1}/string.c          |  19 +-
 {libUseful-2.0 => libUseful-2.1}/string.h          |   2 +-
 {libUseful-2.0 => libUseful-2.1}/tar.c             |   4 +-
 {libUseful-2.0 => libUseful-2.1}/tar.h             |   0
 {libUseful-2.0 => libUseful-2.1}/unix_socket.c     |  36 --
 {libUseful-2.0 => libUseful-2.1}/unix_socket.h     |   1 -
 {libUseful-2.0 => libUseful-2.1}/whirlpool.c       |   0
 {libUseful-2.0 => libUseful-2.1}/whirlpool.h       |   0
 main.c                                             |  13 +-
 ssh.c                                              |  53 +-
 ssh.h                                              |   3 +-
 tests/duplicate.txt                                |   5 +
 tests/help.txt                                     |  94 ++++
 tests/quotes.txt                                   |   5 +
 tests/test.ioc                                     |  22 +
 xattr.c                                            |   6 +-
 155 files changed, 2344 insertions(+), 1332 deletions(-)

diff --cc debian/changelog
index 811fd2c,0000000..0d04062
mode 100644,000000..100644
--- a/debian/changelog
+++ b/debian/changelog
@@@ -1,12 -1,0 +1,34 @@@
++hashrat (1.6.1-1) unstable; urgency=medium
++
++  * New upstream release.
++  * debian/clean: removed.
++  * debian/copyright:
++      - Updated the Source field in header.
++      - Updated all information about libUseful-2.1 directory (previously
++        called libUseful-2.0).
++  * debian/docs: created to install the README file.
++  * debian/manpages: removed. The upstream is using the manpage created for
++      Debian. Thanks!
++  * debian/patches/:
++      - fix-help: updated.
++      - fix-manpage-path: created to install the upstream manpage in right
++        place.
++  * debian/source.lintian-overrides: removed. The upstream fixed the source
++      code. Thanks.
++  * debian/rules: re-enabled the autotests (removed the override_dh_auto_test
++      target). The upstream fixed the code. Thanks.
++
++ -- Joao Eriberto Mota Filho <eriberto at debian.org>  Thu, 23 Jul 2015 22:03:16 -0300
++
 +hashrat (1.5-2) unstable; urgency=medium
 +
 +  * Upload to unstable.
 +  * debian/copyright: dropping dot-zero from GPL license short name.
 +
 + -- Joao Eriberto Mota Filho <eriberto at debian.org>  Wed, 22 Jul 2015 13:51:05 -0300
 +
 +hashrat (1.5-1) experimental; urgency=low
 +
 +  * Initial release. (Closes: #776499)
 +
 + -- Joao Eriberto Mota Filho <eriberto at debian.org>  Wed, 28 Jan 2015 10:32:25 -0200
diff --cc debian/copyright
index 2126086,0000000..bf4d785
mode 100644,000000..100644
--- a/debian/copyright
+++ b/debian/copyright
@@@ -1,131 -1,0 +1,116 @@@
 +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 +Upstream-Name: hashrat
- Source: http://www.cjpaget.co.uk/Code/Hashrat
++Source: http://www.cjpaget.co.uk/Code/Hashrat or
++        https://github.com/ColumPaget/Hashrat/releases
 +
 +Files: *
 +Copyright: 2014-2015 Colum Paget <colums.projects at gmail.com>
 +License: GPL-3
 +
 +
- Files: install-sh libUseful-2.0/install-sh
++Files: install-sh libUseful-2.1/install-sh
 +Copyright: 1991 Massachusetts Institute of Technology
 +License: MIT
 +
 +
- Files: libUseful-2.0/crc32.*
++Files: libUseful-2.1/crc32.*
 +Copyright: 2003 Dominik Reichl <dominik.reichl at t-online.de>
 +License: GPL-2
 +
 +
- Files: libUseful-2.0/md5.*
- Copyright: 1991-2, RSA Data Security, Inc.
- License: RSA-MD5
++Files: libUseful-2.1/md5.*
++Copyright: 1993 Colin Plumb
++License: public-domain
 +
 +
- Files: libUseful-2.0/sha1.*
- Copyright: 2000-2001, 2003-2006, 2008-2011 Free Software Foundation, Inc.
++Files: libUseful-2.1/sha1.*
++Copyright: 2000-2011 Free Software Foundation, Inc.
 +License: GPL-2+
 +
 +
- Files: libUseful-2.0/sha2.*
++Files: libUseful-2.1/sha2.*
 +Copyright: 2000-2001 Aaron D. Gifford
 +License: BSD-3-Clause
 +
 +
 +Files: debian/*
 +Copyright: 2014-2015 Joao Eriberto Mota Filho <eriberto at debian.org>
 +License: GPL-3+
 +
 +
 +License: GPL-3 or GPL-3+
 + This program is free software: you can redistribute it and/or modify
 + it under the terms of the GNU General Public License as published by
 + the Free Software Foundation, either version 3 of the License, or
 + (at your option) any later version.
 + .
 + This package is distributed in the hope that it will be useful,
 + but WITHOUT ANY WARRANTY; without even the implied warranty of
 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 + GNU General Public License for more details.
 + .
 + You should have received a copy of the GNU General Public License
 + along with this program. If not, see <http://www.gnu.org/licenses/>.
 + .
 + On Debian systems, the complete text of the GNU General
 + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
 +
 +
 +License: MIT
 + Permission to use, copy, modify, distribute, and sell this software and its
 + documentation for any purpose is hereby granted without fee, provided that
 + the above copyright notice appear in all copies and that both that
 + copyright notice and this permission notice appear in supporting
 + documentation, and that the name of M.I.T. not be used in advertising or
 + publicity pertaining to distribution of the software without specific,
 + written prior permission.  M.I.T. makes no representations about the
 + suitability of this software for any purpose.  It is provided "as is"
 + without express or implied warranty.
 +
 +
- License: RSA-MD5
-  License to copy and use this software is granted provided that it
-  is identified as the "RSA Data Security, Inc. MD5 Message-Digest
-  Algorithm" in all material mentioning or referencing this software
-  or this function.
-  .
-  License is also granted to make and use derivative works provided
-  that such works are identified as "derived from the RSA Data
-  Security, Inc. MD5 Message-Digest Algorithm" in all material
-  mentioning or referencing the derived work.
-  .
-  RSA Data Security, Inc. makes no representations concerning either
-  the merchantability of this software or the suitability of this
-  software for any particular purpose. It is provided "as is"
-  without express or implied warranty of any kind.
-  .
-  These notices must be retained in any copies of any part of this
-  documentation and/or software.
++License: public-domain
++ This code is in the public domain; do with it what you wish.
 +
 +
 +License: GPL-2 or GPL-2+
 + This package is free software; you can redistribute it and/or modify
 + it under the terms of the GNU General Public License as published by
 + the Free Software Foundation; either version 2 of the License, or
 + (at your option) any later version.
 + .
 + This package is distributed in the hope that it will be useful,
 + but WITHOUT ANY WARRANTY; without even the implied warranty of
 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 + GNU General Public License for more details.
 + .
 + You should have received a copy of the GNU General Public License
 + along with this program. If not, see <http://www.gnu.org/licenses/>
 + .
 + On Debian systems, the complete text of the GNU General
 + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
 +
 +
 +License: BSD-3-Clause
 + Redistribution and use in source and binary forms, with or without
 + modification, are permitted provided that the following conditions
 + are met:
 + 1. Redistributions of source code must retain the above copyright
 +    notice, this list of conditions and the following disclaimer.
 + 2. Redistributions in binary form must reproduce the above copyright
 +    notice, this list of conditions and the following disclaimer in the
 +    documentation and/or other materials provided with the distribution.
 + 3. Neither the name of the copyright holder nor the names of contributors
 +    may be used to endorse or promote products derived from this software
 +    without specific prior written permission.
 + .
 + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
 + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 + ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE
 + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 + SUCH DAMAGE.
diff --cc debian/docs
index 0000000,0000000..e845566
new file mode 100644
--- /dev/null
+++ b/debian/docs
@@@ -1,0 -1,0 +1,1 @@@
++README
diff --cc debian/manpage/README
index 0000000,0000000..2698164
new file mode 100644
--- /dev/null
+++ b/debian/manpage/README
@@@ -1,0 -1,0 +1,5 @@@
++The upstream is using the manpage created for Debian.
++
++This directory will be kept for future purposes.
++
++  -- Eriberto
diff --cc debian/patches/fix-help
index 895e8a9,0000000..8f659ba
mode 100644,000000..100644
--- a/debian/patches/fix-help
+++ b/debian/patches/fix-help
@@@ -1,106 -1,0 +1,65 @@@
 +Description: fix wrong information or typos in the help and README file
 +Author: Joao Eriberto Mota Filho <eriberto at debian.org>
- Last-Update: 2015-01-28
- Index: hashrat-1.5/README
++Last-Update: 2015-07-24
++Index: hashrat-1.6.1/README
 +===================================================================
- --- hashrat-1.5.orig/README
- +++ hashrat-1.5/README
- @@ -56,8 +56,8 @@ Options:
-    -10             Encode with decimal instead of hex
-    -H              Encode with UPPERCASE hexadecimal
-    -HEX            Encode with UPPERCASE hexadecimal
- -  -64             Encode with base65 instead of hex
- -  -base64         Encode with base65 instead of hex
- +  -64             Encode with base64 instead of hex
- +  -base64         Encode with base64 instead of hex
-    -t              Output hashes in traditional md5sum, shaXsum format
-    -trad           Output hashes in traditional md5sum, shaXsum format
-    -r              Recurse into directories when hashing files
- @@ -81,7 +81,7 @@ Options:
-    -strict         Strict mode: when checking, check file mtime, owner, group, and inode as well as it's hash
-    -S              Strict mode: when checking, check file mtime, owner, group, and inode as well as it's hash
-    -d              dereference (follow) symlinks
- -  -fs             Stay one one file system
- +  -fs             Stay one filesystem
-    -dirmode        DirMode: Read all files in directory and create one hash for them!
-    -devmode        DevMode: read from a file EVEN OF IT'S A DEVNODE
-    -lines          Read lines from stdin and hash each line independantly.
- @@ -90,7 +90,7 @@ Options:
++--- hashrat-1.6.1.orig/README
+++++ hashrat-1.6.1/README
++@@ -99,7 +99,7 @@ Options:
 +   -cgi            Run in HTTP CGI mode
 +   -net            Treat 'file' arguments as either ssh or http URLs, and pull files over the network and then hash them (Allows hashing of files on remote machines).
 +                   URLs are in the format ssh://[username]:[password]@[host]:[port] or http://[username]:[password]@[host]:[port]..
 +-  -idfile <path>  Path to an ssh private key file to use to authenticate INSTEAD OF A PASSWORD when pulling files via ssh.
 ++  -idfile <path>  Path to a ssh private key file to use to authenticate INSTEAD OF A PASSWORD when pulling files via ssh.
 +   -xattr          Use eXtended file ATTRibutes. In hash mode, store hashes in the file attributes, in check mode compare against hashes stored in file attributes.
-    -cache          Use hashes stored in 'user' file attributes. If the stored hash is younger than the mtime of the file, it will be used instead of recalculating the hash. This speeds up hashing, but can result in errors if file mtimes are inaccurate or have been modified for malicious purposes.
-    -u <types>      Update. In checking mode, update hashes for the files as you go. <types> is a comma-separated list of things to update, which can be 'xattr' 'memcached' or a file name. This will update these targets with the hash that was found at the time of checking.
- @@ -119,7 +119,7 @@ USE EXAMPLES:
++   -txattr         Use TRUSTED eXtended file ATTRibutes. In hash mode, store hashes in 'trusted' file attributes. 'trusted' attributes can only be read and written by root.
++   -attrs          comma-separated list of filesystem attribute names to be set to the value of the hash.
++@@ -129,7 +129,7 @@ USE EXAMPLES:
 + 
 + 	hashrat
 + 
 +-		Generate an md5 hash of data read from stdin  (default hash type is md5).
 ++		Generate a md5 hash of data read from stdin  (default hash type is md5).
 + 
 + 	hashrat -jh256
 + 
- @@ -127,15 +127,15 @@ USE EXAMPLES:
++@@ -137,7 +137,7 @@ USE EXAMPLES:
 + 		
 + 	hashrat -sha256 -64
 + 
 +-		Generate an sha-256 hash of data read from stdin, output with base64 encoding.
 ++		Generate a sha-256 hash of data read from stdin, output with base64 encoding.
 + 
 + 	hashrat -sha256 -64 -lines
 + 
- -		Read lines from stdin, and generate an sha-256 with base64 encoding FOR EVERY LINE. This strips any whitespace from the end of the line (including \r and/or \n line terminators). 
- +		Read lines from stdin, and generate a sha-256 with base64 encoding FOR EVERY LINE. This strips any whitespace from the end of the line (including \r and/or \n line terminators). 
++@@ -145,7 +145,7 @@ USE EXAMPLES:
 + 
 + 	hashrat -md5 -trad -rawlines
 + 
 +-		Read lines from stdin, and generate an md5 hash in 'traditional' format for every line INCLUDING TRAILING WHITESPACE. This is compatible with 'echo text | md5sum' where 'text' is one line, as 'echo' adds a newline to the end of the text it outputs.
 ++		Read lines from stdin, and generate a md5 hash in 'traditional' format for every line INCLUDING TRAILING WHITESPACE. This is compatible with 'echo text | md5sum' where 'text' is one line, as 'echo' adds a newline to the end of the text it outputs.
 + 
 + 	hashrat *
 + 
- @@ -194,7 +194,7 @@ USES FOR HASHRAT
++@@ -208,7 +208,7 @@ USES FOR HASHRAT
 + 
 + 		echo "facebook.com password 1234" | hashrat -sha1 -64
 + 
 +-	Obviously, my password isn't 'password' and my pin isn't '1234', but you get the idea. This gives me a 28-character string that should take "8.02 trillion trillion centuries" to crack with a "massive cracking array" according to Steve Gibson's 'Password haystacks' utility, https://www.grc.com/haystack.htm. This is what I then use as my password. Unfortunately some websites won't take a 28-character password, and for these I have to truncate to the appropriate length (using the -n flag [...]
 ++	Obviously, my password isn't 'password' and my pin isn't '1234', but you get the idea. This gives me a 28-character string that should take "8.02 trillion centuries" to crack with a "massive cracking array" according to Steve Gibson's 'Password haystacks' utility, https://www.grc.com/haystack.htm. This is what I then use as my password. Unfortunately some websites won't take a 28-character password, and for these I have to truncate to the appropriate length (using the -n flag), but th [...]
 + 
 + 	There are some dangers to using the 'echo' method shown above if you are on a shared machine, or if someone gets hold of your computer/harddrive. On a shared machine someone could type 'ps ax' to see all commands running, and if they time it right, they might see your command-line with your password in it. Another danger lies in using a shell (like bash) that will record your typed commands so you can recall them later. Bash stores this information on disk in the file .bash_history, s [...]
 + 
- Index: hashrat-1.5/command-line-args.c
++Index: hashrat-1.6.1/command-line-args.c
 +===================================================================
- --- hashrat-1.5.orig/command-line-args.c
- +++ hashrat-1.5/command-line-args.c
- @@ -439,8 +439,8 @@ printf("  %-15s %s\n","-8", "Encode with
-  printf("  %-15s %s\n","-10", "Encode with decimal instead of hex");
-  printf("  %-15s %s\n","-H", "Encode with UPPERCASE hexadecimal");
-  printf("  %-15s %s\n","-HEX", "Encode with UPPERCASE hexadecimal");
- -printf("  %-15s %s\n","-64", "Encode with base65 instead of hex");
- -printf("  %-15s %s\n","-base64", "Encode with base65 instead of hex");
- +printf("  %-15s %s\n","-64", "Encode with base64 instead of hex");
- +printf("  %-15s %s\n","-base64", "Encode with base64 instead of hex");
-  printf("  %-15s %s\n","-t", "Output hashes in traditional md5sum, shaXsum format");
-  printf("  %-15s %s\n","-trad", "Output hashes in traditional md5sum, shaXsum format");
-  printf("  %-15s %s\n","-r", "Recurse into directories when hashing files");
- @@ -463,7 +463,7 @@ printf("  %-15s %s\n","-color", "Use ANS
-  printf("  %-15s %s\n","-strict", "Strict mode: when checking, check file mtime, owner, group, and inode as well as it's hash");
-  printf("  %-15s %s\n","-S", "Strict mode: when checking, check file mtime, owner, group, and inode as well as it's hash");
-  printf("  %-15s %s\n","-d","dereference (follow) symlinks"); 
- -printf("  %-15s %s\n","-fs", "Stay one one file system");
- +printf("  %-15s %s\n","-fs", "Stay one filesystem");
-  printf("  %-15s %s\n","-dirmode", "DirMode: Read all files in directory and create one hash for them!");
-  printf("  %-15s %s\n","-devmode", "DevMode: read from a file EVEN OF IT'S A DEVNODE");
-  printf("  %-15s %s\n","-lines", "Read lines from stdin and hash each line independantly.");
- @@ -472,7 +472,7 @@ printf("  %-15s %s\n","-rl", "Read lines
++--- hashrat-1.6.1.orig/command-line-args.c
+++++ hashrat-1.6.1/command-line-args.c
++@@ -513,7 +513,7 @@ printf("  %-15s %s\n","-rl", "Read lines
 + printf("  %-15s %s\n","-cgi", "Run in HTTP CGI mode");
 + printf("  %-15s %s\n","-net", "Treat 'file' arguments as either ssh or http URLs, and pull files over the network and then hash them (Allows hashing of files on remote machines).");
 + printf("  %-15s %s\n","", "URLs are in the format ssh://[username]:[password]@[host]:[port] or http://[username]:[password]@[host]:[port]..");
 +-printf("  %-15s %s\n","-idfile <path>", "Path to an ssh private key file to use to authenticate INSTEAD OF A PASSWORD when pulling files via ssh.");
 ++printf("  %-15s %s\n","-idfile <path>", "Path to a ssh private key file to use to authenticate INSTEAD OF A PASSWORD when pulling files via ssh.");
 + printf("  %-15s %s\n","-xattr", "Use eXtended file ATTRibutes. In hash mode, store hashes in the file attributes, in check mode compare against hashes stored in file attributes.");
 + printf("  %-15s %s\n","-txattr", "Use TRUSTED eXtended file ATTRibutes. In hash mode, store hashes in 'trusted' file attributes. 'trusted' attributes can only be read and written by root.");
-  printf("  %-15s %s\n","-cache", "Use hashes stored in 'user' xattr if they're younger than the mtime of the file. This speeds up outputting hashes.");
++ printf("  %-15s %s\n","-attrs", "comma-separated list of filesystem attribute names to be set to the value of the hash.");
diff --cc debian/patches/fix-manpage-path
index 0000000,0000000..7199a12
new file mode 100644
--- /dev/null
+++ b/debian/patches/fix-manpage-path
@@@ -1,0 -1,0 +1,15 @@@
++Description: install the upstream manpage in right place.
++Author: Joao Eriberto Mota Filho <eriberto at debian.org>
++Last-Update: 2015-07-24
++Index: hashrat-1.6.1/Makefile.in
++===================================================================
++--- hashrat-1.6.1.orig/Makefile.in
+++++ hashrat-1.6.1/Makefile.in
++@@ -66,5 +66,5 @@ distclean:
++ install: hashrat
++ 	-mkdir -p $(DESTDIR)$(prefix)/bin
++ 	cp -f $(EXE) $(DESTDIR)$(prefix)/bin
++-	-mkdir -p $(DESTDIR)$(prefix)/man/man1
++-	cp -f hashrat.1 $(DESTDIR)$(prefix)/man/man1
+++	-mkdir -p $(DESTDIR)$(prefix)/share/man/man1
+++	cp -f hashrat.1 $(DESTDIR)$(prefix)/share/man/man1
diff --cc debian/patches/series
index 0ed373d,0000000..de75248
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,1 -1,0 +1,2 @@@
 +fix-help
++fix-manpage-path
diff --cc debian/rules
index aa76867,0000000..94729c6
mode 100755,000000..100755
--- a/debian/rules
+++ b/debian/rules
@@@ -1,10 -1,0 +1,7 @@@
 +#!/usr/bin/make -f
 +#export DH_VERBOSE=1
 +
 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 +
 +%:
 +	dh $@  --with autoreconf
- 
- # Disabling the auto_test
- override_dh_auto_test:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/hashrat.git



More information about the forensics-changes mailing list